- update to 3.1.4
This commit is contained in:
parent
8bf81ebb65
commit
164fc58647
@ -1,2 +1,2 @@
|
||||
gawk-3.1.3-ps.tar.gz
|
||||
gawk-3.1.3.tar.bz2
|
||||
gawk-3.1.4.tar.gz
|
||||
gawk-3.1.4-ps.tar.gz
|
||||
|
@ -1,45 +0,0 @@
|
||||
--- gawk-3.1.3/main.c.getpgrp_void 2004-01-26 12:08:26.000000000 +0100
|
||||
+++ gawk-3.1.3/main.c 2004-01-26 12:15:22.000000000 +0100
|
||||
@@ -874,14 +874,11 @@
|
||||
|
||||
PROCINFO_node = install("PROCINFO",
|
||||
node((NODE *) NULL, Node_var_array, (NODE *) NULL));
|
||||
-
|
||||
#ifdef GETPGRP_VOID
|
||||
-#define getpgrp_arg() /* nothing */
|
||||
+ value = getpgrp();
|
||||
#else
|
||||
-#define getpgrp_arg() getpid()
|
||||
+ value = getpgrp(getpid());
|
||||
#endif
|
||||
-
|
||||
- value = getpgrp(getpgrp_arg());
|
||||
aptr = assoc_lookup(PROCINFO_node, tmp_string("pgrpid", 6), FALSE);
|
||||
*aptr = make_number(value);
|
||||
|
||||
--- gawk-3.1.3/io.c.getpgrp_void 2004-01-26 12:08:36.000000000 +0100
|
||||
+++ gawk-3.1.3/io.c 2004-01-26 12:16:04.000000000 +0100
|
||||
@@ -1422,11 +1422,6 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-#ifdef GETPGRP_VOID
|
||||
-#define getpgrp_arg() /* nothing */
|
||||
-#else
|
||||
-#define getpgrp_arg() getpid()
|
||||
-#endif
|
||||
|
||||
/* pidopen --- "open" /dev/pid, /dev/ppid, and /dev/pgrpid */
|
||||
|
||||
@@ -1440,7 +1435,11 @@
|
||||
warning(_("use `PROCINFO[\"%s\"]' instead of `%s'"), cp, name);
|
||||
|
||||
if (name[6] == 'g')
|
||||
+#ifdef GETPGRP_VOID
|
||||
+ sprintf(tbuf, "%d\n", (int) getpgrp());
|
||||
+#else
|
||||
sprintf(tbuf, "%d\n", (int) getpgrp(getpgrp_arg()));
|
||||
+#endif
|
||||
else if (name[6] == 'i')
|
||||
sprintf(tbuf, "%d\n", (int) getpid());
|
||||
else
|
27
gawk.spec
27
gawk.spec
@ -1,19 +1,12 @@
|
||||
Summary: The GNU version of the awk text processing utility.
|
||||
Name: gawk
|
||||
Version: 3.1.3
|
||||
Release: 10
|
||||
Version: 3.1.4
|
||||
Release: 1
|
||||
License: GPL
|
||||
Group: Applications/Text
|
||||
Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
|
||||
Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.gz
|
||||
Source1: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}-ps.tar.gz
|
||||
Patch3: gawk-3.1.3-fix1.patch
|
||||
Patch4: gawk-3.1.3-fix2.patch
|
||||
Patch5: gawk-3.1.3-fix3.patch
|
||||
Patch6: gawk-3.1.3-fix4.patch
|
||||
Patch7: gawk-3.1.3-fix5.patch
|
||||
Patch8: gawk-3.1.3-getpgrp_void.patch
|
||||
Patch9: gawk-3.1.3-numfiles.patch
|
||||
Patch10: gawk-3.1.3-trans.patch
|
||||
Patch1: gawk-3.1.4-getpgrp_void.patch
|
||||
|
||||
Prereq: /sbin/install-info
|
||||
Requires: /bin/mktemp
|
||||
@ -29,14 +22,7 @@ considered to be a standard Linux tool for processing text.
|
||||
|
||||
%prep
|
||||
%setup -q -b 1
|
||||
%patch3 -p1 -b .fix1
|
||||
%patch4 -p0 -b .fix2
|
||||
%patch5 -p1 -b .fix3
|
||||
%patch6 -p1 -b .fix4
|
||||
%patch7 -p1 -b .fix5
|
||||
%patch8 -p1 -b .getpgrp_void
|
||||
%patch9 -p1 -b .fix64
|
||||
%patch10 -p1 -b .trans
|
||||
%patch1 -p1 -b .getpgrp_void
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -85,6 +71,9 @@ fi
|
||||
%{_datadir}
|
||||
|
||||
%changelog
|
||||
* Mon Nov 8 2004 Karel Zak <kzak@redhat.com> 3.1.4-1
|
||||
- update to new upstream version 3.1.4
|
||||
|
||||
* Thu Nov 4 2004 Karel Zak <kzak@redhat.com> 3.1.3-10
|
||||
- fixed crash on non-UTF8 locales (#137832)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user