From 7a772246efa64caa5794d9503d93572dfa16df2234b7a6208c55974734844d3c Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Fri, 20 Oct 2017 08:01:29 +0000 Subject: [PATCH] Accepting request 535340 from home:AndreasSchwab:f - Update to gawk 4.2.0 * If not in POSIX mode, changes to ENVIRON are reflected into gawk's environment * The series of numbers returned by rand() should now be "more random" than previously * Multiple changes related to the pretty printer * The igawk script and igawk.1 man page are no longer installed * Gawk now processes a maximum of two hexadecimal digits in \x escape sequences inside strings * Setting PROCINFO["redirection", "NONFATAL"] to true makes I/O errors for "redirection" not fatal * Gawk now supports retryable I/O via PROCINFO[input-file, "RETRY"] * Revisions in the POSIX standard remove the special case for POSIX mode when FS = " " where newline was not a field separator * Gawk now supports strongly typed regexp constants * The new typeof() function can be used to indicate if a variable or array element is an array, regexp, string or number * Optimizations are now enabled by default * Passing negative operands to any of the bitwise functions now produces a fatal error * The mktime function now accepts an optional second argument * The FIELDWIDTHS parsing syntax has been enhanced to allow specifying how many characters to skip before a field starts * The PROCINFO["argv"] array records all of gawk's command line arguments as gawk received them - gawk_ppc64le_ignore_transient_test_time_failure.patch: removed OBS-URL: https://build.opensuse.org/request/show/535340 OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=67 --- gawk-4.1.4.tar.xz | 3 -- gawk-4.1.4.tar.xz.sig | 11 ----- gawk-4.2.0.tar.xz | 3 ++ gawk-4.2.0.tar.xz.sig | 11 +++++ gawk.changes | 30 +++++++++++++ gawk.spec | 15 ++----- ...e_ignore_transient_test_time_failure.patch | 42 ------------------- 7 files changed, 47 insertions(+), 68 deletions(-) delete mode 100644 gawk-4.1.4.tar.xz delete mode 100644 gawk-4.1.4.tar.xz.sig create mode 100644 gawk-4.2.0.tar.xz create mode 100644 gawk-4.2.0.tar.xz.sig delete mode 100644 gawk_ppc64le_ignore_transient_test_time_failure.patch diff --git a/gawk-4.1.4.tar.xz b/gawk-4.1.4.tar.xz deleted file mode 100644 index 299f1cb..0000000 --- a/gawk-4.1.4.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266 -size 2367832 diff --git a/gawk-4.1.4.tar.xz.sig b/gawk-4.1.4.tar.xz.sig deleted file mode 100644 index 0f25509..0000000 --- a/gawk-4.1.4.tar.xz.sig +++ /dev/null @@ -1,11 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1 - -iQEcBAABAgAGBQJXvzSWAAoJEN9ZeBWTfsDSPP8H/1Naw13ybArprjJDgwU7kQ5X -Yrwt40pQwehaxk+21kVlA+19O7qamHbKhX1etyRB4+KaBjTf9s3tOCdIIo4b3oTi -XCMSXhyBRzOs47+p2l6MVtQLPNuQ5nNhqeuP6tmlSi0QyI43EAcP3cix0nsYriUH -EAv2VffhdYawUrKgZE1sssRlDD47YoEelS4Gs1kC1HBRp/LnvuISItiP43JVGGeX -+SjgPh14oe8F7yVxIyAUFnK4zKEaNM/KDKvvZ7tDz1n7NtLxihtJPnvsticLhvDC -w+upaY41YUx0nnIy2QXF2lLNRtceJJ5zhl/QMxME5nWnN1dNGZLAVnBQYUbU7oU= -=8yeI ------END PGP SIGNATURE----- diff --git a/gawk-4.2.0.tar.xz b/gawk-4.2.0.tar.xz new file mode 100644 index 0000000..7a214ba --- /dev/null +++ b/gawk-4.2.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4f3cd31c001fd0ed52832d4fbfbdfeaa38ad541c182f80ff8fdf87324a6a9f2 +size 2948108 diff --git a/gawk-4.2.0.tar.xz.sig b/gawk-4.2.0.tar.xz.sig new file mode 100644 index 0000000..70808a3 --- /dev/null +++ b/gawk-4.2.0.tar.xz.sig @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQEcBAABAgAGBQJZ6PEYAAoJEN9ZeBWTfsDSBtQH/RaqjTVMNIpoqJRXyfnx+Lu7 +Mnm3qkcvjn0PdaYT9pCSakZmbz75Y9Ra+FuDzMUGdXdeVsJhJ5N57Ao/5z52E4cA +G2612gJJbgeT69aAS1oKN49wbW8/ukjbHRGZkO/8WDnBHvo6WlbnoMIsw4WCANTR +GOBU9+QDCD1KwS2os+TWaEUZKLGWFHKzbryQnxpDes/5fsVFWPhFsI1t6Zu6/T0w +YimlDnEh+7S4KfKmxl3JIgj1tFBI9ftaZNNy9LqO3h3eYTRqpcfEgPZBG+G4mHRj +hhfu+LiSly9wB46+ca0mCqkP3oTyZ9YQkBIJSdDnRpSb6tvPGy1+AteijtyZlWE= +=UJep +-----END PGP SIGNATURE----- diff --git a/gawk.changes b/gawk.changes index a9ede57..7b680fd 100644 --- a/gawk.changes +++ b/gawk.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Thu Oct 19 21:54:47 UTC 2017 - schwab@linux-m68k.org + +- Update to gawk 4.2.0 + * If not in POSIX mode, changes to ENVIRON are reflected into + gawk's environment + * The series of numbers returned by rand() should now be "more + random" than previously + * Multiple changes related to the pretty printer + * The igawk script and igawk.1 man page are no longer installed + * Gawk now processes a maximum of two hexadecimal digits in \x + escape sequences inside strings + * Setting PROCINFO["redirection", "NONFATAL"] to true makes I/O + errors for "redirection" not fatal + * Gawk now supports retryable I/O via PROCINFO[input-file, "RETRY"] + * Revisions in the POSIX standard remove the special case for POSIX + mode when FS = " " where newline was not a field separator + * Gawk now supports strongly typed regexp constants + * The new typeof() function can be used to indicate if a variable or + array element is an array, regexp, string or number + * Optimizations are now enabled by default + * Passing negative operands to any of the bitwise functions now + produces a fatal error + * The mktime function now accepts an optional second argument + * The FIELDWIDTHS parsing syntax has been enhanced to allow specifying + how many characters to skip before a field starts + * The PROCINFO["argv"] array records all of gawk's command line arguments + as gawk received them +- gawk_ppc64le_ignore_transient_test_time_failure.patch: removed + ------------------------------------------------------------------- Wed Oct 11 11:40:41 UTC 2017 - astieger@suse.com diff --git a/gawk.spec b/gawk.spec index 8f2ace4..4e3ba0e 100644 --- a/gawk.spec +++ b/gawk.spec @@ -17,7 +17,7 @@ Name: gawk -Version: 4.1.4 +Version: 4.2.0 Release: 0 Summary: GNU awk License: GPL-3.0+ @@ -27,7 +27,6 @@ Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig Source3: http://savannah.gnu.org/people/viewgpg.php?user_id=80653#/gawk.keyring Source4: gawk.rpmlintrc -Patch1: gawk_ppc64le_ignore_transient_test_time_failure.patch BuildRequires: update-alternatives Requires(post): %{install_info_prereq} Requires(post): update-alternatives @@ -42,20 +41,12 @@ almost completely POSIX 1003.2 compliant. %prep %setup -q -chmod -x COPYING -# skip strftime time -sed -ie 's/ strftime / /g' test/Makefile.in -# apply only for the arch that experienced previously transient failure -%ifarch ppc64le ppc64 -%patch1 -p1 -%endif %build %configure --libexecdir=%{_libdir} make %{?_smp_mflags} %check -# strftime test skipped via prep section make check %{?_smp_mflags} %install @@ -91,6 +82,8 @@ fi %files -f %{name}.lang %defattr(-,root,root) +%config %{_sysconfdir}/profile.d/gawk.csh +%config %{_sysconfdir}/profile.d/gawk.sh #UsrMerge /bin/awk #EndUsrMerge @@ -104,14 +97,12 @@ fi /bin/gawk #EndUsrMerge %{_bindir}/gawk -%{_bindir}/igawk %{_libdir}/awk %{_libdir}/gawk %{_datadir}/awk %{_includedir}/gawkapi.h %{_infodir}/*.info.gz %{_mandir}/man1/gawk.1%{?ext_man} -%{_mandir}/man1/igawk.1%{?ext_man} %{_mandir}/man3/*%{?ext_man} %changelog diff --git a/gawk_ppc64le_ignore_transient_test_time_failure.patch b/gawk_ppc64le_ignore_transient_test_time_failure.patch deleted file mode 100644 index 1a83e10..0000000 --- a/gawk_ppc64le_ignore_transient_test_time_failure.patch +++ /dev/null @@ -1,42 +0,0 @@ -From: Michel Normand -Subject: gawk ppc64le ignore transient test time failure -Date: Wed, 04 May 2016 17:46:51 +0200 - -gawk ignore test/time.awk transient failure -I experienced it one time on ppc64le with gawk version 4.1.3 -=== -[ 50s] ============== _time ============= -[ 50s] *** time.ok Sun Apr 5 08:13:50 2015 -[ 50s] --- _time Wed May 4 05:51:05 2016 -[ 50s] *************** -[ 50s] *** 1,3 **** -[ 50s] ! gettimeofday - systime = 0 -[ 50s] sleep(1.3) = 0 -[ 50s] gettimeofday - systime = 0 -[ 50s] --- 1,3 ---- -[ 50s] ! gettimeofday - systime = 1 -[ 50s] sleep(1.3) = 0 -[ 50s] gettimeofday - systime = 0 -[ 50s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/gawk-4.1.3/test' -[ 50s] Makefile:1583: recipe for target 'check' failed -[ 50s] make[1]: *** [check] Error 1 -=== - -Signed-off-by: Michel Normand ---- - test/Makefile.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: gawk-4.1.3/test/Makefile.in -=================================================================== ---- gawk-4.1.3.orig/test/Makefile.in -+++ gawk-4.1.3/test/Makefile.in -@@ -3921,7 +3921,7 @@ rwarray: - time: - @echo $@ - @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ -- @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ -+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ || { echo "WARNING ignore diff:"; $(CMP) "$(srcdir)"/$@.ok _$@; rm -f _$@; } - - # end of file Maketests -