From nobody@FreeBSD.org  Wed Feb 10 22:52:55 2010
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 5597B10656DF
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 22:52:55 +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 450FB8FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 22:52:55 +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 o1AMqtRs039504
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Feb 2010 22:52:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o1AMqsuu039503;
	Wed, 10 Feb 2010 22:52:54 GMT
	(envelope-from nobody)
Message-Id: <201002102252.o1AMqsuu039503@www.freebsd.org>
Date: Wed, 10 Feb 2010 22:52:54 GMT
From: Rob Farmer <rfarmer@predatorlabs.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] audio/libmad Fix build with new GCC
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143741
>Category:       ports
>Synopsis:       [PATCH] audio/libmad Fix build with new GCC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 11 01:41:22 UTC 2010
>Closed-Date:    Thu Feb 11 15:50:04 CET 2010
>Last-Modified:  Thu Feb 11 15:00:01 UTC 2010
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD coretwo.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r203695: Tue Feb  9 03:02:13 PST 2010     rfarmer@coretwo.predatorlabs.net:/usr/obj/usr/src/sys/CORETWO  amd64
>Description:
The configure script sets the CFLAG -fforce-mem which does nothing with the base system GCC and is an error in newer GCC.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/libmad/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	22 Aug 2009 00:13:10 -0000	1.15
+++ Makefile	10 Feb 2010 07:16:50 -0000
@@ -31,6 +31,7 @@
 post-patch:
 	@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
 		${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
+	@${REINPLACE_CMD} -e 19103d ${WRKSRC}/configure
 
 post-install:
 	${MKDIR} ${PREFIX}/libdata/pkgconfig


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Feb 11 01:46:10 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143741 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Thu Feb 11 15:48:30 CET 2010 
State-Changed-Why:  

committed with small modifications, thanks. 
The patch should work now, even if the configure script changes. 


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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/143741: commit references a PR
Date: Thu, 11 Feb 2010 14:47:48 +0000 (UTC)

 dinoex      2010-02-11 14:47:35 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/libmad         Makefile 
   Log:
   - fix build with new GCC
   PR:             143741
   Submitted by:   Rob Farmer
   
   Revision  Changes    Path
   1.16      +2 -0      ports/audio/libmad/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:
