ports/52303: [patch] add knob to databases/gnats to report "responsible" correctly

Mark Linimon linimon at lonesome.com
Fri May 16 00:10:14 UTC 2003


>Number:         52303
>Category:       ports
>Synopsis:       [patch] add knob to databases/gnats to report "responsible"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 15 17:10:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Linimon
>Release:        FreeBSD 4.7
>Organization:
Lonesome Dove Computing Services
>Environment:
>Description:
	Due to hard-coding in query-pr -i, our value that we use for
	"reponsible not yet assigned" in ports PRs comes out
	"freebsd-ports-bu" in all the reports instead of
	"freebsd-ports-bugs".  This patch makes a slightly wider
	field the default.  (It can be turned off if anyone needs
	strict compatibility with the old length of 16).
>How-To-Repeat:
	query-pr -i 49999
>Fix:

diff -ruN gnats.orig/Makefile gnats/Makefile
--- gnats.orig/Makefile	Thu May 15 18:24:26 2003
+++ gnats/Makefile	Thu May 15 18:19:36 2003
@@ -21,6 +21,7 @@
 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 -ruN gnats.orig/files/patch-gnats::query.c 
gnats/files/patch-gnats::query.c
--- gnats.orig/files/patch-gnats::query.c	Wed Dec 31 18:00:00 1969
+++ gnats/files/patch-gnats::query.c	Thu May 15 18:20:50 2003
@@ -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),

>Release-Note:
>Audit-Trail:
>Unformatted:
 correctly



More information about the freebsd-ports-bugs mailing list