rebased to 3.1.8, fixed some syntax issues and handling of extreme int

values
This commit is contained in:
Jan Zeleny 2010-06-25 08:31:50 +00:00
parent 786acdf237
commit 054e4864bf
5 changed files with 46 additions and 4 deletions

View File

@ -1 +1 @@
gawk-3.1.7.tar.xz
gawk-3.1.8.tar.bz2

11
gawk-3.1.7-max-int.patch Normal file
View File

@ -0,0 +1,11 @@
--- gawk-3.1.7/node.c.orig 2010-05-28 09:38:42.000000000 +0200
+++ gawk-3.1.7/node.c 2010-05-28 09:38:51.000000000 +0200
@@ -212,7 +212,7 @@ format_val(const char *format, int index
/* not an integral value, or out of range */
if ((val = double_to_int(s->numbr)) != s->numbr
- || val < LONG_MIN || val > LONG_MAX) {
+ || val <= LONG_MIN || val >= LONG_MAX) {
/*
* Once upon a time, if GFMT_WORKAROUND wasn't defined,
* we just blindly did this:

22
gawk-3.1.7-syntax.patch Normal file
View File

@ -0,0 +1,22 @@
--- 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,7 +1,7 @@
Summary: The GNU version of the awk text processing utility
Name: gawk
Version: 3.1.7
Release: 3%{?dist}
Version: 3.1.8
Release: 1%{?dist}
License: GPLv3+
Group: Applications/Text
URL: http://www.gnu.org/software/gawk/gawk.html
@ -9,6 +9,8 @@ Source0: http://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.xz
# Patch from Arnold, the upstream maintainer:
Patch0: gawk-posix-mode-argv0.patch
Patch1: gawk-3.1.7-prec-utf8.patch
Patch2: gawk-3.1.7-max-int.patch
Patch3: gawk-3.1.7-syntax.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires(post): /sbin/install-info
@ -26,6 +28,8 @@ considered to be a standard Linux tool for processing text.
%setup -q
%patch0
%patch1 -p1 -b .prec-utf8
%patch2 -p1 -b .max-int
%patch3 -p1 -b .syntaxt
%build
%configure --bindir=/bin --disable-libsigsegv
@ -74,6 +78,11 @@ fi
%{_datadir}/awk
%changelog
* Fri Jun 25 2010 Jan Zeleny <jzeleny@redhat.com> - 3.1.8-1
- rebased to 3.1.8
- fixed handling of extreme int values
- fixed two syntax issues (#528623, #528625)
* Thu Apr 01 2010 Jan Zeleny <jzeleny@redhat.com> - 3.1.7-3
- fix issue with utf8 precision recognition (#513234)

View File

@ -1 +1 @@
7f16a68357c10c385ac76066b264f39d gawk-3.1.7.tar.xz
52b41c6c4418b3226dfb8f82076193bb gawk-3.1.8.tar.bz2