From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 30 20:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE1486AA for ; Mon, 30 Dec 2013 20:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8D8B1E6D for ; Mon, 30 Dec 2013 20:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBUKo1ID094322 for ; Mon, 30 Dec 2013 20:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBUKo1um094321; Mon, 30 Dec 2013 20:50:01 GMT (envelope-from gnats) Resent-Date: Mon, 30 Dec 2013 20:50:01 GMT Resent-Message-Id: <201312302050.rBUKo1um094321@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, Xin LI Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAA50681; Mon, 30 Dec 2013 20:48:37 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D67DD1E60; Mon, 30 Dec 2013 20:48:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBUKmbEj094203; Mon, 30 Dec 2013 20:48:37 GMT (envelope-from delphij@freefall.freebsd.org) Received: (from delphij@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBUKmboh094202; Mon, 30 Dec 2013 20:48:37 GMT (envelope-from delphij) Message-Id: <201312302048.rBUKmboh094202@freefall.freebsd.org> Date: Mon, 30 Dec 2013 20:48:37 GMT From: Xin LI To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/185309: [PATCH] Mk/bsd.port.mk: add generic INSTALL_STRIPPED option for use with WITH_DEBUG Cc: portmgr@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Xin LI List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2013 20:50:02 -0000 >Number: 185309 >Category: ports >Synopsis: [PATCH] Mk/bsd.port.mk: add generic INSTALL_STRIPPED option for use with WITH_DEBUG >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Dec 30 20:50:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Xin LI >Release: FreeBSD 11.0-CURRENT amd64 >Organization: iXsystems, Inc. >Environment: System: FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r259961: Fri Dec 27 21:56:39 UTC 2013 peter@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64 >Description: (Note that this patch is from Alfred Perlstein). This proposed bsd.port.mk change adds a new option, INSTALL_STRIPPED, which is intended to be used with WITH_DEBUG, allowing the system to build packages with debugging symbols enabled and kept in build environment but do not install them with the resulting binaries. >How-To-Repeat: >Fix: --- bsd.port.mk.diff begins here --- Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk (revision 337471) +++ Mk/bsd.port.mk (working copy) @@ -1318,7 +1318,7 @@ WITH_DEBUG= yes .endif # Reset value from bsd.own.mk. -.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) +.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) && !defined(INSTALL_STRIPPED) STRIP= #none .endif @@ -1617,7 +1617,9 @@ CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} .endif .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) +.if !defined(INSTALL_STRIPPED) STRIP_CMD= ${TRUE} +.endif DEBUG_FLAGS?= -g CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} .endif --- bsd.port.mk.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: