[Buildroot] [git commit branch/2017.11.x] tar: do not build SELinux support for host variant
Peter Korsgaard
peter at korsgaard.com
Mon Jan 8 15:10:11 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=ee57b63fc8c8f75023a3d8531aa24d824209043f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.11.x
If we don't explicitly disable SELinux support in the host-tar build,
it might pick up system-wide installed SELinux libraries, causing the
tar in HOST_DIR/bin/ to depend on the host SELinux libraries, which is
not desirable to make the SDK portable/relocatable.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
(cherry picked from commit 121807c08927c0a0d04c965beb6a8785ea89e47f)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/tar/tar.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/tar/tar.mk b/package/tar/tar.mk
index cb2ddc0..a8a15d9 100644
--- a/package/tar/tar.mk
+++ b/package/tar/tar.mk
@@ -44,4 +44,7 @@ define HOST_TAR_EXTRACT_CMDS
mv $(@D)/tar-$(TAR_VERSION)/* $(@D)
rmdir $(@D)/tar-$(TAR_VERSION)
endef
+
+HOST_TAR_CONF_OPTS = --without-selinux
+
$(eval $(host-autotools-package))
More information about the buildroot
mailing list