ports/150927: [patch] textproc/mdocml: don't override -g[0-3] in DEBUG_FLAGS/CFLAGS
Anonymous
swell.k at gmail.com
Sat Sep 25 09:10:03 UTC 2010
>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:
More information about the freebsd-ports-bugs
mailing list