cryptsetup: stop breaking masterdir on check

This commit is contained in:
Đoàn Trần Công Danh 2020-10-25 18:55:03 +07:00
parent 7e743b9894
commit 78ab4df41b

View file

@ -9,7 +9,7 @@ make_check_args="-C tests"
hostmakedepends="pkg-config"
makedepends="device-mapper-devel json-c-devel libressl-devel popt-devel
libargon2-devel $(vopt_if pwquality 'libpwquality-devel')"
checkdepends="util-linux procps-ng which jq tar xz xxd"
checkdepends="procps-ng which jq tar xz xxd"
short_desc="Setup virtual encryption devices under Linux dm-crypt"
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
license="GPL-2.0-or-later"
@ -22,6 +22,15 @@ subpackages="libcryptsetup cryptsetup-devel"
build_options="pwquality"
desc_option_pwquality="Enable support for checking password quality via libpwquality"
post_patch() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
# Require losetup from util-linux, also failing when present
# TODO: 2 tests require lsblk
rm -f tests/compat-test
ln -f /bin/true tests/compat-test
fi
}
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=" --enable-static-cryptsetup"