aboutsummaryrefslogtreecommitdiff
path: root/databases/gnats
diff options
context:
space:
mode:
authorCeri Davies <ceri@FreeBSD.org>2004-11-15 19:56:16 +0000
committerCeri Davies <ceri@FreeBSD.org>2004-11-15 19:56:16 +0000
commit67f4c1309bc50e32414df546282b83c6bf1a5e56 (patch)
tree92f4eb26199cbd2d334140e811a1e4d55b9f94e3 /databases/gnats
parentfe4de45f1f6686e752bb4df01a9fb546174c8e56 (diff)
downloadports-67f4c1309bc50e32414df546282b83c6bf1a5e56.tar.gz
ports-67f4c1309bc50e32414df546282b83c6bf1a5e56.zip
Notes
Diffstat (limited to 'databases/gnats')
-rw-r--r--databases/gnats/Makefile3
-rw-r--r--databases/gnats/files/patch-gnats::query.c25
2 files changed, 27 insertions, 1 deletions
diff --git a/databases/gnats/Makefile b/databases/gnats/Makefile
index cd24d7aece58..ac8ad4d33117 100644
--- a/databases/gnats/Makefile
+++ b/databases/gnats/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gnats
PORTVERSION= 3.113.1
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= databases elisp
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gnats
@@ -25,6 +25,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-lispdir=${PREFIX}/share/emacs/site-lisp \
--with-full-gnats \
--with-release-based
+CFLAGS+= -DUSE_WIDE_RESPONSIBLE
USE_GMAKE= yes
MAN1= edit-pr.1 query-pr.1 send-pr.1
diff --git a/databases/gnats/files/patch-gnats::query.c b/databases/gnats/files/patch-gnats::query.c
new file mode 100644
index 000000000000..07f24ebcd681
--- /dev/null
+++ b/databases/gnats/files/patch-gnats::query.c
@@ -0,0 +1,25 @@
+--- gnats/query.c.dist Wed Nov 25 08:15:19 1998
++++ gnats/query.c Thu May 15 18:15:59 2003
+@@ -488,7 +488,7 @@
+
+ if (query_format & FORMAT_SQL)
+ {
+- char *t, *q, *tempstr;
++ char *t, *q, *tempstr, *fmtstring;
+
+ tempstr = (char *) xmalloc (strlen (i->synopsis) + 1);
+ strcpy (tempstr, i->synopsis);
+@@ -503,7 +503,12 @@
+ if (q != NULL)
+ *q = '\0';
+
+- fprintf (outfile, "%1.1d|%1.1d|%-16.16s|%1.1d|%1.1d|%-16.16s|",
++#ifdef USE_WIDE_RESPONSIBLE
++ fmtstring = "%1.1d|%1.1d|%-20.20s|%1.1d|%1.1d|%-16.16s|";
++#else
++ fmtstring = "%1.1d|%1.1d|%-16.16s|%1.1d|%1.1d|%-16.16s|";
++#endif
++ fprintf (outfile, fmtstring,
+ sql_types (i->severity, Severity), sql_types (i->priority, Priority),
+ tempstr,
+ sql_types (i->state, State), sql_types (i->class, Class),