[Buildroot] [git commit] e2fsprogs: fix missing fallocate64() on nios2

Peter Korsgaard peter at korsgaard.com
Thu Feb 27 13:20:42 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=1f5f26be955aa0dd653c7e57eda1549b2354b289
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

(external) nios2 toolchain is currently missing the fallocate64 system
call. Because of compiling the e2fsprogs package with _FILE_OFFSET_BITS=64,
_LARGEFILE_SOURCE and _LARGEFILE64_SOURCE the fallocate call is replaced
by fallocate64 by the glibc. Therefore fallocate is entirely disabled while
configuring the package.

Fixes http://autobuild.buildroot.org/results/70a/70a47bd7392560cbc1c64769c8357c0b4c91ca3b/

Signed-off-by: Frank Bergmann <frank at frajasalo.de>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/e2fsprogs/e2fsprogs.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
index 2eb59f5..76e2d4e 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -25,6 +25,10 @@ E2FSPROGS_CONF_OPT = \
 	--disable-e2initrd-helper \
 	--disable-testio-debug
 
+ifeq ($(BR2_nios2),y)
+E2FSPROGS_CONF_ENV += ac_cv_func_fallocate=no
+endif
+
 E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux
 
 E2FSPROGS_MAKE_OPT = \


More information about the buildroot mailing list