diff mbox series

tar: do not build SELinux support for host variant

Message ID 20171229202608.1767-1-thomas.petazzoni@free-electrons.com
State Accepted
Headers show
Series tar: do not build SELinux support for host variant | expand

Commit Message

Thomas Petazzoni Dec. 29, 2017, 8:26 p.m. UTC
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@free-electrons.com>
---
 package/tar/tar.mk | 2 ++
 1 file changed, 2 insertions(+)

Comments

Thomas Petazzoni Dec. 30, 2017, 9:35 p.m. UTC | #1
Hello,

On Fri, 29 Dec 2017 21:26:08 +0100, Thomas Petazzoni wrote:
> 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@free-electrons.com>
> ---
>  package/tar/tar.mk | 2 ++
>  1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas
Peter Korsgaard Jan. 8, 2018, 9:48 p.m. UTC | #2
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > 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@free-electrons.com>

Committed to 2017.11.x, thanks.
Peter Korsgaard Jan. 29, 2018, 9:35 p.m. UTC | #3
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > 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@free-electrons.com>

Committed to 2017.02.x, thanks.
diff mbox series

Patch

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))