[Buildroot] [PATCH] tar: do not build SELinux support for host variant

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Dec 29 20:26:08 UTC 2017


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>
---
 package/tar/tar.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/tar/tar.mk b/package/tar/tar.mk
index 813eabed14..678de978cc 100644
--- a/package/tar/tar.mk
+++ b/package/tar/tar.mk
@@ -50,4 +50,6 @@ HOST_TAR_CONF_ENV = \
 	CC="$(HOSTCC_NOCCACHE)" \
 	CXX="$(HOSTCXX_NOCCACHE)"
 
+HOST_TAR_CONF_OPTS = --without-selinux
+
 $(eval $(host-autotools-package))
-- 
2.14.3



More information about the buildroot mailing list