Date: Mon, 01 Oct 2001 18:13:05 +0100 From: AMAKAWA Shuhei <sa264@cam.ac.uk> To: FreeBSD-gnats-submit@freebsd.org Cc: tonym@biolateral.com.au Subject: ports/30963: Make net/generic-nqs honor CFLAGS Message-ID: <E15o6cr-0000jU-00@m218-3.phy.cam.ac.uk>
next in thread | raw e-mail | index | archive | help
>Number: 30963 >Category: ports >Synopsis: Make net/generic-nqs honor CFLAGS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 01 10:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: AMAKAWA Shuhei >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD m218-3.phy.cam.ac.uk 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Sep 27 07:01:16 BST 2001 sa264@m218-3.phy.cam.ac.uk:/usr/obj/usr/src/sys/KERNCONF i386 >Description: This is an attempt to make net/generic-nqs honor CFLAGS. >How-To-Repeat: >Fix: Removed file: files/patch-ab diff -uNr /usr/ports/net/generic-nqs/Makefile generic-nqs/Makefile --- /usr/ports/net/generic-nqs/Makefile Wed Aug 8 21:56:45 2001 +++ generic-nqs/Makefile Sun Sep 30 22:18:30 2001 @@ -95,11 +95,18 @@ # Rename man page to fit BSD extensions # +post-patch: + @${MV} ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh \ + ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh.orig ; \ + ${SED} -e 's/-O6 -fno-strength-reduce/${CFLAGS}/' \ + ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh.orig \ + > ${WRKSRC}/SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh + pre-configure: - @ ${CP} ${FILESDIR}/${TEMPLATE} ${PLATFORMDIR}/${PLATFORM}; \ + @ ${SED} -e 's/XX_CFLAGS_XX/${CFLAGS}/' ${FILESDIR}/${TEMPLATE} > ${PLATFORMDIR}/${PLATFORM}; \ ${CP} ${FILESDIR}/${DUMMYMAKE} ${WRKSRC}; \ - ${CHMOD} 555 ${WRKDIR}/${DISTNAME}/Source-Tree/SETUP/all-systems/* - ${RM} ${MANDIR}/*.man ; \ + ${CHMOD} 555 ${WRKSRC}/Source-Tree/SETUP/all-systems/* + ${RM} -f ${MANDIR}/*.man ; \ ${MV} ${MANDIR}/nmapmgr.1m ${MANDIR}/nmapmgr.1 # diff -uNr /usr/ports/net/generic-nqs/files/i386-unknown-freebsd2.2.6 generic-nqs/files/i386-unknown-freebsd2.2.6 --- /usr/ports/net/generic-nqs/files/i386-unknown-freebsd2.2.6 Mon Dec 27 00:45:59 1999 +++ generic-nqs/files/i386-unknown-freebsd2.2.6 Sat Sep 29 01:00:55 2001 @@ -3,7 +3,7 @@ # PLATFORM DESCRIPTION FILE C_COMPILER "cc" -C_COMPILER_FLAGS_OPTIMISE "-O2" +C_COMPILER_FLAGS_OPTIMISE "XX_CFLAGS_XX" C_COMPILER_FLAGS_DEBUG "" C_COMPILER_FLAGS_COMMON "" C_COMPILER_FLAGS_INCLUDE "" diff -uNr /usr/ports/net/generic-nqs/files/patch-ab generic-nqs/files/patch-ab --- /usr/ports/net/generic-nqs/files/patch-ab Mon Dec 27 00:46:02 1999 +++ generic-nqs/files/patch-ab Thu Jan 1 01:00:00 1970 @@ -1,20 +0,0 @@ ---- SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh.orig Sat Nov 13 19:32:02 1999 -+++ SETUPDir/GSetup-Scripts/GPort-Scripts/1020-Is-gcc.sh Sat Nov 13 19:32:36 1999 -@@ -72,7 +72,7 @@ - F_ECHO_LN "egcs" - - F_DEFINE_STRING GPORT_CC_FLAGS_DEBUG "-Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" -- F_DEFINE_STRING GPORT_CC_FLAGS_OPTIMISE "-O6 -fno-strength-reduce" -+ F_DEFINE_STRING GPORT_CC_FLAGS_OPTIMISE "-O2" - F_DEFINE_STRING GPORT_CC_FLAGS_COMMON "-Wall" - elif [ "$GPORT_HAS_GCC" = 1 ]; then - F_TEST_TYPE BLANK -@@ -80,7 +80,7 @@ - F_ECHO_LN "gcc" - - F_DEFINE_STRING GPORT_CC_FLAGS_DEBUG "-Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" -- F_DEFINE_STRING GPORT_CC_FLAGS_OPTIMISE "-O6 -fno-strength-reduce" -+ F_DEFINE_STRING GPORT_CC_FLAGS_OPTIMISE "-O2" - F_DEFINE_STRING GPORT_CC_FLAGS_COMMON "-Wall" - fi - } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15o6cr-0000jU-00>