diff options
Diffstat (limited to 'system/m4')
-rw-r--r-- | system/m4/APKBUILD | 27 | ||||
-rw-r--r-- | system/m4/disable-mbrtowc-test.patch | 4 | ||||
-rw-r--r-- | system/m4/fix-ppc-ucontext-regs.patch | 12 | ||||
-rw-r--r-- | system/m4/localename-test-fix.patch | 34 | ||||
-rw-r--r-- | system/m4/m4-1.4.19-test-198.patch | 31 | ||||
-rw-r--r-- | system/m4/posix-test.patch | 18 |
6 files changed, 77 insertions, 49 deletions
diff --git a/system/m4/APKBUILD b/system/m4/APKBUILD index 861b1671f..90b5145c7 100644 --- a/system/m4/APKBUILD +++ b/system/m4/APKBUILD @@ -1,23 +1,24 @@ -# Maintainer: +# Maintainer: Zach van Rijn <me@zv.io> pkgname=m4 -pkgver=1.4.18 +pkgver=1.4.19 pkgrel=1 pkgdesc="GNU macro processor" url="https://www.gnu.org/software/m4" arch="all" license="GPL-3.0+" -depends= -makedepends="texinfo" +depends="" checkdepends="diffutils" -subpackages="m4-doc" +makedepends="texinfo" +subpackages="$pkgname-doc $pkgname-lang" source="https://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.gz disable-mbrtowc-test.patch - localename-test-fix.patch gnulib-tests-dont-require-gpg-passphrase.patch + m4-1.4.19-test-198.patch + posix-test.patch + fix-ppc-ucontext-regs.patch " build() { - cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -26,18 +27,18 @@ build() { } check() { - cd "$builddir" make check } package() { - cd "$builddir" make install DESTDIR="$pkgdir" rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true } -sha512sums="29254dd4267a093e8d9da3a26df8b02564044cdb4506be539ec1aff4e5d406477bcf32f5e813c840f3aec77293bfe2cdde18f6a21724a7e0bfff646ec88b74ae m4-1.4.18.tar.gz -78bf099c96fcec8c9cebd4e34f0d7c942e99da2ec238baa9464f8443580edb0565e9026c433ee54fb564304ec8e7e90766e19474472e57b48e567fd7b356777e disable-mbrtowc-test.patch -fac0cb58e698996284a222c4da340f92689d6db98f1fbab6e61e1c5f2d90122660296f8e5c60c94169413e3e2ee632c6264f12b98e5d3a1e1aae145a2d4aac45 localename-test-fix.patch -fb7344bc8a7aea1f1ce87474109aaf3d5a5ca0cd86b517025c6aad9a388a9ede7c267e7095d171d8768d1c0f0d9d8009e307467352afa81484c54dc476db0ebd gnulib-tests-dont-require-gpg-passphrase.patch" +sha512sums="f5dd0f02fcae65a176a16af9a8e1747c26e9440c6c224003ba458d3298b777a75ffb189aee9051fb0c4840b2a48278be4a51d959381af0b1d627570f478c58f2 m4-1.4.19.tar.gz +c39562852502282f83b9bfa46aff00c8859b19d4d4335dbdb488748b10f6df6a13ea8291784683bf967674a5a824276419af47d2395e8af18823452a8d4999da disable-mbrtowc-test.patch +fb7344bc8a7aea1f1ce87474109aaf3d5a5ca0cd86b517025c6aad9a388a9ede7c267e7095d171d8768d1c0f0d9d8009e307467352afa81484c54dc476db0ebd gnulib-tests-dont-require-gpg-passphrase.patch +f409fcfd70d55c099bba7d784bea8f99cd6ccbfe24dfc3d76a2e757df96b6c71f7e4b42f63d433259e3bec7b7e40e6569533c032c98537003a6e7314754dd6fb m4-1.4.19-test-198.patch +43c68f84c465b2e26a73ef0a5cf9bacafee70849f9de166eef45d7699438dce0ea3cacdd513daa8a8ae7fb677778290e2a78d01b551d9465de68eb167abcbc93 posix-test.patch +0d40a28e2a4d40c5f18c317e4e6bce7fda2c7316249ebf102c585eda32d069a63a1fb5ced5efcba6d2beb2d68d54d67c6b2789f881bbb488899c95130e152744 fix-ppc-ucontext-regs.patch" diff --git a/system/m4/disable-mbrtowc-test.patch b/system/m4/disable-mbrtowc-test.patch index cc2be2478..45b019b9d 100644 --- a/system/m4/disable-mbrtowc-test.patch +++ b/system/m4/disable-mbrtowc-test.patch @@ -4,7 +4,7 @@ #!/bin/sh -# Test whether the POSIX locale has encoding errors. -LC_ALL=C \ --./test-mbrtowc${EXEEXT} 5 || exit +-${CHECKER} ./test-mbrtowc${EXEEXT} 5 || exit -LC_ALL=POSIX \ --./test-mbrtowc${EXEEXT} 5 +-${CHECKER} ./test-mbrtowc${EXEEXT} 5 +exit 77 diff --git a/system/m4/fix-ppc-ucontext-regs.patch b/system/m4/fix-ppc-ucontext-regs.patch new file mode 100644 index 000000000..d696da4ad --- /dev/null +++ b/system/m4/fix-ppc-ucontext-regs.patch @@ -0,0 +1,12 @@ +diff -ur a/lib/sigsegv.c b/lib/sigsegv.c +--- a/lib/sigsegv.c 2022-03-05 20:30:15.030000000 +0000 ++++ b/lib/sigsegv.c 2022-03-05 20:42:49.910000000 +0000 +@@ -220,7 +220,7 @@ + # if 0 + # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1] + # else +-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1] ++# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[1] + # endif + # endif + diff --git a/system/m4/localename-test-fix.patch b/system/m4/localename-test-fix.patch deleted file mode 100644 index 04584aba6..000000000 --- a/system/m4/localename-test-fix.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- m4-1.4.18/tests/localename.c.old 2016-12-31 13:54:43.000000000 +0000 -+++ m4-1.4.18/tests/localename.c 2017-07-30 16:40:47.098541270 +0000 -@@ -40,7 +40,7 @@ - # if defined __APPLE__ && defined __MACH__ - # include <xlocale.h> - # endif --# if __GLIBC__ >= 2 && !defined __UCLIBC__ -+# if defined __linux__ - # include <langinfo.h> - # endif - # if !defined IN_LIBINTL -@@ -2692,16 +2692,19 @@ - locale_t thread_locale = uselocale (NULL); - if (thread_locale != LC_GLOBAL_LOCALE) - { --# if __GLIBC__ >= 2 && !defined __UCLIBC__ -+# if defined(_NL_LOCALE_NAME) -+ const char *name = nl_langinfo(_NL_LOCALE_NAME(category)); -+# if __GLIBC__ >= 2 && !defined __UCLIBC__ - /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in - glibc < 2.12. - See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */ -- const char *name = -- nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); -+ if (name[0] == '\0') -+ name = nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); - if (name[0] == '\0') - /* Fallback code for glibc < 2.4, which did not implement - nl_langinfo (_NL_LOCALE_NAME (category)). */ - name = thread_locale->__names[category]; -+# endif - return name; - # elif defined __FreeBSD__ || (defined __APPLE__ && defined __MACH__) - /* FreeBSD, Mac OS X */ diff --git a/system/m4/m4-1.4.19-test-198.patch b/system/m4/m4-1.4.19-test-198.patch new file mode 100644 index 000000000..3ca4bd478 --- /dev/null +++ b/system/m4/m4-1.4.19-test-198.patch @@ -0,0 +1,31 @@ +From cd7f4d153ccccf601751e9fa82424412f6ecfc96 Mon Sep 17 00:00:00 2001 +From: Eric Blake <eblake@redhat.com> +Date: Tue, 1 Jun 2021 08:10:51 -0500 +Subject: [PATCH] tests: Fix 198.sysval + +In my attempt to avoid test failures on Haiku, I caused test failures +on platforms where sh is noisy when reporting a killed sub-process. + +* doc/m4.texi (Sysval): Avoid stderr noise during test. +Fixes: 17011ea76a (tests: Skip signal detection on Haiku) +Fixes: https://lists.gnu.org/archive/html/bug-m4/2021-05/msg00029.html +--- + doc/m4.texi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/m4.texi b/doc/m4.texi +index 247f2be5..3b833b2a 100644 +--- a/doc/m4.texi ++++ b/doc/m4.texi +@@ -6756,6 +6756,7 @@ ifdef(`__unix__', , + ')m4exit(`77')')dnl + changequote(`[', `]') + @result{} +-syscmd([/bin/sh -c 'kill -9 $$'; st=$?; test $st = 137 || test $st = 265]) ++syscmd([@{ /bin/sh -c 'kill -9 $$'; @} 2>/dev/null; st=$?; ++test $st = 137 || test $st = 265]) + @result{} + ifelse(sysval, [0], , [errprint([ skipping: shell does not send signal 9 +-- +2.17.1 + diff --git a/system/m4/posix-test.patch b/system/m4/posix-test.patch new file mode 100644 index 000000000..058c85c6f --- /dev/null +++ b/system/m4/posix-test.patch @@ -0,0 +1,18 @@ +This behaviour does not pass on *this* platform. + +--- m4-1.4.19/tests/test-posix_spawn_file_actions_addclose.c.old 2021-04-22 15:28:47.000000000 -0500 ++++ m4-1.4.19/tests/test-posix_spawn_file_actions_addclose.c 2022-02-09 03:27:59.030000000 -0600 +@@ -54,13 +54,6 @@ + errno = 0; + ASSERT (posix_spawn_file_actions_addclose (&actions, -1) == EBADF); + } +- /* This behaviour is not mandated by POSIX, but happens to pass on all +- platforms. */ +- { +- int bad_fd = big_fd (); +- errno = 0; +- ASSERT (posix_spawn_file_actions_addclose (&actions, bad_fd) == EBADF); +- } + + posix_spawn_file_actions_destroy (&actions); + |