From 4cf4c287fd08e73cce5f5cdfab59d58ec1b4a417 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 17 Nov 2017 19:43:26 -0200 Subject: [PATCH] attr: rework do_check and fix in musl. --- srcpkgs/attr/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/attr/template b/srcpkgs/attr/template index 0b660f8b19e..96e8fab8508 100644 --- a/srcpkgs/attr/template +++ b/srcpkgs/attr/template @@ -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() {