replace weirdo constant in gnulib tests

... causing test failures on armv7hl
This commit is contained in:
Kamil Dudka 2020-07-24 18:54:53 +02:00
parent 6d3ccf4f6f
commit 27d47106a2
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ sed src/dircolors.hin \
# apply all patches
%autopatch -p1
# replace weirdo constant in gnulib tests causing test failures on armv7hl
sed -e 's/1729576/EPERM/' \
-i gnulib-tests/test-{perror2,strerror_r}.c
(echo ">>> Fixing permissions on tests") 2>/dev/null
find tests -name '*.sh' -perm 0644 -print -exec chmod 0755 '{}' '+'
(echo "<<< done") 2>/dev/null