attr: rework do_check and fix in musl.

This commit is contained in:
maxice8 2017-11-17 19:43:26 -02:00 committed by Enno Boland
parent 842bdbe987
commit 4cf4c287fd

View file

@ -12,15 +12,23 @@ homepage="http://savannah.nongnu.org/projects/attr"
license="LGPL-2.1" license="LGPL-2.1"
distfiles="${NONGNU_SITE}/attr/attr-${version}.src.tar.gz" distfiles="${NONGNU_SITE}/attr/attr-${version}.src.tar.gz"
checksum=25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859 checksum=25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859
make_check_args="-j1" # Tests broken when ran in parallel
make_check_target="tests"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
configure_args="--libdir=/usr/lib32 --libexecdir=/usr/lib32" configure_args="--libdir=/usr/lib32 --libexecdir=/usr/lib32"
fi fi
do_check() { pre_check() {
sed -i 's:{(:\\{(:' test/run sed -i 's:{(:\\{(:' test/run
make -j1 tests # Either the test wasn't updated or the package misconfigures/miscompiles
# the error message in musl based systems
# EXPECTED: Operation not supported
# RECIEVED: Not supported
case "$XBPS_TARGET_MACHINE" in
*-musl* ) sed -i 's|f: Operation n|f: N|g' test/attr.test ;;
esac
} }
do_install() { do_install() {