From nobody@FreeBSD.org  Wed Oct 28 05:43:09 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 218A4106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Oct 2009 05:43:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 11B838FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Oct 2009 05:43:09 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9S5h8EN028644
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Oct 2009 05:43:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9S5h8Ho028643;
	Wed, 28 Oct 2009 05:43:08 GMT
	(envelope-from nobody)
Message-Id: <200910280543.n9S5h8Ho028643@www.freebsd.org>
Date: Wed, 28 Oct 2009 05:43:08 GMT
From: Sato Kuro <poyopoyo@puripuri.plala.or.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] net/mpd unbreak
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140040
>Category:       ports
>Synopsis:       [PATCH] net/mpd unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 28 05:50:01 UTC 2009
>Closed-Date:    Fri Oct 30 10:11:15 UTC 2009
>Last-Modified:  Fri Oct 30 10:20:02 UTC 2009
>Originator:     Sato Kuro
>Release:        9.0-CURRENT
>Organization:
>Environment:
>Description:
net/mpd is marked as BROKEN after BURN_BRIDGES has been
fallen. Replacing definitions is enough to unbreak.
>How-To-Repeat:

>Fix:
--- /usr/ports/net/mpd/Makefile	2009-06-14 03:07:42.000000000 +0900
+++ Makefile	2009-07-29 23:54:39.000000000 +0900
@@ -29,9 +29,10 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 800097
-BROKEN=		does not compile
-.endif
+post-patch:
+	${FIND} ${WRKSRC}/src -type f -name \*.c \
+	| ${XARGS} ${GREP} -l 'NG_....LEN[ +1]*' \
+	| ${XARGS} ${REINPLACE_CMD} 's/\(NG_....\)LEN[ +1]*/\1SIZ/g'
 
 pre-build:
 	@${ECHO}


>Release-Note:
>Audit-Trail:

From: poyopoyo@puripuri.plala.or.jp
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140040: [PATCH] net/mpd unbreak
Date: Wed, 28 Oct 2009 18:55:32 +0900

 patch revised.
 - get rid of pre.mk/post.mk that were for OSVERSION.
 
 --- /usr/ports/net/mpd/Makefile	2009-06-14 03:07:42.000000000 +0900
 +++ Makefile	2009-10-28 18:39:52.000000000 +0900
 @@ -27,11 +27,10 @@
  
  USE_RC_SUBR=	mpd
  
 -.include <bsd.port.pre.mk>
 -
 -.if ${OSVERSION} >= 800097
 -BROKEN=		does not compile
 -.endif
 +post-patch:
 +	${FIND} ${WRKSRC}/src -type f -name \*.c \
 +	| ${XARGS} ${GREP} -l 'NG_....LEN[ +1]*' \
 +	| ${XARGS} ${REINPLACE_CMD} 's/\(NG_....\)LEN[ +1]*/\1SIZ/g'
  
  pre-build:
  	@${ECHO}
 @@ -44,4 +43,4 @@
  	@${MKDIR} ${DOCSDIR}
  .endif
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Thu Oct 29 09:20:12 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140040 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Oct 30 10:11:13 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140040 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140040: commit references a PR
Date: Fri, 30 Oct 2009 10:11:16 +0000 (UTC)

 miwi        2009-10-30 10:11:07 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/mpd              Makefile 
   Log:
   - Fix build
   
   PR:             140040
   Submitted by:   Sato Kuro <poyopoyo@puripuri.plala.or.jp>
   
   Revision  Changes    Path
   1.54      +4 -3      ports/net/mpd/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
