ports/59493: The ports system doesn't or can't honor NO_CPU_CFLAGS

James Housley jeh at vaio2.int.thehousleys.net
Thu Nov 20 02:30:18 UTC 2003


>Number:         59493
>Category:       ports
>Synopsis:       The ports system doesn't or can't honor NO_CPU_CFLAGS
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 19 18:30:14 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     James Housley
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD vaio2.int.thehousleys.net 4.9-RELEASE FreeBSD 4.9-RELEASE #20: Mon Oct 27 08:48:54 EST 2003 root at cat.int.thehousleys.net:/usr/obj/usr/src/sys/VAIOKERNEL i386


	
>Description:
	It is not possible to set NO_CPU_CFLAGS in a ports makefile
	and not have -mcpu or -march in the CFLAGS if NO_CPU_CFLAGS 
	is not specified in /etc/make.conf.  I believe this is 
	becuase they have already been added before the ports makefile
	and Mk/* files are parsed.
>How-To-Repeat:
	
>Fix:

	

--- diff.txt begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /usr/FREEBSD_CVS/ports/Mk/bsd.port.mk,v
retrieving revision 1.473
diff -u -r1.473 bsd.port.mk
--- bsd.port.mk	8 Nov 2003 03:22:08 -0000	1.473
+++ bsd.port.mk	20 Nov 2003 00:56:56 -0000
@@ -1179,6 +1179,10 @@
 
 PLIST_SUB+=	OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
 
+.if defined(NO_CPU_CFLAGS)
+CFLAGS:=	${CFLAGS:C/${_CPUCFLAGS}//}
+.endif
+
 .if defined(NOPORTDOCS)
 PLIST_SUB+=	        PORTDOCS="@comment "
 .else
--- diff.txt ends here ---


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



More information about the freebsd-ports-bugs mailing list