diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-25 22:19:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-27 23:54:51 +0000 |
| commit | f854c0ed9dcd2f85385b036fa333df0980efcb73 (patch) | |
| tree | 3853f5345d5126e2b51606c101f59a733308ef63 | |
| parent | 6e2449e0f013cbe7189b8fb837458b1702d7dbbe (diff) | |
| download | poky-f854c0ed9dcd2f85385b036fa333df0980efcb73.tar.gz | |
gawk: update 5.1.1 -> 5.2.1
Place gawkbug into a separate package, as it includes target information
which causes multilib conflicts.
Adjust ptests so they are correctly executed:
- unset LANG before starting
- do not patch /usr/local/bin into /usr/bin; this is not correct
(From OE-Core rev: b5422868b203ef69138406253946333f9928576e)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/remove-sensitive-tests.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-extended/gawk/gawk/run-ptest | 2 | ||||
| -rw-r--r-- | meta/recipes-extended/gawk/gawk_5.2.1.bb (renamed from meta/recipes-extended/gawk/gawk_5.1.1.bb) | 9 |
3 files changed, 35 insertions, 11 deletions
diff --git a/meta/recipes-extended/gawk/gawk/remove-sensitive-tests.patch b/meta/recipes-extended/gawk/gawk/remove-sensitive-tests.patch index 167c0787ee..ffae55058b 100644 --- a/meta/recipes-extended/gawk/gawk/remove-sensitive-tests.patch +++ b/meta/recipes-extended/gawk/gawk/remove-sensitive-tests.patch | |||
| @@ -1,24 +1,43 @@ | |||
| 1 | From 354d24baf7c51977d22ff61ad42e6a2cbd4dc8ac Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Tue, 21 Dec 2021 17:09:12 +0000 | ||
| 4 | Subject: [PATCH] gawk: remove load-sensitive tests | ||
| 5 | |||
| 1 | These tests require an unloaded host as otherwise timing sensitive tests can fail | 6 | These tests require an unloaded host as otherwise timing sensitive tests can fail |
| 2 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371 | 7 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371 |
| 3 | 8 | ||
| 4 | Upstream-Status: Inappropriate | 9 | Upstream-Status: Inappropriate |
| 5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | 10 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 6 | 11 | ||
| 7 | --- a/test/Maketests~ | 12 | --- |
| 8 | +++ b/test/Maketests | 13 | test/Maketests | 10 ---------- |
| 9 | @@ -2069,7 +2069,2 @@ | 14 | 1 file changed, 10 deletions(-) |
| 10 | 15 | ||
| 16 | diff --git a/test/Maketests b/test/Maketests | ||
| 17 | index 3a667af..f117697 100644 | ||
| 18 | --- a/test/Maketests | ||
| 19 | +++ b/test/Maketests | ||
| 20 | @@ -2137,11 +2137,6 @@ symtab12: | ||
| 21 | @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | ||
| 22 | @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ | ||
| 23 | |||
| 11 | -timeout: | 24 | -timeout: |
| 12 | - @echo $@ $(ZOS_FAIL) | 25 | - @echo $@ $(ZOS_FAIL) |
| 13 | - @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | 26 | - @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ |
| 14 | - @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ | 27 | - @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ |
| 15 | - | 28 | - |
| 16 | typedregex1: | 29 | typedregex1: |
| 17 | @@ -2297,7 +2292,2 @@ | 30 | @echo $@ |
| 31 | @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | ||
| 32 | @@ -2371,11 +2366,6 @@ rwarray: | ||
| 33 | @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | ||
| 18 | @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ | 34 | @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ |
| 19 | - | 35 | |
| 20 | -time: | 36 | -time: |
| 21 | - @echo $@ | 37 | - @echo $@ |
| 22 | - @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | 38 | - @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ |
| 23 | - @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ | 39 | - @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ |
| 24 | 40 | - | |
| 41 | mpfrbigint: | ||
| 42 | @echo $@ | ||
| 43 | @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk -M >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ | ||
diff --git a/meta/recipes-extended/gawk/gawk/run-ptest b/meta/recipes-extended/gawk/gawk/run-ptest index f67a95874f..2675650600 100644 --- a/meta/recipes-extended/gawk/gawk/run-ptest +++ b/meta/recipes-extended/gawk/gawk/run-ptest | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | cd test | 3 | cd test |
| 4 | for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do | 4 | for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do |
| 5 | #LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} | 5 | unset LANG |
| 6 | srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1 | 6 | srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1 |
| 7 | if [ -e _$i ]; then | 7 | if [ -e _$i ]; then |
| 8 | cat _$i | 8 | cat _$i |
diff --git a/meta/recipes-extended/gawk/gawk_5.1.1.bb b/meta/recipes-extended/gawk/gawk_5.2.1.bb index fe339805d0..fbe6e7040b 100644 --- a/meta/recipes-extended/gawk/gawk_5.1.1.bb +++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb | |||
| @@ -20,13 +20,16 @@ SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | |||
| 20 | file://run-ptest \ | 20 | file://run-ptest \ |
| 21 | " | 21 | " |
| 22 | 22 | ||
| 23 | SRC_URI[sha256sum] = "6168d8d1dc8f74bd17d9dc22fa9634c49070f232343b744901da15fb4f06bffd" | 23 | SRC_URI[sha256sum] = "529e7c8c6acf21ff3a6183f4d763c632810908989c24675c77995d51ac37b79c" |
| 24 | 24 | ||
| 25 | inherit autotools gettext texinfo update-alternatives | 25 | inherit autotools gettext texinfo update-alternatives |
| 26 | 26 | ||
| 27 | FILES:${PN} += "${datadir}/awk" | 27 | FILES:${PN} += "${datadir}/awk" |
| 28 | FILES:${PN}-dev += "${libdir}/${BPN}/*.la" | 28 | FILES:${PN}-dev += "${libdir}/${BPN}/*.la" |
| 29 | 29 | ||
| 30 | PACKAGES =+ "${PN}-gawkbug" | ||
| 31 | FILES:${PN}-gawkbug += "${bindir}/gawkbug" | ||
| 32 | |||
| 30 | ALTERNATIVE:${PN} = "awk" | 33 | ALTERNATIVE:${PN} = "awk" |
| 31 | ALTERNATIVE_TARGET[awk] = "${bindir}/gawk" | 34 | ALTERNATIVE_TARGET[awk] = "${bindir}/gawk" |
| 32 | ALTERNATIVE_PRIORITY = "100" | 35 | ALTERNATIVE_PRIORITY = "100" |
| @@ -34,6 +37,8 @@ ALTERNATIVE_PRIORITY = "100" | |||
| 34 | do_install:append() { | 37 | do_install:append() { |
| 35 | # remove the link since we don't package it | 38 | # remove the link since we don't package it |
| 36 | rm ${D}${bindir}/awk | 39 | rm ${D}${bindir}/awk |
| 40 | # Strip non-reproducible build flags (containing build paths) | ||
| 41 | sed -i -e 's|^CC.*|CC=""|g' -e 's|^CFLAGS.*|CFLAGS=""|g' ${D}${bindir}/gawkbug | ||
| 37 | } | 42 | } |
| 38 | 43 | ||
| 39 | inherit ptest | 44 | inherit ptest |
| @@ -46,7 +51,7 @@ do_install_ptest() { | |||
| 46 | for i in $TESTS Maketests inclib.awk; do | 51 | for i in $TESTS Maketests inclib.awk; do |
| 47 | cp ${S}/test/$i* ${D}${PTEST_PATH}/test | 52 | cp ${S}/test/$i* ${D}${PTEST_PATH}/test |
| 48 | done | 53 | done |
| 49 | sed -i -e 's|/usr/local/bin|${bindir}|g' \ | 54 | sed -i \ |
| 50 | -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk | 55 | -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk |
| 51 | 56 | ||
| 52 | sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests | 57 | sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests |
