Commit 415765b5 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Thomas Petazzoni
Browse files

packages: remove non-lfs enabler patches

parent 9d188366
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
[PATCH] vmcore-dmesg: don't enforce largefile handling

Breaks build on !largefile toolchains.

Instead simply use whatever mode is selected by toolchain / CFLAGS.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 vmcore-dmesg/vmcore-dmesg.c |    2 --
 1 file changed, 2 deletions(-)

Index: kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
===================================================================
--- kexec-tools-2.0.3.orig/vmcore-dmesg/vmcore-dmesg.c
+++ kexec-tools-2.0.3/vmcore-dmesg/vmcore-dmesg.c
@@ -1,6 +1,4 @@
 #define _XOPEN_SOURCE 600
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64
 #include <endian.h>
 #include <byteswap.h>
 #include <stdio.h>
+0 −26
Original line number Diff line number Diff line
Make links buildable without LFS support.
Author/status: unknown.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

diff -Nura links-2.8/com-defs.h links-2.8.nonlfs/com-defs.h
--- links-2.8/com-defs.h	2013-07-31 20:45:30.000000000 -0300
+++ links-2.8.nonlfs/com-defs.h	2014-12-28 08:42:47.352237462 -0300
@@ -5,6 +5,9 @@
 #define __EXTENSIONS__
 #endif
 
+#include <features.h>
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
 #ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE	1
 #endif
@@ -20,6 +23,7 @@
 #ifndef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS	64
 #endif
+#endif /* UCLIBC !LFS */
 
 #if defined(vax) && !defined(__vax)
 #define __vax	vax
+0 −27
Original line number Diff line number Diff line
[PATCH] mdadm: don't enable largefile support unconditionally on uClibc

uClibc can be compiled without largefile support (and errors out if
_FILE_OFFSET_BITS is set to 64), so don't define it if that combination
is detected.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 mdadm.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: mdadm-3.2.6/mdadm.h
===================================================================
--- mdadm-3.2.6.orig/mdadm.h
+++ mdadm-3.2.6/mdadm.h
@@ -23,7 +23,11 @@
  */
 
 #define	_GNU_SOURCE
+#include <features.h>
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
 #define _FILE_OFFSET_BITS 64
+#endif
 #include	<unistd.h>
 #if !defined(__dietlibc__) && !defined(__KLIBC__)
 extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
+0 −27
Original line number Diff line number Diff line
From 9c63360a2db71882cc548305774ce87af5f52b6e Mon Sep 17 00:00:00 2001
From: Christophe Vu-Brugier <cvubrugier@lacie.com>
Date: Thu, 7 Mar 2013 10:37:09 +0100
Subject: [PATCH] uClibc: redefine off64_t as off_t if largefile support is
 disabled


Signed-off-by: Christophe Vu-Brugier <cvubrugier@lacie.com>
---
 mdadm.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/mdadm.h b/mdadm.h
index 216c31d..1c72cc4 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1008,6 +1008,7 @@ struct stat64;
 # include <features.h>
 # ifndef __UCLIBC_HAS_LFS__
 #  define lseek64 lseek
+#  define off64_t off_t
 # endif
 # ifndef  __UCLIBC_HAS_FTW__
 #  undef HAVE_FTW
-- 
1.7.10.4
+0 −19
Original line number Diff line number Diff line
[patch]: bss_file.c: don't force largefile mode

[Adapted to version 1.0.2]

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

diff -rup a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c
--- a/crypto/bio/bss_file.c	2015-01-22 14:58:32.000000000 +0000
+++ b/crypto/bio/bss_file.c	2015-01-26 16:27:52.972519876 +0000
@@ -78,9 +78,6 @@
  * of 32-bit platforms which allow for sequential access of large files
  * without extra "magic" comprise *BSD, Darwin, IRIX...
  */
-#  ifndef _FILE_OFFSET_BITS
-#   define _FILE_OFFSET_BITS 64
-#  endif
 # endif
 
 # include <stdio.h>
Loading