gawk 5.1.0-1 (x86_64) 2020-11462
1

Status rejected
Submitter nobodydead [@T] gmail.com
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/758435
Packages
gawk-5.1.0-1.x86_64.source
gawk-5.1.0-1.x86_64.binary
gawk-debuginfo-5.1.0-1.x86_64.debuginfo
gawk-doc-5.1.0-1.x86_64.binary
Build Date 2020-04-17 00:16:24 +0000 UTC
Last Updated 2020-04-21 01:45:21.845274718 +0000 UTC
$ git diff --patch-with-stat --summary 218aaf415914cf45cdd5c39af7b422f84776ae6e..707138b26aa6330f570923e581b64cd1d85b9df4

 .abf.yml                           |   2 +-
 gawk-5.1.0-no-Lusrlib.patch        |  73 +++++++
 gawk-api-version.patch             |  53 -----
 gawk-inplace-namespace-part1.patch | 177 -----------------
 gawk-inplace-namespace-part2.patch |  70 -------
 gawk-inplace-namespace-part3.patch | 384 -------------------------------------
 gawk.spec                          |  13 +-
 7 files changed, 77 insertions(+), 695 deletions(-)
 create mode 100644 gawk-5.1.0-no-Lusrlib.patch
 delete mode 100644 gawk-api-version.patch
 delete mode 100644 gawk-inplace-namespace-part1.patch
 delete mode 100644 gawk-inplace-namespace-part2.patch
 delete mode 100644 gawk-inplace-namespace-part3.patch

diff --git a/.abf.yml b/.abf.yml
index bb3794f..fa98850 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  gawk-5.0.1.tar.xz: ccdad761aa1fc682d688c7095b47208bef726582
+  gawk-5.1.0.tar.xz: 02408f1be58747a0d8c16ef1d191398b4260c638
diff --git a/gawk-5.1.0-no-Lusrlib.patch b/gawk-5.1.0-no-Lusrlib.patch
new file mode 100644
index 0000000..2dd5472
--- /dev/null
+++ b/gawk-5.1.0-no-Lusrlib.patch
@@ -0,0 +1,73 @@
+diff -up gawk-5.1.0/configure.ac.omv~ gawk-5.1.0/configure.ac
+diff -up gawk-5.1.0/m4/lib-link.m4.omv~ gawk-5.1.0/m4/lib-link.m4
+--- gawk-5.1.0/m4/lib-link.m4.omv~	2020-04-17 01:44:55.677769040 +0200
++++ gawk-5.1.0/m4/lib-link.m4	2020-04-17 01:46:49.913041223 +0200
+@@ -370,7 +370,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+           fi
+           if test "X$found_dir" != "X"; then
+             dnl Found the library.
+-            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
++            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ } -l$name"
+             if test "X$found_so" != "X"; then
+               dnl Linking with a shared library. We attempt to hardcode its
+               dnl directory into the executable's runpath, unless it's the
+@@ -430,7 +430,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+                       fi
+                     done
+                     if test -z "$haveit"; then
+-                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
++                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }"
+                     fi
+                     if test "$acl_hardcode_minus_L" != no; then
+                       dnl FIXME: Not sure whether we should use
+@@ -457,7 +457,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+               else
+                 dnl We shouldn't come here, but anyway it's good to have a
+                 dnl fallback.
+-                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
++                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ } -l$name"
+               fi
+             fi
+             dnl Assume the include files are nearby.
+@@ -558,7 +558,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+                         if test -z "$haveit"; then
+                           if test -d "$additional_libdir"; then
+                             dnl Really add $additional_libdir to $LIBNAME.
+-                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
++                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }"
+                           fi
+                         fi
+                         haveit=
+@@ -572,7 +572,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+                         if test -z "$haveit"; then
+                           if test -d "$additional_libdir"; then
+                             dnl Really add $additional_libdir to $LTLIBNAME.
+-                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
++                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }"
+                           fi
+                         fi
+                       fi
+diff -up gawk-5.1.0/m4/mpfr.m4.omv~ gawk-5.1.0/m4/mpfr.m4
+--- gawk-5.1.0/m4/mpfr.m4.omv~	2020-04-17 01:44:30.581489554 +0200
++++ gawk-5.1.0/m4/mpfr.m4	2020-04-17 01:44:39.925593615 +0200
+@@ -18,7 +18,7 @@ AC_DEFUN([GNUPG_CHECK_MPFR],
+      [_do_mpfr=$withval],[_do_mpfr=yes])
+ 
+   if test "$_do_mpfr" != "no" ; then
+-     if test -d "$withval" ; then
++     if test -d "$withval" -a "$withval" != "/usr"; then
+         CPPFLAGS="${CPPFLAGS} -I$withval/include"
+         LDFLAGS="${LDFLAGS} -L$withval/lib"
+      fi
+diff -up gawk-5.1.0/m4/readline.m4.omv~ gawk-5.1.0/m4/readline.m4
+--- gawk-5.1.0/m4/readline.m4.omv~	2020-04-17 01:43:14.484642097 +0200
++++ gawk-5.1.0/m4/readline.m4	2020-04-17 01:43:40.117927565 +0200
+@@ -24,7 +24,7 @@ AC_DEFUN([GAWK_CHECK_READLINE],
+      [_do_readline=$withval],[_do_readline=yes])
+ 
+   if test "$_do_readline" != "no" ; then
+-     if test -d "$withval" ; then
++     if test -d "$withval" -a "$withval" != "/usr" ; then
+         CPPFLAGS="${CPPFLAGS} -I$withval/include"
+         LDFLAGS="${LDFLAGS} -L$withval/lib"
+      fi
diff --git a/gawk-api-version.patch b/gawk-api-version.patch
deleted file mode 100644
index 9e54e3e..0000000
--- a/gawk-api-version.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From ae1139c068702ede2d35002bdd14199a2c9eb4d8 Mon Sep 17 00:00:00 2001
-From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
-Date: Mon, 8 Jul 2019 09:25:01 -0400
-Subject: [PATCH] Bump gawk_api_major_version due to incompatible namespace
- changes.
-
----
- ChangeLog | 8 ++++++++
- gawkapi.h | 5 ++++-
- 2 files changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/ChangeLog b/ChangeLog
-index 31bb6a5..9dda704 100644
---- a/ChangeLog
-+++ b/ChangeLog
-@@ -1,3 +1,11 @@
-+2019-07-08         Andrew J. Schorr      <aschorr@telemetry-investments.com>
-+
-+	* gawkapi.h (gawk_api_major_version): Bump from 2 to 3 because the
-+	namespace changes altered the function signatures in gawk_api_t.
-+	And add a comment at the top of the structure with a reminder that
-+	the version number should be bumped whenever the struct is altered
-+	in any way.
-+
- 2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* symbol.c (install): Strip off any leading `awk::' before
-diff --git a/gawkapi.h b/gawkapi.h
-index 3db8990..9d9cf87 100644
---- a/gawkapi.h
-+++ b/gawkapi.h
-@@ -296,7 +296,7 @@ typedef struct awk_two_way_processor {
- 	awk_const struct awk_two_way_processor *awk_const next;  /* for use by gawk */
- } awk_two_way_processor_t;
- 
--#define gawk_api_major_version 2
-+#define gawk_api_major_version 3
- #define gawk_api_minor_version 0
- 
- /* Current version of the API. */
-@@ -458,6 +458,9 @@ typedef void *awk_ext_id_t;	/* opaque type for extension id */
- /*
-  * The API into gawk. Lots of functions here. We hope that they are
-  * logically organized.
-+ *
-+ * !!! If you make any changes to this structure, please remember to bump !!!
-+ * !!! gawk_api_major_version and/or gawk_api_minor_version.              !!!
-  */
- typedef struct gawk_api {
- 	/* First, data fields. */
--- 
-1.8.3.1
-
diff --git a/gawk-inplace-namespace-part1.patch b/gawk-inplace-namespace-part1.patch
deleted file mode 100644
index a4ee780..0000000
--- a/gawk-inplace-namespace-part1.patch
+++ /dev/null
@@ -1,177 +0,0 @@
-From 8f2b0b9128f4d2dc50ae52c304237c8e9d4b85f9 Mon Sep 17 00:00:00 2001
-From: "Arnold D. Robbins" <arnold@skeeve.com>
-Date: Wed, 26 Jun 2019 21:34:29 +0300
-Subject: [PATCH 1/3] Fix a problem when using awk::var kinds of names.
-
----
- ChangeLog        |  6 ++++++
- symbol.c         |  5 ++++-
- test/ChangeLog   |  7 +++++++
- test/Makefile.am | 33 +++++++++++++++++++++++++++++++++
- test/Makefile.in | 33 +++++++++++++++++++++++++++++++++
- 5 files changed, 83 insertions(+), 1 deletion(-)
-
-diff --git a/ChangeLog b/ChangeLog
-index 44178ffc..3aa5b12e 100644
---- a/ChangeLog
-+++ b/ChangeLog
-@@ -1,3 +1,9 @@
-+2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>
-+
-+	* symbol.c (install): Strip off any leading `awk::' before
-+	installing a symbol. Thanks to Andrew Schorr for the
-+	report.
-+
- 2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* 5.0.1: Release tar ball made.
-diff --git a/symbol.c b/symbol.c
-index fe928112..e2e07c30 100644
---- a/symbol.c
-+++ b/symbol.c
-@@ -306,7 +306,10 @@ install(const char *name, NODE *parm, NODETYPE type)
- 	NODE *n_name;
- 	NODE *prev;
- 
--	n_name = make_string(name, strlen(name));
-+	if (strncmp(name, "awk::", 5) == 0)
-+		n_name = make_string(name + 5, strlen(name) - 5);
-+	else
-+		n_name = make_string(name, strlen(name));
- 
- 	table = symbol_table;
- 
-diff --git a/test/ChangeLog b/test/ChangeLog
-index a53c2d13..99391b0d 100644
---- a/test/ChangeLog
-+++ b/test/ChangeLog
-@@ -1,3 +1,10 @@
-+2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>
-+
-+	* Makefile.am (EXTRA_DIST): New tests, nsawk1[abc] and nsawk2[ab].
-+	* nsawk1.awk, nsawk1a.ok, nsawk1b.ok, nsawk1c.ok, nsawk2.awk,
-+	nsawk2a.ok, nsawk2b.ok: New files.
-+	Tests courtesy of Michal Jaegermann.
-+
- 2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* 5.0.1: Release tar ball made.
-diff --git a/test/Makefile.am b/test/Makefile.am
-index 58ee1304..d7f6e016 100644
---- a/test/Makefile.am
-+++ b/test/Makefile.am
-@@ -782,6 +782,13 @@ EXTRA_DIST = \
- 	noparms.ok \
- 	nors.in \
- 	nors.ok \
-+	nsawk1.awk \
-+	nsawk1a.ok \
-+	nsawk1b.ok \
-+	nsawk1c.ok \
-+	nsawk2.awk \
-+	nsawk2a.ok \
-+	nsawk2b.ok \
- 	nsbad.awk \
- 	nsbad.ok \
- 	nsbad_cmd.ok \
-@@ -1353,6 +1360,7 @@ GAWK_EXT_TESTS = \
- 	lint lintexp lintindex lintint lintlength lintold lintset lintwarn \
- 	manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \
- 	nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \
-+	nsawk1a nsawk1b nsawk1c nsawk2a nsawk2b \
- 	nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \
- 	patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge \
- 	procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \
-@@ -2042,6 +2050,31 @@ readfile2::
- 	@$(AWK) -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.awk "$(srcdir)"/readdir.awk > _$@ || echo EXIT CODE: $$? >>_$@
- 	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
- 
-+nsawk1a::
-+	@echo $@
-+	@$(AWK) -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk1b::
-+	@echo $@
-+	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk1c::
-+	@echo $@
-+	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk2a::
-+	@echo $@
-+	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk2b::
-+	@echo $@
-+	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
- include2::
- 	@echo $@
- 	@AWKPATH="$(srcdir)" $(AWK) --include inclib 'BEGIN {print sandwich("a", "b", "c")}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
-diff --git a/test/Makefile.in b/test/Makefile.in
-index ce5b2e26..53827516 100644
---- a/test/Makefile.in
-+++ b/test/Makefile.in
-@@ -1041,6 +1041,13 @@ EXTRA_DIST = \
- 	noparms.ok \
- 	nors.in \
- 	nors.ok \
-+	nsawk1.awk \
-+	nsawk1a.ok \
-+	nsawk1b.ok \
-+	nsawk1c.ok \
-+	nsawk2.awk \
-+	nsawk2a.ok \
-+	nsawk2b.ok \
- 	nsbad.awk \
- 	nsbad.ok \
- 	nsbad_cmd.ok \
-@@ -1612,6 +1619,7 @@ GAWK_EXT_TESTS = \
- 	lint lintexp lintindex lintint lintlength lintold lintset lintwarn \
- 	manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \
- 	nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \
-+	nsawk1a nsawk1b nsawk1c nsawk2a nsawk2b \
- 	nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \
- 	patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge \
- 	procinfs profile0 profile1 profile2 profile3 profile4 profile5 profile6 \
-@@ -2491,6 +2499,31 @@ readfile2::
- 	@$(AWK) -f "$(srcdir)"/$@.awk "$(srcdir)"/$@.awk "$(srcdir)"/readdir.awk > _$@ || echo EXIT CODE: $$? >>_$@
- 	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
- 
-+nsawk1a::
-+	@echo $@
-+	@$(AWK) -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk1b::
-+	@echo $@
-+	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk1c::
-+	@echo $@
-+	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk1.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk2a::
-+	@echo $@
-+	@$(AWK) -v I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
-+nsawk2b::
-+	@echo $@
-+	@$(AWK) -v awk::I=fine -f "$(srcdir)"/nsawk2.awk > _$@ || echo EXIT CODE: $$? >>_$@
-+	@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-+
- include2::
- 	@echo $@
- 	@AWKPATH="$(srcdir)" $(AWK) --include inclib 'BEGIN {print sandwich("a", "b", "c")}' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
--- 
-2.22.0
-
diff --git a/gawk-inplace-namespace-part2.patch b/gawk-inplace-namespace-part2.patch
deleted file mode 100644
index 8e269de..0000000
--- a/gawk-inplace-namespace-part2.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 076eb06c0c714ca6ee95ca512d114bf9f41038e0 Mon Sep 17 00:00:00 2001
-From: "Arnold D. Robbins" <arnold@skeeve.com>
-Date: Wed, 26 Jun 2019 21:40:31 +0300
-Subject: [PATCH 2/3] Add tests for previous fix to namespaces.
-
----
- test/nsawk1.awk | 5 +++++
- test/nsawk1a.ok | 0
- test/nsawk1b.ok | 0
- test/nsawk1c.ok | 0
- test/nsawk2.awk | 5 +++++
- test/nsawk2a.ok | 1 +
- test/nsawk2b.ok | 1 +
- 7 files changed, 12 insertions(+)
- create mode 100644 test/nsawk1.awk
- create mode 100644 test/nsawk1a.ok
- create mode 100644 test/nsawk1b.ok
- create mode 100644 test/nsawk1c.ok
- create mode 100644 test/nsawk2.awk
- create mode 100644 test/nsawk2a.ok
- create mode 100644 test/nsawk2b.ok
-
-diff --git a/test/nsawk1.awk b/test/nsawk1.awk
-new file mode 100644
-index 00000000..00715bc1
---- /dev/null
-+++ b/test/nsawk1.awk
-@@ -0,0 +1,5 @@
-+# Used to cause internal error
-+BEGIN {
-+    x = awk::I
-+    x = awk::I
-+}
-diff --git a/test/nsawk1a.ok b/test/nsawk1a.ok
-new file mode 100644
-index 00000000..e69de29b
-diff --git a/test/nsawk1b.ok b/test/nsawk1b.ok
-new file mode 100644
-index 00000000..e69de29b
-diff --git a/test/nsawk1c.ok b/test/nsawk1c.ok
-new file mode 100644
-index 00000000..e69de29b
-diff --git a/test/nsawk2.awk b/test/nsawk2.awk
-new file mode 100644
-index 00000000..d275c121
---- /dev/null
-+++ b/test/nsawk2.awk
-@@ -0,0 +1,5 @@
-+# Used to cause internal error
-+BEGIN {
-+    x = awk::I
-+    print x
-+}
-diff --git a/test/nsawk2a.ok b/test/nsawk2a.ok
-new file mode 100644
-index 00000000..86815ca7
---- /dev/null
-+++ b/test/nsawk2a.ok
-@@ -0,0 +1 @@
-+fine
-diff --git a/test/nsawk2b.ok b/test/nsawk2b.ok
-new file mode 100644
-index 00000000..86815ca7
---- /dev/null
-+++ b/test/nsawk2b.ok
-@@ -0,0 +1 @@
-+fine
--- 
-2.22.0
-
diff --git a/gawk-inplace-namespace-part3.patch b/gawk-inplace-namespace-part3.patch
deleted file mode 100644
index 2045ff6..0000000
--- a/gawk-inplace-namespace-part3.patch
+++ /dev/null
@@ -1,384 +0,0 @@
-From 8ff0d3a5a55237f78a8c3076a07c38f7e1c1c5e9 Mon Sep 17 00:00:00 2001
-From: "Arnold D. Robbins" <arnold@skeeve.com>
-Date: Wed, 26 Jun 2019 21:44:37 +0300
-Subject: [PATCH 3/3] Add backwards compatibility to inplace extension, update
- doc and tests.
-
----
- awklib/eg/lib/inplace.awk |  18 ++--
- doc/ChangeLog             |   5 +
- doc/gawk.info             | 189 +++++++++++++++++++-------------------
- doc/gawk.texi             |  18 ++--
- doc/gawktexi.in           |  18 ++--
- extension/ChangeLog       |   4 +
- extension/inplace.3am     |  24 +++--
- test/ChangeLog            |   4 +
- test/inplace1.ok          |   2 +-
- test/inplace2.ok          |   2 +-
- test/inplace3.ok          |   4 +-
- 11 files changed, 167 insertions(+), 121 deletions(-)
-
-diff --git a/awklib/eg/lib/inplace.awk b/awklib/eg/lib/inplace.awk
-index 68dad92e..0d40d16e 100644
---- a/awklib/eg/lib/inplace.awk
-+++ b/awklib/eg/lib/inplace.awk
-@@ -1,6 +1,6 @@
- # inplace --- load and invoke the inplace extension.
- # 
--# Copyright (C) 2013, 2017 the Free Software Foundation, Inc.
-+# Copyright (C) 2013, 2017, 2019 the Free Software Foundation, Inc.
- # 
- # This file is part of GAWK, the GNU implementation of the
- # AWK Programming Language.
-@@ -25,16 +25,21 @@
- # Revised for namespaces
- # Arnold Robbins, arnold@skeeve.com
- # July 2017
-+# June 2019, add backwards compatibility
- 
- @load "inplace"
- 
- # Please set inplace::suffix to make a backup copy.  For example, you may
- # want to set inplace::suffix to .bak on the command line or in a BEGIN rule.
- 
-+# Before there were namespaces in gawk, this extension used
-+# INPLACE_SUFFIX as the variable for making backup copies. We allow this
-+# too, so that any code that used the previous version continues to work.
-+
- # By default, each filename on the command line will be edited inplace.
--# But you can selectively disable this by adding an inplace=0 argument
-+# But you can selectively disable this by adding an inplace::enable=0 argument
- # prior to files that you do not want to process this way.  You can then
--# reenable it later on the commandline by putting inplace=1 before files
-+# reenable it later on the commandline by putting inplace::enable=1 before files
- # that you wish to be subject to inplace editing.
- 
- # N.B. We call inplace::end() in the BEGINFILE and END rules so that any
-@@ -47,15 +52,16 @@ BEGIN {
- }
- 
- BEGINFILE {
-+    sfx = (suffix ? suffix : awk::INPLACE_SUFFIX)
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, sfx)
-     if (enable)
--        begin(filename = FILENAME, suffix)
-+        begin(filename = FILENAME, sfx)
-     else
-         filename = ""
- }
- 
- END {
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, (suffix ? suffix : awk::INPLACE_SUFFIX))
- }
-diff --git a/doc/ChangeLog b/doc/ChangeLog
-index 5ea91aaf..6a1a5ae4 100644
---- a/doc/ChangeLog
-+++ b/doc/ChangeLog
-@@ -1,3 +1,8 @@
-+2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>
-+
-+	* gawktexi.in (Extension Sample Inplace): Fix backwards
-+	compatibility. Thanks to Andrew Schorr for most of the change.
-+
- 2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* 5.0.1: Release tar ball made.
-diff --git a/doc/gawk.info b/doc/gawk.info
-index e5a52702..4e46df9e 100644
---- a/doc/gawk.info
-+++ b/doc/gawk.info
-@@ -27693,10 +27693,14 @@ and functions in the 'inplace' namespace (*note Namespaces::):
-      # Please set inplace::suffix to make a backup copy.  For example, you may
-      # want to set inplace::suffix to .bak on the command line or in a BEGIN rule.
- 
-+     # Before there were namespaces in gawk, this extension used
-+     # INPLACE_SUFFIX as the variable for making backup copies. We allow this
-+     # too, so that any code that used the previous version continues to work.
-+
-      # By default, each filename on the command line will be edited inplace.
--     # But you can selectively disable this by adding an inplace=0 argument
-+     # But you can selectively disable this by adding an inplace::enable=0 argument
-      # prior to files that you do not want to process this way.  You can then
--     # reenable it later on the commandline by putting inplace=1 before files
-+     # reenable it later on the commandline by putting inplace::enable=1 before files
-      # that you wish to be subject to inplace editing.
- 
-      # N.B. We call inplace::end() in the BEGINFILE and END rules so that any
-@@ -27709,17 +27713,18 @@ and functions in the 'inplace' namespace (*note Namespaces::):
-      }
- 
-      BEGINFILE {
-+         sfx = (suffix ? suffix : awk::INPLACE_SUFFIX)
-          if (filename != "")
--             end(filename, suffix)
-+             end(filename, sfx)
-          if (enable)
--             begin(filename = FILENAME, suffix)
-+             begin(filename = FILENAME, sfx)
-          else
-              filename = ""
-      }
- 
-      END {
-          if (filename != "")
--             end(filename, suffix)
-+             end(filename, (suffix ? suffix : awk::INPLACE_SUFFIX))
-      }
- 
-    For each regular file that is processed, the extension redirects
-diff --git a/doc/gawk.texi b/doc/gawk.texi
-index 25fb3486..94ff298f 100644
---- a/doc/gawk.texi
-+++ b/doc/gawk.texi
-@@ -37601,7 +37601,7 @@ all the variables and functions in the @code{inplace} namespace
- @ignore
- @c file eg/lib/inplace.awk
- # 
--# Copyright (C) 2013, 2017 the Free Software Foundation, Inc.
-+# Copyright (C) 2013, 2017, 2019 the Free Software Foundation, Inc.
- # 
- # This file is part of GAWK, the GNU implementation of the
- # AWK Programming Language.
-@@ -37626,6 +37626,7 @@ all the variables and functions in the @code{inplace} namespace
- # Revised for namespaces
- # Arnold Robbins, arnold@@skeeve.com
- # July 2017
-+# June 2019, add backwards compatibility
- @c endfile
- @end ignore
- @c file eg/lib/inplace.awk
-@@ -37635,10 +37636,14 @@ all the variables and functions in the @code{inplace} namespace
- # Please set inplace::suffix to make a backup copy.  For example, you may
- # want to set inplace::suffix to .bak on the command line or in a BEGIN rule.
- 
-+# Before there were namespaces in gawk, this extension used
-+# INPLACE_SUFFIX as the variable for making backup copies. We allow this
-+# too, so that any code that used the previous version continues to work.
-+
- # By default, each filename on the command line will be edited inplace.
--# But you can selectively disable this by adding an inplace=0 argument
-+# But you can selectively disable this by adding an inplace::enable=0 argument
- # prior to files that you do not want to process this way.  You can then
--# reenable it later on the commandline by putting inplace=1 before files
-+# reenable it later on the commandline by putting inplace::enable=1 before files
- # that you wish to be subject to inplace editing.
- 
- # N.B. We call inplace::end() in the BEGINFILE and END rules so that any
-@@ -37655,10 +37660,11 @@ BEGIN @{
- 
- @group
- BEGINFILE @{
-+    sfx = (suffix ? suffix : awk::INPLACE_SUFFIX)
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, sfx)
-     if (enable)
--        begin(filename = FILENAME, suffix)
-+        begin(filename = FILENAME, sfx)
-     else
-         filename = ""
- @}
-@@ -37667,7 +37673,7 @@ BEGINFILE @{
- @group
- END @{
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, (suffix ? suffix : awk::INPLACE_SUFFIX))
- @}
- @end group
- @c endfile
-diff --git a/doc/gawktexi.in b/doc/gawktexi.in
-index c60b0238..55e485eb 100644
---- a/doc/gawktexi.in
-+++ b/doc/gawktexi.in
-@@ -36574,7 +36574,7 @@ all the variables and functions in the @code{inplace} namespace
- @ignore
- @c file eg/lib/inplace.awk
- # 
--# Copyright (C) 2013, 2017 the Free Software Foundation, Inc.
-+# Copyright (C) 2013, 2017, 2019 the Free Software Foundation, Inc.
- # 
- # This file is part of GAWK, the GNU implementation of the
- # AWK Programming Language.
-@@ -36599,6 +36599,7 @@ all the variables and functions in the @code{inplace} namespace
- # Revised for namespaces
- # Arnold Robbins, arnold@@skeeve.com
- # July 2017
-+# June 2019, add backwards compatibility
- @c endfile
- @end ignore
- @c file eg/lib/inplace.awk
-@@ -36608,10 +36609,14 @@ all the variables and functions in the @code{inplace} namespace
- # Please set inplace::suffix to make a backup copy.  For example, you may
- # want to set inplace::suffix to .bak on the command line or in a BEGIN rule.
- 
-+# Before there were namespaces in gawk, this extension used
-+# INPLACE_SUFFIX as the variable for making backup copies. We allow this
-+# too, so that any code that used the previous version continues to work.
-+
- # By default, each filename on the command line will be edited inplace.
--# But you can selectively disable this by adding an inplace=0 argument
-+# But you can selectively disable this by adding an inplace::enable=0 argument
- # prior to files that you do not want to process this way.  You can then
--# reenable it later on the commandline by putting inplace=1 before files
-+# reenable it later on the commandline by putting inplace::enable=1 before files
- # that you wish to be subject to inplace editing.
- 
- # N.B. We call inplace::end() in the BEGINFILE and END rules so that any
-@@ -36628,10 +36633,11 @@ BEGIN @{
- 
- @group
- BEGINFILE @{
-+    sfx = (suffix ? suffix : awk::INPLACE_SUFFIX)
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, sfx)
-     if (enable)
--        begin(filename = FILENAME, suffix)
-+        begin(filename = FILENAME, sfx)
-     else
-         filename = ""
- @}
-@@ -36640,7 +36646,7 @@ BEGINFILE @{
- @group
- END @{
-     if (filename != "")
--        end(filename, suffix)
-+        end(filename, (suffix ? suffix : awk::INPLACE_SUFFIX))
- @}
- @end group
- @c endfile
-diff --git a/extension/ChangeLog b/extension/ChangeLog
-index 3d83f77e..22d73d09 100644
---- a/extension/ChangeLog
-+++ b/extension/ChangeLog
-@@ -1,3 +1,7 @@
-+2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>
-+
-+	* inplace.3am: Update to match current code's behavior.
-+
- 2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* 5.0.1: Release tar ball made.
-diff --git a/extension/inplace.3am b/extension/inplace.3am
-index 48fac54a..66047442 100644
---- a/extension/inplace.3am
-+++ b/extension/inplace.3am
-@@ -1,4 +1,4 @@
--.TH INPLACE 3am "Feb 02 2018" "Free Software Foundation" "GNU Awk Extension Modules"
-+.TH INPLACE 3am "Jun 26 2018" "Free Software Foundation" "GNU Awk Extension Modules"
- .SH NAME
- inplace \- emulate sed/perl/ruby in-place editing
- .SH SYNOPSIS
-@@ -24,7 +24,7 @@ By default, each named file on the command line is
- replaced with a new file of the same name whose contents
- are the results of running the AWK program.
- If the user supplies an AWK variable named
--.B INPLACE_SUFFIX
-+.B inplace::suffix
- in a
- .B BEGIN
- rule or on the command line, then the
-@@ -33,17 +33,27 @@ extension concatenates that suffix onto the original
- filename and uses the result as a filename for renaming
- the original.
- .PP
-+For backwards compatibility, the variable will also check
-+.B INPLACE_SUFFIX
-+(in the
-+.B awk
-+namespace) for the suffix to use if
-+.B inplace::suffix
-+is not set.
-+.PP
- One can disable inplace editing selectively by placing
--.B inplace=0
-+.B inplace::enable=0
- on the command line prior to files that should be processed normally.
- One can reenable inplace editing by placing
--.B inplace=1
-+.B inplace::enable=1
- prior to files that should be subject to inplace editing.
- .\" .SH NOTES
- .SH BUGS
--While the extension does attempt to preserve ownership and permissions, it makes no attempt to copy the ACLs from the original file.
-+While the extension does attempt to preserve ownership and permissions,
-+it makes no attempt to copy the ACLs from the original file.
- .PP
--If the program dies prematurely, as might happen if an unhandled signal is received, a temporary file may be left behind.
-+If the program dies prematurely, as might happen if an unhandled signal
-+is received, a temporary file may be left behind.
- .SH EXAMPLE
- .ft CW
- .nf
-@@ -66,7 +76,7 @@ gawk -i inplace -f \f(CIscriptfile\fP files ...
- Andrew Schorr,
- .BR schorr@telemetry-investments.com .
- .SH COPYING PERMISSIONS
--Copyright \(co 2012, 2013, 2015, 2018,
-+Copyright \(co 2012, 2013, 2015, 2018, 2019,
- Free Software Foundation, Inc.
- .PP
- Permission is granted to make and distribute verbatim copies of
-diff --git a/test/ChangeLog b/test/ChangeLog
-index 99391b0d..a538c593 100644
---- a/test/ChangeLog
-+++ b/test/ChangeLog
-@@ -5,6 +5,10 @@
- 	nsawk2a.ok, nsawk2b.ok: New files.
- 	Tests courtesy of Michal Jaegermann.
- 
-+	Unrelated:
-+
-+	* inplace1.ok, inplace2.ok, inplace3.ok: Updated after code changes.
-+
- 2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>
- 
- 	* 5.0.1: Release tar ball made.
-diff --git a/test/inplace1.ok b/test/inplace1.ok
-index 753079b3..f2e36d46 100644
---- a/test/inplace1.ok
-+++ b/test/inplace1.ok
-@@ -1,5 +1,5 @@
- before
--gawk: inplace:53: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
-+gawk: inplace:59: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
- stdin start
- is bar replaced?
- stdin end
-diff --git a/test/inplace2.ok b/test/inplace2.ok
-index 753079b3..f2e36d46 100644
---- a/test/inplace2.ok
-+++ b/test/inplace2.ok
-@@ -1,5 +1,5 @@
- before
--gawk: inplace:53: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
-+gawk: inplace:59: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
- stdin start
- is bar replaced?
- stdin end
-diff --git a/test/inplace3.ok b/test/inplace3.ok
-index 7802a0c8..b6f26505 100644
---- a/test/inplace3.ok
-+++ b/test/inplace3.ok
-@@ -1,11 +1,11 @@
- before
--gawk: inplace:53: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
-+gawk: inplace:59: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
- stdin start
- is bar replaced?
- stdin end
- after
- Before
--gawk: inplace:53: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
-+gawk: inplace:59: warning: inplace::begin: disabling in-place editing for invalid FILENAME `-'
- stdin start
- is foo replaced?
- stdin end
--- 
-2.22.0
-
diff --git a/gawk.spec b/gawk.spec
index 252669f..61adcc9 100644
--- a/gawk.spec
+++ b/gawk.spec
@@ -4,18 +4,13 @@
 
 Summary:	The GNU version of the awk text processing utility
 Name:		gawk
-Version:	5.0.1
+Version:	5.1.0
 Release:	1
 License:	GPLv3+
 Group:		Text tools
 Url:		http://www.gnu.org/software/gawk/gawk.html
 Source0:	http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
-# https://bugzilla.redhat.com/show_bug.cgi?id=1723359
-Patch005: gawk-inplace-namespace-part1.patch
-Patch006: gawk-inplace-namespace-part2.patch
-#Parts of the patch dealing with .info files, were removed, some parts of documentation might be broken
-Patch007: gawk-inplace-namespace-part3.patch
-Patch008: gawk-api-version.patch
+Patch0:		gawk-5.1.0-no-Lusrlib.patch
 BuildRequires:	byacc
 BuildRequires:	gettext-devel
 BuildRequires:	libsigsegv-devel >= 2.8
@@ -64,8 +59,6 @@ awk.
 sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in
 
 %build
-export CC=gcc
-export CXX=g++
 %define _disable_rebuild_configure 1
 libtoolize --force
 aclocal -I m4
@@ -80,7 +73,7 @@ autoconf
 	--with-libsigsegv-prefix=%{_prefix}
 %endif
 
-%make_build
+%make_build AR=llvm-ar RANLIB=llvm-ranlib
 %make_build -C doc
 
 # (tpg) seems like tests fails due to overlayfs which is used inside docker-builder
Not Available

benbullard79 [@T] cox.net*Should* be OK1682d 16hrs
benbullard79 [@T] cox.netNo Comment.1679d 16hrs