gawk stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: gawk
Version: 3.1.5
Revision: 11
Maintainer: Max Horn
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Depends: libgettext3-shlibs, libiconv
Source: gnu
Source-MD5: 4760325489479cac17fe0114b8f62f30
Patch: %n.patch
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --libexecdir=%p/lib
InstallScript: make install DESTDIR=%d
DocFiles: README COPYING AUTHORS LIMITATIONS NEWS POSIX.STD PROBLEMS
InfoDocs: gawk.info gawkinet.info
#
Description: The Awk processing language, GNU edition
DescDetail: <<
Awk is a sophisticated text processing language commonly used in shell
scripts. Note that many people actually prefer mawk over gawk because
of speed.
<<
License: GPL
Homepage: http://www.gnu.org/software/gawk/

gawk stable port .patch

diff -ru gawk-3.1.5/dfa.c gawk-3.1.5-patched/dfa.c
--- gawk-3.1.5/dfa.c 2005-07-26 20:07:43.000000000 +0200
+++ gawk-3.1.5-patched/dfa.c 2006-12-24 18:18:51.000000000 +0100
@@ -109,7 +109,6 @@

#include "regex.h"
#include "dfa.h"
-#include "hard-locale.h"

/* HPUX, define those as macros in sys/param.h */
#ifdef setbit
@@ -162,6 +161,8 @@
static char **addlists PARAMS ((char **old, char **new));
static char **inboth PARAMS ((char **left, char **right));

+#include "hard-locale.h"
+
static ptr_t
xcalloc (size_t n, size_t s)
{
diff -ru gawk-3.1.5/hard-locale.h gawk-3.1.5-patched/hard-locale.h
--- gawk-3.1.5/hard-locale.h 2005-05-11 17:28:16.000000000 +0200
+++ gawk-3.1.5-patched/hard-locale.h 2006-12-24 18:18:43.000000000 +0100
@@ -40,8 +40,6 @@
if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
hard = 0;
# else
- static ptr_t xmalloc PARAMS ((size_t n));
-
char *locale = xmalloc (strlen (p) + 1);
strcpy (locale, p);

gawk _unstable_ port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: gawk
Version: 3.1.5
Revision: 12
Maintainer: Max Horn
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Depends: libgettext3-shlibs, libiconv
Source: gnu
Source-MD5: 4760325489479cac17fe0114b8f62f30
Patch: %n.patch
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --libexecdir=%p/lib
InstallScript: make install DESTDIR=%d
DocFiles: README COPYING AUTHORS LIMITATIONS NEWS POSIX.STD PROBLEMS
InfoDocs: gawk.info gawkinet.info
#
Description: The Awk processing language, GNU edition
DescDetail: <<
Awk is a sophisticated text processing language commonly used in shell
scripts. Note that many people actually prefer mawk over gawk because
of speed.
<<
DescPackaging: <<
* Patch a bug in builtin.c (also in Debian).
* Another patch works around a compile problem related to
gawk's xmalloc
<<
License: GPL
Homepage: http://www.gnu.org/software/gawk/

gawk _unstable_ port .patch

--- gawk-3.1.5.orig/builtin.c 2005-07-26 18:07:43.000000000 +0000
+++ gawk-3.1.5/builtin.c 2007-05-02 15:03:56.000000000 +0000
@@ -2089,9 +2089,9 @@
}

free(buf);
- if (wc_indices != NULL)
- free(wc_indices);
}
+ if (wc_indices != NULL)
+ free(wc_indices);
} else { /* match failed */
rstart = 0;
rlength = -1;
diff -ru gawk-3.1.5/dfa.c gawk-3.1.5-patched/dfa.c
--- gawk-3.1.5/dfa.c 2005-07-26 20:07:43.000000000 +0200
+++ gawk-3.1.5-patched/dfa.c 2006-12-24 18:18:51.000000000 +0100
@@ -109,7 +109,6 @@

#include "regex.h"
#include "dfa.h"
-#include "hard-locale.h"

/* HPUX, define those as macros in sys/param.h */
#ifdef setbit
@@ -162,6 +161,8 @@
static char **addlists PARAMS ((char **old, char **new));
static char **inboth PARAMS ((char **left, char **right));

+#include "hard-locale.h"
+
static ptr_t
xcalloc (size_t n, size_t s)
{
diff -ru gawk-3.1.5/hard-locale.h gawk-3.1.5-patched/hard-locale.h
--- gawk-3.1.5/hard-locale.h 2005-05-11 17:28:16.000000000 +0200
+++ gawk-3.1.5-patched/hard-locale.h 2006-12-24 18:18:43.000000000 +0100
@@ -40,8 +40,6 @@
if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
hard = 0;
# else
- static ptr_t xmalloc PARAMS ((size_t n));
-
char *locale = xmalloc (strlen (p) + 1);
strcpy (locale, p);