Compare commits

...

2 Commits
rawhide ... f16

Author SHA1 Message Date
Martin Bříza f21aa0b86f Update to upstream 4.0.1 (#808005)
Corrected Source0 link to .tar.gz extension as not all releases are available as .tar.bz2

Resolves #724817 - gawk-4.0.0 regression in '\' escape handling in gsub()

Resolves #820550 - gawk: getline in BEGIN skips 2 lines
2012-06-07 13:51:49 +02:00
Vojtech Vitek (V-Teq) aff1e74a13 Remove obsolete patches
Remove gawk-3.1.8-syntax.patch, gawk-3.1.8-double-free-wstptr.patch
2011-10-17 02:08:55 +02:00
4 changed files with 11 additions and 50 deletions

View File

@ -1,23 +0,0 @@
Index: node.c
===================================================================
RCS file: /sources/gawk/gawk-devel/node.c,v
retrieving revision 1.3
diff -u -r1.3 node.c
--- node.c 6 May 2010 19:00:58 -0000 1.3
+++ node.c 27 Oct 2010 17:56:49 -0000
@@ -758,6 +758,15 @@
assert((n->flags & (STRING|STRCUR)) != 0);
+ /*
+ * Don't convert global null string or global null field
+ * variables to a wide string. They are both zero-length anyway.
+ * This also avoids future double-free errors while releasing
+ * shallow copies, eg. *tmp = *Null_field; free_wstr(tmp);
+ */
+ if (n == Nnull_string || n == Null_field)
+ return n;
+
if ((n->flags & WSTRCUR) != 0) {
if (ptr == NULL)
return n;

View File

@ -1,22 +0,0 @@
--- gawk-3.1.7/awkgram.y.orig 2010-06-25 10:08:11.000000000 +0200
+++ gawk-3.1.7/awkgram.y 2010-06-25 10:10:34.000000000 +0200
@@ -164,7 +164,7 @@
%nonassoc LEX_IN
%left FUNC_CALL LEX_BUILTIN LEX_LENGTH
%nonassoc ','
-%nonassoc MATCHOP
+%left MATCHOP
%nonassoc RELOP '<' '>' IO_IN IO_OUT
%left CONCAT_OP
%left YSTRING YNUMBER
@@ -702,8 +702,8 @@
*/
print_expression_list
: opt_expression_list
- | '(' exp comma expression_list r_paren
- { $$ = node($2, Node_expression_list, $4); }
+ | '(' expression_list r_paren
+ { $$ = $2; }
;
output_redir

View File

@ -1,6 +1,6 @@
Summary: The GNU version of the awk text processing utility
Name: gawk
Version: 4.0.0
Version: 4.0.1
Release: 1%{?dist}
# Most of source files are licensed under GPLv3+,
# several files are GPL or LGPLv2.1+ licensed,
@ -8,7 +8,7 @@ Release: 1%{?dist}
License: GPLv3+ and GPL and LGPLv3+ and LGPL and BSD
Group: Applications/Text
URL: http://www.gnu.org/software/gawk/gawk.html
Source0: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
Source0: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.gz
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRequires: byacc
@ -71,9 +71,15 @@ fi
%{_datadir}/awk
%changelog
* Thu Jun 07 2012 Martin Bříza <mbriza@redhat.com> - 4.0.1-1
- Update to upstream 4.0.1 (#808005)
- Corrected Source0 link to .tar.gz extension as not all releases are available as .tar.bz2
- Resolves #724817 - gawk-4.0.0 regression in '\' escape handling in gsub()
- Resolves #820550 - gawk: getline in BEGIN skips 2 lines
* Thu Jul 14 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 4.0.0-1
- Update to upstream 4.0.0
Resolves: #717885
- Remove gawk-3.1.8-syntax.patch, gawk-3.1.8-double-free-wstptr.patch
- Update to upstream 4.0.0 (#717885)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
7cdc48e99b885a4bbe0e98dcf1706b22 gawk-4.0.0.tar.bz2
bab2bda483e9f32be65b43b8dab39fa5 gawk-4.0.1.tar.gz