From: Stefan Schantl Date: Fri, 25 Nov 2011 18:21:23 +0000 (+0100) Subject: m4: Add readlink-einval.patch / Activate testsuite. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bc4053916f3c6ab246e60ff1fcefd70b57baaa1;p=ipfire-3.x.git m4: Add readlink-einval.patch / Activate testsuite. --- diff --git a/m4/m4.nm b/m4/m4.nm index 837951afc..cd2c64df9 100644 --- a/m4/m4.nm +++ b/m4/m4.nm @@ -5,7 +5,7 @@ name = m4 version = 1.4.16 -release = 1 +release = 2 groups = Applications/Text url = http://www.gnu.org/software/m4/ @@ -21,15 +21,14 @@ description configure scripts, but not for running configure scripts. end -source_dl = +source_dl = http://ftp.gnu.org/gnu/m4/ sources = %{thisapp}.tar.xz -# Testsuite is broken ( readlink ) -#build -# test -# make check -# end -#end +build + test + make check + end +end packages package %{name} diff --git a/m4/patches/m4-1.4.16-readlink-einval.patch b/m4/patches/m4-1.4.16-readlink-einval.patch new file mode 100644 index 000000000..6a987510d --- /dev/null +++ b/m4/patches/m4-1.4.16-readlink-einval.patch @@ -0,0 +1,12 @@ +diff -up m4-1.4.16/tests/test-readlink.h.orig m4-1.4.16/tests/test-readlink.h +--- m4-1.4.16/tests/test-readlink.h.orig 2011-09-19 12:44:58.745546826 +0200 ++++ m4-1.4.16/tests/test-readlink.h 2011-09-19 12:46:00.079548410 +0200 +@@ -38,7 +38,7 @@ test_readlink (ssize_t (*func) (char con + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("", buf, sizeof buf) == -1); +- ASSERT (errno == ENOENT); ++ ASSERT (errno == ENOENT || errno == EINVAL); + errno = 0; + ASSERT (func (".", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL);