From 3821d38effd49bbe0bc0d436d19036c203be121c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 1 Nov 2020 20:14:58 +0700 Subject: [PATCH] file: disable libseccomp explicitly on bootstrapping To avoid autotools enable libseccomp on host with libseccomp installed. Conditionally disable outside of chroot to allow future conditional enable libseccomp in production. --- srcpkgs/file/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/file/template b/srcpkgs/file/template index b4d0d26ee31..83d62af699a 100644 --- a/srcpkgs/file/template +++ b/srcpkgs/file/template @@ -13,6 +13,14 @@ homepage="http://www.darwinsys.com/file/" distfiles="https://astron.com/pub/file/file-${version}.tar.gz" checksum=f05d286a76d9556243d0cb05814929c2ecf3a5ba07963f8f70bfaaa70517fad1 +if [ -z "$CHROOT_READY" ]; then + # libseccomp's default=auto + # and libseccomp is not bootstrap + # If we're bootstrap from host with libseccomp installed + # bootstrap will fail to install shlib required by file. + configure_args+=" --disable-libseccomp" +fi + if [ "$CROSS_BUILD" ]; then # XXX cross compilation needs exactly the same version for the host hostmakedepends="file"