Browse Source

package: samba: Fix for large files on 32bit target

Configure script incorrectly "detected" no flags are necessary. The odd
result is that 'ls <largefile>' prints huge file size (16E) for files
larger than 2GB while 'du <largefile>' is correct in mounted shares.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
edb8317be0
2 changed files with 4 additions and 3 deletions
  1. 4 1
      package/samba/Makefile
  2. 0 2
      package/samba/files/cache.txt

+ 4 - 1
package/samba/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		samba
 PKG_VERSION:=		4.19.4
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_HASH:=		4026d93b866db198c8ca1685b0f5d52793f65c6e63cb364163af661fdff0968c
 PKG_DESCR:=		file and print server
 PKG_SECTION:=		net/fs
@@ -68,8 +68,11 @@ pre-configure:
 	echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
 ifneq ($(ADK_LINUX_64),)
 	echo 'Checking for a 64-bit host to support lmdb: OK' >>$(WRKSRC)/cache.txt
+	echo 'Checking for large file support without additional flags: OK' >>$(WRKSRC)/cache.txt
 else
 	echo 'Checking for a 64-bit host to support lmdb: NO' >>$(WRKSRC)/cache.txt
+	echo 'Checking for large file support without additional flags: NO' >>$(WRKSRC)/cache.txt
+	echo 'Checking for -D_FILE_OFFSET_BITS=64: OK' >>$(WRKSRC)/cache.txt
 endif
 
 samba-install:

+ 0 - 2
package/samba/files/cache.txt

@@ -2,8 +2,6 @@ Checking simple C program: OK
 rpath library support: OK
 -Wl,--version-script support: OK
 Checking getconf LFS_CFLAGS: NO
-Checking for large file support without additional flags: OK
-Checking for -D_LARGE_FILES: OK
 Checking correct behavior of strtoll: NO
 Checking for working strptime: OK
 Checking for C99 vsnprintf: OK