diff --git a/srcpkgs/cryptsetup/template b/srcpkgs/cryptsetup/template index 5a1b41a0e7..898e37a0c4 100644 --- a/srcpkgs/cryptsetup/template +++ b/srcpkgs/cryptsetup/template @@ -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 " 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"