Date: Sat, 25 Sep 2010 12:58:23 +0400 From: Anonymous <swell.k@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/150927: [patch] textproc/mdocml: don't override -g[0-3] in DEBUG_FLAGS/CFLAGS Message-ID: <86k4mamc7k.fsf@gmail.com> Resent-Message-ID: <201009250910.o8P9A2Cg075095@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 150927 >Category: ports >Synopsis: [patch] textproc/mdocml: don't override -g[0-3] in DEBUG_FLAGS/CFLAGS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 25 09:10:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: >Description: While here use only one EXAMPLESDIR in PLIST_SUB. >How-To-Repeat: $ make -V PLIST_SUB EXAMPLESDIR=share/examples/mandoc ... EXAMPLESDIR="share/examples/mdocml" ... $ make WITH_DEBUG= DEBUG_FLAGS=-g3 ... cc -pipe -g3 -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -DVERSION="\"1.10.5\"" -DHAVE_CONFIG_H -c mdoc.c cc -pipe -g3 -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -DVERSION="\"1.10.5\"" -DHAVE_CONFIG_H -c mdoc_macro.c >Fix: --- a.diff begins here --- Index: textproc/mdocml/Makefile =================================================================== RCS file: /a/.cvsup/ports/textproc/mdocml/Makefile,v retrieving revision 1.18 diff -u -p -r1.18 Makefile --- textproc/mdocml/Makefile 29 Jul 2010 21:05:32 -0000 1.18 +++ textproc/mdocml/Makefile 25 Sep 2010 08:46:19 -0000 @@ -17,9 +17,11 @@ COMMENT= mdoc macro compiler MAN1= mandoc.1 MAN7= man.7 mdoc.7 roff.7 mandoc_char.7 -PLIST_SUB+= EXAMPLESDIR=share/examples/mandoc +EXAMPLESDIR_REL=share/examples/mandoc post-patch: - ${REINPLACE_CMD} '/^PREFIX/s/=/?=/' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e '/CFLAGS/s/-g//' \ + -e '/^PREFIX/s/=/?=/' \ + ${WRKSRC}/Makefile .include <bsd.port.mk> --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k4mamc7k.fsf>