policycoreutils: CPPFLAGS undefine _FILE_OFFSET_BITS
PATCH 1/2 policycoreutils: CPPFLAGS undefine _FILE_OFFSET_BITS
Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h large file support.
Similar action was taken previously for CFLAGS.
Resolves:
http://autobuild.buildroot.net/results/4cb/4cb70d776bee01f1284e0c0be5b3fb5f1011353a/
http://autobuild.buildroot.net/results/f43/f438149e7d83475d425e1c1f17550f3cf5f69340/
--- package/policycoreutils/policycoreutils.mk | 2 ++ 1 file changed, 2 insertions(+)
package/policycoreutils/policycoreutils.mk +2 -0
@@ -36,6 +36,7 @@ endif POLICYCOREUTILS_MAKE_OPTS += \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS" \ + CPPFLAGS="$(TARGET_CPPFLAGS) -U_FILE_OFFSET_BITS" \ ARCH="$(BR2_ARCH)" POLICYCOREUTILS_MAKE_DIRS = \
@@ -74,6 +75,7 @@ HOST_POLICYCOREUTILS_DEPENDENCIES = \ HOST_POLICYCOREUTILS_MAKE_OPTS = \ $(HOST_CONFIGURE_OPTS) \ CFLAGS="$(HOST_CFLAGS) -U_FILE_OFFSET_BITS" \ + CPPFLAGS="$(HOST_CPPFLAGS) -U_FILE_OFFSET_BITS" \ PYTHON="$(HOST_DIR)/usr/bin/python" \ PYTHON_INSTALL_ARGS="$(HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPTS)" \ ARCH="$(HOSTARCH)"
Signature · 1 line
1.9.1
PATCH 2/2 policycoreutils: restorecon libglib2 dependency
Updated to match Config.in select of libglib2
package as dependency if restorecon is enabled.
--- package/policycoreutils/policycoreutils.mk | 1 + 1 file changed, 1 insertion(+)
package/policycoreutils/policycoreutils.mk +1 -0
@@ -48,6 +48,7 @@ POLICYCOREUTILS_MAKE_DIRS = \ ifeq ($(BR2_PACKAGE_POLICYCOREUTILS_RESTORECOND),y) POLICYCOREUTILS_MAKE_DIRS += restorecond +POLICYCOREUTILS_DEPENDENCIES += libglib2 endif # We need to pass DESTDIR at build time because it's used by # policycoreutils build system to find headers and libraries.
Signature · 1 line
1.9.1
PATCH 1/2 policycoreutils: CPPFLAGS undefine _FILE_OFFSET_BITS
In reply to Matt WeberHello,
Quoted 5 lines · Matt Weber
Undefining
_FILE_OFFSET_BITShere because of a "bug" with glibcfts.hlarge file support.Similar action was taken previously for CFLAGS.
Quoted 8 lines
Resolves:
http://autobuild.buildroot.net/results/4cb/4cb70d776bee01f1284e0c0be5b3fb5f1011353a/
http://autobuild.buildroot.net/results/f43/f438149e7d83475d425e1c1f17550f3cf5f69340/Signed-off-by Matthew Weber <[email protected]>--- package/policycoreutils/policycoreutils.mk | 2 ++ 1 file changed, 2 insertions(+)
Both applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com