[Buildroot] [git commit branch/2017.02.x] tar: do not build SELinux support for host variant

Peter Korsgaard peter at korsgaard.com
Mon Jan 29 21:24:51 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=c7787871d444c8f393990cfac578edadb2d9a2f2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.02.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 26f113a4d2..4ba28339ce 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