]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
gawk: Update to 5.2.2 and disable PMA tests
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 May 2023 16:26:43 +0000 (16:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 May 2023 16:26:43 +0000 (16:26 +0000)
Those tests cannot be run as root, so we have to disable them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
gawk/gawk.nm
gawk/patches/disable-the-pma-test.patch [new file with mode: 0644]

index 0e544ee70af19a2c7cbb4fc0b4a974a7e6009ad9..71c39f26b13d580ab8c320e99869d965f1c03a25 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = gawk
-version    = 5.2.1
-release    = 2
+version    = 5.2.2
+release    = 1
 
 groups     = System/Tools
 url        = https://www.gnu.org/software/gawk/gawk.html
@@ -24,12 +24,14 @@ sources    = %{thisapp}.tar.xz
 
 build
        requires
+               autoconf
+               automake
                mpfr-devel
                util-linux
        end
 
        configure_options += \
-               --with-libsigsegv-prefix=no
+               --disable-libsigsegv
 
        prepare_cmds
                # The config scripts checks if the used compiler accepts -no-pie and if
diff --git a/gawk/patches/disable-the-pma-test.patch b/gawk/patches/disable-the-pma-test.patch
new file mode 100644 (file)
index 0000000..82c28fa
--- /dev/null
@@ -0,0 +1,27 @@
+From 5ef029c1d69d2b2d802928c4b80d000b87e97548 Mon Sep 17 00:00:00 2001
+From: rpm-build <rpm-build>
+Date: Mon, 22 May 2023 17:48:35 +0200
+Subject: [PATCH] Disable the pma test
+
+---
+ test/Makefile.in | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/test/Makefile.am b/test/Makefile.am
+index 3ed140c..65e2f9c 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -2246,9 +2246,7 @@ makepmafile: makepmafile.c
+ pma:
+       @echo $@
+-      @GAWK_PERSIST_FILE=test.pma $(AWK) 'BEGIN { print ++i }' > _$@ 2>&1
+-      @GAWK_PERSIST_FILE=test.pma $(AWK) 'BEGIN { print ++i }' >> _$@ 2>&1
+-      @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
++      @echo Skipping pma tests
+       @-$(RM) -f test.pma
+-- 
+2.40.0
+