attr: rework do_check and fix in musl.
This commit is contained in:
parent
842bdbe987
commit
4cf4c287fd
|
@ -12,15 +12,23 @@ homepage="http://savannah.nongnu.org/projects/attr"
|
|||
license="LGPL-2.1"
|
||||
distfiles="${NONGNU_SITE}/attr/attr-${version}.src.tar.gz"
|
||||
checksum=25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859
|
||||
make_check_args="-j1" # Tests broken when ran in parallel
|
||||
make_check_target="tests"
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
configure_args="--libdir=/usr/lib32 --libexecdir=/usr/lib32"
|
||||
fi
|
||||
|
||||
do_check() {
|
||||
pre_check() {
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue