--- gawk-3.1.5.dfsg.orig/debian/patches/00list +++ gawk-3.1.5.dfsg/debian/patches/00list @@ -0,0 +1,4 @@ +01_po-Makefile.in.in +18_de.po-typos +19_io.c-invalid-free +20_eval.c-utf-8-strcat --- gawk-3.1.5.dfsg.orig/debian/patches/18_de.po-typos.dpatch +++ gawk-3.1.5.dfsg/debian/patches/18_de.po-typos.dpatch @@ -0,0 +1,81 @@ +#! /bin/sh -e +## 18_de.po-typos.dpatch +## +## DP: Description: Fix typos in German PO file. (#314081) +## DP: Author: Jens Seidel +## DP: Upstream status: Needs to be sent upstream +## DP: Date: 2005-06-14 + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad gawk-3.1.5/po/de.po /tmp/dpep.UYimXQ/gawk-3.1.5/po/de.po +--- gawk-3.1.5/po/de.po 2005-07-06 15:20:04.000000000 +0100 ++++ /tmp/dpep.UYimXQ/gawk-3.1.5/po/de.po 2005-08-20 06:18:37.482408778 +0100 +@@ -350,7 +350,7 @@ + + #: awkgram.y:2611 profile.c:93 + msgid "sending profile to standard error" +-msgstr "Schicke Profile auf Stadard-Fehlerausgabe." ++msgstr "Schicke Profile auf Standard-Fehlerausgabe." + + #: awkgram.y:2643 + #, c-format +@@ -1473,12 +1473,12 @@ + #: main.c:665 + #, c-format + msgid "Usage: %s [POSIX or GNU style options] -f progfile [--] file ...\n" +-msgstr "Anwendung: %s [POSIX- oder GNU-Optionen] -f PROGRAM [--] Datei ...\n" ++msgstr "Anwendung: %s [POSIX- oder GNU-Optionen] -f PROGRAMM [--] Datei ...\n" + + #: main.c:667 + #, c-format + msgid "Usage: %s [POSIX or GNU style options] [--] %cprogram%c file ...\n" +-msgstr "Anwendung: %s [POSIX- oder GNU-Optionen] -- %cPROGRAM%c Datei ...\n" ++msgstr "Anwendung: %s [POSIX- oder GNU-Optionen] -- %cPROGRAMM%c Datei ...\n" + + #: main.c:672 + msgid "POSIX options:\t\tGNU long options:\n" +@@ -1486,7 +1486,7 @@ + + #: main.c:673 + msgid "\t-f progfile\t\t--file=progfile\n" +-msgstr "\t-f PROGRAM\t\t--file=PROGRAM\n" ++msgstr "\t-f PROGRAMM\t\t--file=PROGRAMM\n" + + #: main.c:674 + msgid "\t-F fs\t\t\t--field-separator=fs\n" +@@ -1719,7 +1719,7 @@ + + #: node.c:604 + msgid "POSIX does not allow `\\x' escapes" +-msgstr "POSIX erlabut keine '\\x'-Escapes." ++msgstr "POSIX erlaubt keine '\\x'-Escapes." + + #: node.c:610 + msgid "no hex digits in `\\x' escape sequence" +@@ -1818,7 +1818,7 @@ + + #: regcomp.c:172 + msgid "Invalid character class name" +-msgstr "Ungültier Name für Zeichenklasse." ++msgstr "Ungültiger Name für Zeichenklasse." + + #: regcomp.c:175 + msgid "Trailing backslash" --- gawk-3.1.5.dfsg.orig/debian/patches/20_eval.c-utf-8-strcat.dpatch +++ gawk-3.1.5.dfsg/debian/patches/20_eval.c-utf-8-strcat.dpatch @@ -0,0 +1,45 @@ +#! /bin/sh -e +## 20_eval.c-utf-8-strcat.dpatch +## +## DP: Description: Fix handling of string concatenation with multi-byte strings. (#347490) +## DP: Author: Karel Zak and Aharon Robbins +## DP: Upstream status: Unclear - in discussion +## DP: URL: http://lists.gnu.org/archive/html/bug-gnu-utils/2006-02/msg00023.html +## DP: Date: 2006-02-10 + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./eval.c /tmp/dpep-work.D8ZI7f/gawk-3.1.5/eval.c +--- ./eval.c 2006-04-18 03:07:14.000000000 +0100 ++++ /tmp/dpep-work.D8ZI7f/gawk-3.1.5/eval.c 2006-04-18 03:07:52.000000000 +0100 +@@ -1176,6 +1176,13 @@ + memcpy(l->stptr + l->stlen, r->stptr, r->stlen); + l->stlen += r->stlen; + l->stptr[l->stlen] = '\0'; ++#if defined MBS_SUPPORT ++ if (l->wstptr != NULL) ++ free(l->wstptr); ++ l->wstptr = NULL; ++ l->wstlen = 0; ++ l->flags &= ~WSTRCUR; ++#endif /* MBS_SUPPORT */ + } else { + char *nval; + size_t nlen = l->stlen + r->stlen + 2; --- gawk-3.1.5.dfsg.orig/debian/patches/01_po-Makefile.in.in.dpatch +++ gawk-3.1.5.dfsg/debian/patches/01_po-Makefile.in.in.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh -e +## 01-po-Makefile.in.in.dpatch by James Troup +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix where po files are installed. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p1 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 +--- gawk-3.1.1.orig/po/Makefile.in.in ++++ gawk-3.1.1/po/Makefile.in.in +@@ -21,7 +21,7 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + datadir = @datadir@ +-localedir = $(datadir)/locale ++localedir = $(prefix)/locale + gettextsrcdir = $(datadir)/gettext/po + + INSTALL = @INSTALL@ --- gawk-3.1.5.dfsg.orig/debian/patches/19_io.c-invalid-free.dpatch +++ gawk-3.1.5.dfsg/debian/patches/19_io.c-invalid-free.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh -e +## 19_io.c-invalid-free.dpatch +## +## DP: Description: Fix invalid free in io.c. (#344353) +## DP: Author: James Vega +## DP: Upstream status: Needs to be sent upstream +## DP: Date: 2006-02-08 + +if [ $# -lt 1 ]; then + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}" + +case "$1" in + -patch) patch -p1 ${patch_opts} < $0;; + -unpatch) patch -R -p1 ${patch_opts} < $0;; + *) + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2 + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad gawk-3.1.5~/io.c gawk-3.1.5/io.c +--- gawk-3.1.5~/io.c 2005-07-26 14:07:43.000000000 -0400 ++++ gawk-3.1.5/io.c 2006-02-08 13:30:51.000000000 -0500 +@@ -2495,7 +2495,6 @@ + } + + if (iop->fd == INVALID_HANDLE) { +- free(iop); + return NULL; + } + if (isatty(iop->fd)) --- gawk-3.1.5.dfsg.orig/debian/changelog +++ gawk-3.1.5.dfsg/debian/changelog @@ -0,0 +1,510 @@ +gawk (1:3.1.5.dfsg-4build1) feisty; urgency=low + + * Rebuild for ldbl128 change (powerpc, sparc). + + -- Matthias Klose Sun, 4 Mar 2007 01:08:50 +0000 + +gawk (1:3.1.5.dfsg-4) unstable; urgency=low + + * doc/gawk.info, doc/gawk.texi, doc/gawkinet.info, doc/gawkinet.texi: + GFDL with invariant sections - removed and repackaged as 'gawk-doc' + for non-free. Closes: #357257 + * debian/rules (build): touch removed .info and .texi files in doc/ as a + minimally intrusive (if nasty) way of pulling a fast one on the build + system. + * debian/rules (binary-arch): don't compress info files, instead remove + the empty ones that now get installed. + * debian/postinst: don't invoke install-info. + * debian/prerm: likewise. + + * 20_eval.c-utf-8-strcat.dpatch: updated based on discussion with + upstream to only manipulate 'l' not 'r'. + + * debian/postrm: remove pointless trailing 'exit 0'. + * debian/prerm: #! as sh -e, rather than set-ing -e to be consistent + with other maintainer scripts. + + * debian/rules (binary-arch): remove 2nd redundant chown to root.root of + debian/tmp. Move -maxdepth argument to find before -type to shut + recent versions of find up. Drop use of $(PWD) since it's unnecessary + and we weren't using it consistently anyway. + + -- James Troup Tue, 18 Apr 2006 03:44:06 +0100 + +gawk (1:3.1.5-3) unstable; urgency=low + + * 20_eval.c-utf-8-strcat.dpatch: New patch from Karel Zak and Aharon + Robbins to fix string concatenation when using a UTF-8 locale. Thanks + to Matej Vela for the test case. Closes: #347490 + + -- James Troup Mon, 27 Mar 2006 02:46:53 +0100 + +gawk (1:3.1.5-2) unstable; urgency=low + + * 19_io.c-invalid-free.dpatch: New patch from James Vega + to prevent a segfault when an invalid filename + is specified. Closes: #344353 + + -- James Troup Sun, 19 Feb 2006 06:45:47 +0000 + +gawk (1:3.1.5-1) unstable; urgency=low + + * New upstream release. Closes: #324060 + + * 04_it.po-charset.dpatch, 10_dfa.c-disable-cache.dpatch, + 11_dfa.c-ignorecase.dpatch, 12_dfa.c-ignorecase-range.dpatch, + 13_dfa.c-charclass-bracket.dpatch, 15_builtin.c-fix-wide-char.dpatch, + 16_awkgram.y-stop-at-eof.dpatch, 17_fix-non-numeric-constants.dpatch: + merged upstream - removed. + + * 14_io.c-fix-redirect-hang.dpatch: superseded by different upstream fix + - removed. + + * debian/rules (binary-arch): remove '/awk' from 'datadir' and + 'libexecdir' we pass to 'make install' as gawk adds that itself now. + + * debian/postinst: Replace non-POSIX redirection &> with 2>&1. Thanks + to Brendan O'Dea. Closes: #308135 + + * 18_de.po-typos.dpatch: new patch from Jens Seidel to fix typos in the + German PO file. Closes: #314081 + + * debian/rules: apply patch from NIIBE Yutaka for cross-building. + Closes: #283646 + + * debian/control (Standards-Version): update to 3.6.2.1. + + -- James Troup Wed, 7 Dec 2005 03:47:55 +0000 + +gawk (1:3.1.4-2) unstable; urgency=low + + * 14_io.c-fix-redirect-hang.dpatch: new patch which reverts io.c changes + that wait() when a redirect hits EOF without checking whether or not + this is the kind of redirect which would have an orphan to wait() on. + Closes: #263964 + + * debian/control (Build-Depends): Add a versioned build-depends on a + fixed binutils for m68k. Closes: #278135 + + * Merge in NMU changes. Many thanks to Fumitoshi UKAI. Closes: + #276206, #277122, #266519, #276201 + + * 11_dfa.c-ignorecase.dpatch, 12_dfa.c-ignorecase-range.dpath, + 13_dfa.c-charclass-bracket.dpatch: revert to old-style dpatch patch so + that it works for me. + + * 10_dfa.c-no-go_fast.dpatch: replaced... + * 10_dfa.c-disable-cache.dpatch: ... with this. Which is upstream's fix + for the same problem. + + * 15_builtin.c-fix-wide-char.dpatch: new patch by Stephen Kasal to fix + wide-char to{lower,upper}() handling. + + * 16_awkgram.y-stop-at-eof.dpatch: new patch by Andreas Schwab to stop + gawk reading past the end of the file for an awk script that is big + enough to fill more than a buffer's worth and does not end with a + newline. + + * 17_fix-non-numeric-constants.dpatch: new patch by Aharon Robbins to + improve handling of non-numeric constants so that numbers like 00.34 + don't get confused as being octal. + + -- James Troup Fri, 26 Nov 2004 18:30:42 +0000 + +gawk (1:3.1.4-1.2) unstable; urgency=low + + * NMU to fix RC bugs + * 12_dfa.c-ignorecase-range.dpath: new patch by Fumitoshi UKAI + to fix CASEIGNORE match on [a-z] or [A-Z] in multibyte locales (UTF-8,.) + closes: Bug#276206 + * 13_dfa.c-charclass-bracket.dpatch: new patch by Fumitoshi UKAI + to fix wrong match '[' against character class such as [[:space:]] + in multibyte locales (UTF-8, ...) + closes: Bug#277122 + + -- Fumitoshi UKAI Wed, 20 Oct 2004 01:41:40 +0900 + +gawk (1:3.1.4-1.1) unstable; urgency=low + + * NMU to fix RC bugs + * 10_dfa.c-no-go_fast.dpatch: new patch by Fumitoshi UKAI + to fix odd regexp matching in multibyte locales (UTF-8, CJK, ..) + closes: Bug#266519 + * 11_dfa.c-ignorecase.dpatch: new patch by Fumitoshi UKAI + to fix CASEIGNORE match on [:upper:] and [:lower:] in + multibyte locales (UTF-8, CJK, ...) + closes: Bug#276201 + + -- Fumitoshi UKAI Tue, 19 Oct 2004 01:16:27 +0900 + +gawk (1:3.1.4-1) unstable; urgency=low + + * New upstream release. + + * 02_fix-ascii.dpatch, 03_fix-high-char-ranges.dpatch: merged upstream - + removed. + + -- James Troup Mon, 2 Aug 2004 01:06:44 +0100 + +gawk (1:3.1.3-3) unstable; urgency=low + + * debian/rules (binary-arch): remove /usr/share/info/dir* to + workaround install-info brain damage (cf #213524). Closes: #218946 + * debian/rules (binary-arch): include README in the package. Closes: #236225 + * 04_it.po-charset.dpatch: new patch from "Lorenzo M. Catucci" + to fix the charset of the Italian + translation. Closes: #214184 + + -- James Troup Thu, 18 Mar 2004 09:36:29 +0000 + +gawk (1:3.1.3-2) unstable; urgency=low + + * debian/control (Standards-Version): bump to 3.6.1.0. + + * 02_fix-ascii.dpatch: new patch from upstream to fix [[:ascii:]]. + Thanks to Aleksey Cheusov for reporting the bug and + forwarding it upstream. Closes: #204701 + + * 03_fix-high-char-ranges.dpatch: new patch from upstream to fix + [\x80-\xff]. Thanks to Aleksey Cheusov for reporting + the bug and forwarding it upstream. Closes: #204699 + + -- James Troup Tue, 9 Sep 2003 01:16:01 +0100 + +gawk (1:3.1.3-1) unstable; urgency=low + + * New upstream release. + * Fix problems with gawk eating records. Closes: #193753 + + * 03_grow_iop_buffer-fix.dpatch, 04_fix-strtonum.dpatch, + 05_fix-savetail.dpatch: removed; merged upstream. + + * 02_pgawk.1.dpatch: removed; obsoleted by upstream change to use a + (hard-)link for pgawk.1 rather than a .so one. + * debian/rules (binary-arch): recreate pgawk.1 as a symlink rather than + a hardlink. + + * debian/rules: update version number. + * debian/copyright: likewise. + + * debian/rules (binary-arch): remove gawk and pgawk hard links and + replace them with their real de-versioned counterparts. + + -- James Troup Wed, 9 Jul 2003 16:01:16 +0100 + +gawk (1:3.1.2-4) unstable; urgency=low + + * debian/control (Build-Depends): add bison; needed with + 05_fix-savetail.dpatch. + * debian/rules (clean): remove awkgram.c to eliminate it from the + diff.gz. + + -- James Troup Fri, 6 Jun 2003 00:46:33 +0100 + +gawk (1:3.1.2-3) unstable; urgency=low + + * 04_fix-strtonum.dpatch: new patch to fix 'strtonum(13)'. Thanks to + Aharon Robbins . Thanks to Edd Dumbill + for the report. Closes: #159279 + + * 05_fix-savetail.dpatch: new patch to fix savetail regression. Thanks + to Stepan Kasal . Thanks to Nikita V. Youshchenko + for the report. Closes: #188345 + + * debian/control (Standards-Version): bump to 3.5.10.0. + + -- James Troup Thu, 5 Jun 2003 20:36:08 +0100 + +gawk (1:3.1.2-2) unstable; urgency=low + + * 03_grow_iop_buffer-fix.dpatch: new patch to fix 'Cannot allocate + memory' errors. Thanks to Aharon Robbins . + Closes: #186614 + + * debian/rules (build): depend on patch-stamp rather than patch. + + * debian/control (Standards-Version): bump to 3.5.9.0. + + -- James Troup Sun, 6 Apr 2003 12:49:03 +0100 + +gawk (1:3.1.2-1) unstable; urgency=low + + * New upstream release. + * pgawk.1 is now a link to gawk.1. Closes: #184978. + * debian/rules: update version numbers and copyright. + * debian/copyright: likewise. + + * Move to dpatch; existing non-debian/ changes split into + 01_po-Makefile.in.in.dpatch. The security fix to igawk and missing + #inclusion for pwcat and grcat have been fixed upstream. + * debian/rules: include /usr/share/dpatch/dpatch.make. + * debian/rules (build): depend on patch. + * debian/rules (clean): depend on unpatch. Remove debian/patched. + * debian/rules (.PHONY): add 'patch' and 'unpatch'. + * debian/control (Build-Depends): add dpatch. + + * debian/rules: use install_foo convenience variables. + + * debian/control (Standards-Version): bump to 3.5.8.0. + * debian/postinst, debian/prerm: no longer do /usr/doc symlinks. + + * 02_pgawk.1.dpatch: correct .so link to point to man1/gawk.1 (rather + than just gawk.1) as required by our man-db. + + * debian/control (Depends): drop depend on debianutils >= 1.7 (igawk + security fix by upstream doesn't use mktemp). + + -- James Troup Sun, 16 Mar 2003 22:01:23 +0000 + +gawk (1:3.1.1-1) unstable; urgency=low + + * New upstream version. + * debian/rules: update upstream version number. + * debian/copyright: likewise. + * po/Makefile.in.in: fix $localedir so that the .mo files get installed + into the right place. + * debian/rules (binary-arch): make install now also installs a + pgawk-$version, remove that too. + + -- James Troup Sat, 18 May 2002 18:34:42 +0100 + +gawk (1:3.1.0-3) unstable; urgency=high + + * awklib/eg/prog/igawk.sh: fix typo in security fix, so we define $ige + and $igs and not $igs twice. Thanks to Guillaume Cottenceau + . + + -- James Troup Thu, 17 Jan 2002 15:09:22 +0000 + +gawk (1:3.1.0-2) unstable; urgency=low + + * po/Makefile.in.in: fix gnulocaledir to not include /share again. + Closes: #101516, #107720. + * debian/changelog: remove local-variables stuff. + * debian/control (Build-Depends): add gettext. Avoids implicit + declarations in local intl/ copy. + * debian/rules: add "-Wall" to CFLAGS. + * awklib/eg/lib/pwcat.c: #include to get exit() prototype. + * awklib/eg/lib/grcat.c: likewise. + + -- James Troup Mon, 17 Dec 2001 22:34:03 +0000 + +gawk (1:3.1.0-1) unstable; urgency=low + + * New upstream version. + + -- James Troup Thu, 7 Jun 2001 19:42:21 +0100 + +gawk (1:3.0.6-1) unstable; urgency=low + + * New upstream version, closes: #68537, #85747. + * debian/rules: define a strip alias which removes the .comment and + .note sections. + * debian/rules (binary-arch): use it. + * debian/postrm: obsolete; removed. + * debian/rules: don't try to install postrm. + * debian/prerm: call install-info and update-alternatives here instead. + * debian/control (Maintainer): set to me; Chris' old email address is + bouncing and it's been almost 3 years. + * debian/rules: lots of minor changes; non-POSIX {,} expressions + removed, etc. + * debian/copyright: update upstream URL, maintainer email, dates. + + -- James Troup Wed, 14 Mar 2001 17:30:52 +0000 + +gawk (1:3.0.4-4) frozen unstable; urgency=high + + * mbc.c: default to ASCII. [#63378, #53391, #61368, #62239] + * Richard: this fixes a severity `critical' bug where gawk failed + miserably to accept 8bit input. It's a trivial change, which I've + been testing for a while now. + + -- James Troup Tue, 2 May 2000 20:59:05 +0100 + +gawk (1:3.0.4-3) unstable; urgency=low + + * debian/rules (binary-arch): changes for FHS compliance. + * debian/postinst: add symlink to /usr/doc/ on configure. Update + arguments to update-alternatives and install-info in line with FHS + changes. + * debian/prerm: new file; remove symlink to /usr/doc/. + * debian/control (Standards-Version): updated to 3.1.1.1. + * debian/rules (binary-arch): install new prerm. Pass -isp to + dpkg-gencontrol. + * debian/copyright: update. Remove references to Linux. Update + location of GPL. + + -- James Troup Sat, 5 Feb 2000 04:22:50 +0000 + +gawk (1:3.0.4-2) unstable; urgency=low + + * Apply MB patch from Ryuichi Arafune . [#43732] + * test/Makefile.in: remove baffling test for /dev/fd which was causing + problems on the Hurd. [#40309] + + -- James Troup Fri, 8 Oct 1999 23:15:52 +0100 + +gawk (1:3.0.4-1) unstable; urgency=low + + * New upstream version. + + -- James Troup Mon, 5 Jul 1999 00:05:42 +0100 + +gawk (3.0.46-1) unstable; urgency=low + + * New upstream BETA version. + + -- James Troup Sat, 12 Jun 1999 20:13:31 +0100 + +gawk (3.0.3-2) unstable; urgency=low + + * debian/control (Standards-Version): Upgraded to 2.5.0.0. + * debian/rules (binary-arch): don't compress examples. [#14705] + * debian/rules (binary-arch): pass `--libexecdir=/usr/lib' to configure + to ensure passwd.awk knows where pwcat and grcat are. [#22458 (1/4)] + * debian/rules (binary-arch): `fix' the oh-so-important `bug' of an extra + slash being passed to make in the libexecdir parameter. [#22458 (3/4)] + * debian/rules (binary-arch): don't run make in awklib/; it's done in + the build target which we already depend upon. [#22458 (4/4)] + * debian/changelog: remove the explicit setting of the + add-log-mailing-address emacs variable. + + -- James Troup Wed, 25 Nov 1998 17:40:13 +0000 + +gawk (3.0.3-1) frozen unstable; urgency=high + + * debian/control (Maintainer): New maintainer. However, I'm just an + interim real maintainer, the package will go back to Chris as soon as + he's ready. + * debian/control (Standards-Version): Upgraded to 2.4.1.0. + * debian/control (Depends): Made a Pre-Depends. [#20600] + * debian/rules (binary-arch): Recompress everything but copyright under + /usr/doc/gawk/, I'm afraid I agree with Scott and I don't subscribe to + the debstd-style view of not compressing ``small'' files. + * Restore Chris's debian/rules, as it was butchered by a non-maintainer + upload. Does no one listen to the "Maintainers other than the usual + package maintainer should make as few changes to the package as + possible" in policy? + * debian/rules (binary-arch): don't install gawk-3.0.3. + * debian/rules (binary-arch): don't install igawk.sh into + /usr/doc/gawk/examples/ as we have igawk in /usr/bin/. + * debian/rules (binary-arch): install architecture independent files + from awklib in /usr/share/awk/ and architecture dependant files in + /usr/lib/awk/. (3.0.3-0.{2,3} were confused about this) + * awklib/eg/prog/igawk.sh: SECURITY: use mktemp to create temporary + files instead of using gratuitously insecure /tmp/ig.[se].$$. + 3.0.3-0.3 altered the wrong file, fixing nothing and failed to exit if + mktemp/tempfile failed. [*really* fixes #19713] + * debian/control (Depends): depend on debianutils >= 1.7 (for mktemp). + * debian/rules (clean): remove emacs backup files (*~). + * pc/awklib/igawk: restore original. + + * Bugs fixed in 3.0.3-0.2 by Santiago Vila but + described by nothing more than a bug report number are :- + * debian/rules (binary-arch): pass correct values for datadir and + libexecdir to make to avoid installing files in random places during + make install. [#11339, #11435] + * debian/rule (binary-arch): don't install a gawk-3.0.3 manpage + symlink. [#13893, #17279] + * debian/rules (binary-arch): install examples in + /usr/doc/gawk/examples, not /usr/doc/gawk/awlib/eg/ [#16610 1/6]. + install pwcat and grcat uncompressed and stripped into /usr/lib/awk/ + [#16610 2/6]. Don't install the Makefile* from awklib [#1660 3/6], + don't install the C source for pwcat and grcat [#16610 4/6], don't + install the source for group.awk and passwd.awk [#16610 5/6] and + install awklib/lib/* in /usr/lib/awk [#16610 5/6]. + + * Bugs fixed in 3.0.3-0.1 by Martin Mitchell , not by + Santiago as he claims :- + * New upstream version. [#10228] + * New upstream version fixes memory leak [#12308] and problems with "awk + 'END { getline < "/dev/user" ; print }' /dev/null". [#13131] + + -- James Troup Thu, 30 Apr 1998 15:19:52 +0200 + +gawk (3.0.3-0.3) frozen unstable; urgency=high + + * Non-maintainer release. + * igawk fixed to use 'tempfile'. (closes #19713) + + -- Anthony Towns Sat, 11 Apr 1998 08:27:40 +1000 + +gawk (3.0.3-0.2) unstable; urgency=medium + + * Non-maintainer release. Would fix (if made official) all currently + open bugs: #5297, #10228, #11339, #11435, #12308, #13131, #13839, + #14705, #16110 and #17279. + * Updated FSF's postal address (discovered by lintian). + * Added FUTURES, POSIX.STD, NEWS, README.FIRST and ACKNOWLEDGMENT + to the /usr/doc/gawk directory. + * Standards-Version: 2.4.0.0. + + -- Santiago Vila Thu, 19 Feb 1998 21:03:44 +0100 + +gawk (3.0.3-0.1) unstable; urgency=low + + * Non-maintainer release. + * Upgrade to latest upstream source. + * Libc6 compile. + + -- Martin Mitchell Fri, 14 Nov 1997 11:08:45 +1100 + +gawk (3.0.2-1) unstable; urgency=low + + * Upgraded to the latest upstream. + * Added symlink for man page gawk-3.0.2 -> gawk. + * postinst: remove bad links in /usr/man/man1. + * Moved to section interpreters. + + -- Chris Fearnley Fri, 7 Mar 1997 14:58:42 -0500 + +gawk (3.0.1-1) unstable; urgency=low + + * Upgraded to the latest upstream. + * Use Standards-Version: 2.1.2.2. + + -- Chris Fearnley Mon, 23 Dec 1996 15:56:00 -0500 + +gawk (3.0.0-5) unstable; urgency=low + + * Fixed debian/rules clean so that it won't bail if Makefile doesn't + exist (bug #4627) + * Fixed postinst to install awk and nawk man pages correctly (bug #5164) + + -- Chris Fearnley Sun, 3 Nov 1996 22:06:57 -0500 + +gawk (3.0.0-4) unstable; urgency=low + + * upgrade packaging to Debian Standards-Version 2.1.1.0 + * i386 development environment: gcc-2.7.2.1-1, libc5-5.2.18-11, + libc5-dev-5.2.18-11, binutils-2.6-2, and make-3.74-12 + + -- Chris Fearnley Sat, 28 Sep 1996 13:42:42 -0400 + +gawk (3.0.0-3) unstable; urgency=low + + * upgrade to latest debian packaging guidelines + * provides: awk + * add query to the postinst asking if gawk should be the default awk/nawk + (and in postrm undo this) + * Development environment for i386: gcc-2.7.2-8 libc5-5.2.18-9 make-3.74-12 + + -- Chris Fearnley Wed, 7 Aug 1996 15:25:42 -0400 + +gawk (3.0.0-1) unstable; urgency=low + + * Upgraded to new upstream source + * Compiled with: gcc-2.7.2-2, binutils-2.6-2, and libc5-5.2.18-1. + + -- Chris Fearnley Mon, 29 Jan 1996 04:03:09 -0400 + +gawk (2.15.6-2) unstable; urgency=low + + * New maintainer Chris Fearnley + * Changed postinst and prerm scripts to use update-alternatives + * Cleaned up debian.rules + * Added longer Description (taken directly from the man page) + * Added the following files to /usr/doc/gawk: LIMITATIONS and PROBLEMS + * ELF package + + -- Chris Fearnley Sun, 3 Dec 1995 01:04:13 -0400 --- gawk-3.1.5.dfsg.orig/debian/control +++ gawk-3.1.5.dfsg/debian/control @@ -0,0 +1,22 @@ +Source: gawk +Section: interpreters +Priority: optional +Build-Depends: gettext, dpatch, bison, binutils (>= 2.15-5) [m68k] +Maintainer: James Troup +Standards-Version: 3.6.2.1 + +Package: gawk +Architecture: any +Provides: awk +Pre-Depends: ${shlibs:Depends} +Description: GNU awk, a pattern scanning and processing language + `awk', a program that you can use to select particular records in a + file and perform operations upon them. + . + Gawk is the GNU Project's implementation of the AWK programming language. + It conforms to the definition of the language in the POSIX 1003.2 Command + Language And Utilities Standard. This version in turn is based on the + description in The AWK Programming Language, by Aho, Kernighan, and + Weinberger, with the additional features defined in the System V Release + 4 version of UNIX awk. Gawk also provides more recent Bell Labs awk + extensions, and some GNU-specific extensions. --- gawk-3.1.5.dfsg.orig/debian/copyright +++ gawk-3.1.5.dfsg/debian/copyright @@ -0,0 +1,31 @@ +This is the Debian GNU prepackaged version of Gawk, a pattern +scanning and processing language. Gawk was written by Diane Barlow +Close, Arnold D. Robbins, Paul H. Rubin and Richard Stallman. + +This package was put together by Chris Fearnley (debian.* +files were originally prepared by Ian Murdock ), +from sources obtained from: + +ftp://ftp.gnu.org/pub/gnu/gawk/gawk-3.1.5.tar.gz + +It is currently being maintained by James Troup . + +Gawk is Copyright (C) 1989-2006 Free Software Foundation. +Modifications for Debian GNU Copyright (C) 1995-1997 Chris Fearnley. +Modifications for Debian GNU Copyright (C) 1998-2006 James Troup. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- gawk-3.1.5.dfsg.orig/debian/postinst +++ gawk-3.1.5.dfsg/debian/postinst @@ -0,0 +1,12 @@ +#!/bin/sh -e + +update-alternatives --quiet --install /usr/bin/awk awk /usr/bin/gawk 10 \ + --slave /usr/share/man/man1/awk.1.gz awk.1.gz /usr/share/man/man1/gawk.1.gz \ + --slave /usr/bin/nawk nawk /usr/bin/gawk \ + --slave /usr/share/man/man1/nawk.1.gz nawk.1.gz /usr/share/man/man1/gawk.1.gz +for badlink in /usr/man/man1/awk.1 /usr/man/man1/nawk.1; do + if [ -L $badlink ]; then + if ! ls -l $(ls -l $badlink | cut -d">" -f2) >/dev/null 2>&1; then + rm -f $badlink; fi; fi; done + +exit 0 --- gawk-3.1.5.dfsg.orig/debian/postrm +++ gawk-3.1.5.dfsg/debian/postrm @@ -0,0 +1,5 @@ +#!/bin/sh -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove awk /usr/bin/gawk +fi --- gawk-3.1.5.dfsg.orig/debian/prerm +++ gawk-3.1.5.dfsg/debian/prerm @@ -0,0 +1,5 @@ +#!/bin/sh -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove awk /usr/bin/gawk +fi --- gawk-3.1.5.dfsg.orig/debian/rules +++ gawk-3.1.5.dfsg/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# debian/rules file - for Gawk (3.1.5) +# Based on sample debian/rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# Copyright 1998-2006 James Troup +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) + +STRIP=strip --remove-section=.comment --remove-section=.note +PWD=`pwd` +pkg = gawk +version = 3.1.5 +install_dir=install -d -m 755 +install_file=install -m 644 +install_script=install -m 755 +install_binary=install -m 755 -s + +include /usr/share/dpatch/dpatch.make + +build: patch-stamp + $(checkdir) + touch --date="Jan 01 2000" doc/gawk.info doc/gawk.texi \ + doc/gawkinet.info doc/gawkinet.texi +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + CFLAGS="-g -O2 -Wall" ./configure --prefix=/usr --libexecdir=/usr/lib +else + CFLAGS="-g -O2 -Wall" ./configure --prefix=/usr --libexecdir=/usr/lib \ + --host=$(DEB_HOST_GNU_TYPE) +endif + make +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + make check +endif + touch build + +clean: unpatch + $(checkdir) + rm -f build awkgram.c + -$(MAKE) distclean || $(MAKE) -f Makefile.in distclean + find . -name \*~ | xargs rm -vf + -rm -rf debian/patched debian/tmp debian/files* debian/substvars config.log config.cache stamp-h .deps + +binary-indep: + +binary-arch: checkroot build + $(checkdir) + rm -rf debian/tmp + $(install_dir) debian/tmp/DEBIAN/ + $(install_dir) debian/tmp/usr/share/doc/$(pkg)/examples/ + $(install_script) debian/prerm debian/postinst debian/tmp/DEBIAN + make install datadir=$(PWD)/debian/tmp/usr/share \ + libexecdir=$(PWD)/debian/tmp/usr/lib \ + prefix=$(PWD)/debian/tmp/usr/share \ + exec_prefix=$(PWD)/debian/tmp/usr + $(STRIP) debian/tmp/usr/bin/gawk debian/tmp/usr/bin/pgawk debian/tmp/usr/lib/awk/grcat debian/tmp/usr/lib/awk/pwcat + for awk in gawk pgawk; do \ + rm debian/tmp/usr/bin/$$awk; \ + mv debian/tmp/usr/bin/$$awk-$(version) debian/tmp/usr/bin/$$awk; \ + done + rm -f debian/tmp/usr/bin/awk + rm -f debian/tmp/usr/share/man/man1/pgawk.1 + gzip -9 debian/tmp/usr/share/man/man1/* + ln -s gawk.1.gz debian/tmp/usr/share/man/man1/pgawk.1.gz + $(install_file) debian/copyright debian/tmp/usr/share/doc/$(pkg) + $(install_file) ChangeLog debian/tmp/usr/share/doc/$(pkg)/changelog + $(install_file) debian/changelog debian/tmp/usr/share/doc/$(pkg)/changelog.Debian + $(install_file) FUTURES POSIX.STD NEWS README README_d/README.FIRST \ + AUTHORS LIMITATIONS PROBLEMS debian/tmp/usr/share/doc/$(pkg) + $(install_script) awklib/igawk debian/tmp/usr/bin + cp -a awklib/eg/* debian/tmp/usr/share/doc/$(pkg)/examples/ + # igawk is already in /usr/bin/ + rm -f debian/tmp/usr/share/doc/$(pkg)/examples/prog/igawk.sh + # examples/lib/ is /usr/share/awk/ + some cruft, get rid of it + rm -fr debian/tmp/usr/share/doc/$(pkg)/examples/lib/ + : # *sigh*, bugs.debian.org/213524 + rm -f debian/tmp/usr/share/info/* # dir* + find debian/tmp/usr/share/doc/$(pkg)/ -maxdepth 1 -type f ! -name copyright | xargs gzip -9 + dpkg-shlibdeps debian/tmp/usr/bin/gawk; dpkg-gencontrol -isp + chown -R root.root debian/tmp + chmod -R go=rX debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f awk.h -a -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot patch unpatch