From root@beacon.x12.dk  Mon Jun  5 10:41:14 2006
Return-Path: <root@beacon.x12.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9EB1B16A4C4
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 10:41:14 +0000 (UTC)
	(envelope-from root@beacon.x12.dk)
Received: from swip.net (mailfe08.swip.net [212.247.154.225])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8574843D46
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 10:41:13 +0000 (GMT)
	(envelope-from root@beacon.x12.dk)
Received: from x12.dk ([83.72.97.237] verified)
  by mailfe08.swip.net (CommuniGate Pro SMTP 5.0.8)
  with ESMTP id 207034487 for FreeBSD-gnats-submit@freebsd.org; Mon, 05 Jun 2006 12:41:11 +0200
Received: from localhost (localhost [127.0.0.1])
	by x12.dk (Postfix) with SMTP id 4469A50839
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 12:41:11 +0200 (CEST)
Received: from beacon.x12.dk (beacon.lan [10.40.61.30])
	by x12.dk (Postfix) with ESMTP id DF2085082A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jun 2006 12:41:10 +0200 (CEST)
Received: by beacon.x12.dk (Postfix, from userid 0)
	id 913CF4259; Mon,  5 Jun 2006 12:41:10 +0200 (CEST)
Message-Id: <20060605104110.913CF4259@beacon.x12.dk>
Date: Mon,  5 Jun 2006 12:41:10 +0200 (CEST)
From: Soeren Straarup <xride@x12.dk>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [MAINTAINER-PATCH] comms/xnecview: [Mark broken for less then 5.x]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         98523
>Category:       ports
>Synopsis:       [MAINTAINER-PATCH] comms/xnecview: [Mark broken for less then 5.x]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    novel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 05 10:50:19 GMT 2006
>Closed-Date:    Mon Jun 05 14:07:25 GMT 2006
>Last-Modified:  Mon Jun 05 14:07:25 GMT 2006
>Originator:     Soeren Straarup
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD beacon.x12.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Tue Feb  7 20:11:22 CET
>Description:
Mark broken for OSVERSION lower than 5.x
due to getops doesn't work well on 4.X
Make a minor c declaration fix.

Added file(s):
- files/patch-parse_input.c

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- xnecview-1.35.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/comms/xnecview/Makefile /space/portstrees/FreeBSD/ports/comms/xnecview/Makefile
--- /usr/ports/comms/xnecview/Makefile	Sat Jun  3 20:28:36 2006
+++ /space/portstrees/FreeBSD/ports/comms/xnecview/Makefile	Mon Jun  5 12:20:38 2006
@@ -24,8 +24,14 @@
 MAN1=		xnecview.1
 PLIST_FILES=	bin/xnecview
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE=	does not build on FreeBSD 4.x
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/xnecview ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/xnecview.man ${MANPREFIX}/man/man1/xnecview.1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/comms/xnecview/files/patch-Makefile /space/portstrees/FreeBSD/ports/comms/xnecview/files/patch-Makefile
--- /usr/ports/comms/xnecview/files/patch-Makefile	Sat Jun  3 20:28:36 2006
+++ /space/portstrees/FreeBSD/ports/comms/xnecview/files/patch-Makefile	Mon Jun  5 09:33:55 2006
@@ -1,6 +1,16 @@
---- Makefile.orig	Fri May 26 21:40:46 2006
-+++ Makefile	Fri May 26 21:42:42 2006
-@@ -11,7 +11,8 @@
+--- Makefile.orig	Mon Mar 27 22:38:37 2006
++++ Makefile	Mon Jun  5 09:33:53 2006
+@@ -4,14 +4,15 @@
+ 
+ 
+ CC	= gcc
+-CFLAGS	= -O2 -g -Wall `pkg-config gtk+-2.0 --cflags`
++CFLAGS	+= -O2 -Wall `pkg-config gtk+-2.0 --cflags`
+ 
+-LD	= $(CC)
+-LDFLAGS	= `pkg-config gtk+-2.0 --libs` -lm
++LD	+= $(CC)
++LDFLAGS	+= `pkg-config gtk+-2.0 --libs` -lm
  
  ifeq ($(PNG),yes)
  CFLAGS	+= -DHAVE_LIBPNG
diff -ruN --exclude=CVS /usr/ports/comms/xnecview/files/patch-parse_input.c /space/portstrees/FreeBSD/ports/comms/xnecview/files/patch-parse_input.c
--- /usr/ports/comms/xnecview/files/patch-parse_input.c	Thu Jan  1 01:00:00 1970
+++ /space/portstrees/FreeBSD/ports/comms/xnecview/files/patch-parse_input.c	Mon Jun  5 08:58:44 2006
@@ -0,0 +1,19 @@
+--- parse_input.c.orig	Mon Jun  5 08:56:55 2006
++++ parse_input.c	Mon Jun  5 08:57:56 2006
+@@ -527,6 +527,7 @@
+ int read_nec_SC(char *s)     /* SC -> continuation of SM, SP, or SC */
+ {
+    Surface *su;
++   Surface *suLast;
+    int ns;
+    Point p3;
+    int n;
+@@ -575,7 +576,7 @@
+       case 'C':
+          n=sscanf(s,"SC%*i%d%g%g%g%g%g%g",&ns,&su->p2.x,&su->p2.y,&su->p2.z,&su->p3.x,&su->p3.y,&su->p3.z);
+          if (n!=7 && n!=4) return Err_scan;
+-         Surface *suLast=surfaces+(numsurfaces-2);
++         suLast=surfaces+(numsurfaces-2);
+          su->p0=suLast->p3;
+          su->p1=suLast->p2;
+          updateextremes(&su->p2);
--- xnecview-1.35.patch ends here ---


>Release-Note:
>Audit-Trail:

From: Soeren Straarup <xride@x12.dk>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/98523: [MAINTAINER-PATCH] comms/xnecview
Date: Mon, 5 Jun 2006 13:11:41 +0200 (CEST)

 s/IGNORE/BROKEN/ in Makefile
 
 \Soren
 
 Soeren Straarup   | aka OZ2DAK aka Xride
 FreeBSD wannabe   | FreeBSD since 2.2.6-R
    If a program is not working right, then send a patch
Responsible-Changed-From-To: freebsd-ports-bugs->novel 
Responsible-Changed-By: novel 
Responsible-Changed-When: Mon Jun 5 12:04:13 UTC 2006 
Responsible-Changed-Why:  
I will take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98523 
State-Changed-From-To: open->closed 
State-Changed-By: novel 
State-Changed-When: Mon Jun 5 14:07:24 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98523 
>Unformatted:
