From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 25 09:10:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E05361065674 for ; Sat, 25 Sep 2010 09:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A25008FC18 for ; Sat, 25 Sep 2010 09:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8P9A2Nr075096 for ; Sat, 25 Sep 2010 09:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8P9A2Cg075095; Sat, 25 Sep 2010 09:10:02 GMT (envelope-from gnats) Resent-Date: Sat, 25 Sep 2010 09:10:02 GMT Resent-Message-Id: <201009250910.o8P9A2Cg075095@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A630D106566C for ; Sat, 25 Sep 2010 09:05:12 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 5E7AD8FC0A for ; Sat, 25 Sep 2010 09:05:12 +0000 (UTC) Received: by qyk31 with SMTP id 31so2569205qyk.13 for ; Sat, 25 Sep 2010 02:05:11 -0700 (PDT) Received: by 10.229.233.10 with SMTP id jw10mr3394748qcb.110.1285405511718; Sat, 25 Sep 2010 02:05:11 -0700 (PDT) Received: from localhost ([78.47.29.82]) by mx.google.com with ESMTPS id l13sm3493973qck.19.2010.09.25.02.05.08 (version=SSLv3 cipher=RC4-MD5); Sat, 25 Sep 2010 02:05:11 -0700 (PDT) Message-Id: <86k4mamc7k.fsf@gmail.com> Date: Sat, 25 Sep 2010 12:58:23 +0400 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/150927: [patch] textproc/mdocml: don't override -g[0-3] in DEBUG_FLAGS/CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2010 09:10:03 -0000 >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 --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: