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.
This commit is contained in:
Đoàn Trần Công Danh 2020-11-01 20:14:58 +07:00
parent 6093b82334
commit 3821d38eff

View file

@ -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"