From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 5 16:20: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 09E0310656D7 for ; Sun, 5 Sep 2010 16:20: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 C127D8FC16 for ; Sun, 5 Sep 2010 16:20:01 +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 o85GK1DO007380 for ; Sun, 5 Sep 2010 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o85GK125007379; Sun, 5 Sep 2010 16:20:01 GMT (envelope-from gnats) Resent-Date: Sun, 5 Sep 2010 16:20:01 GMT Resent-Message-Id: <201009051620.o85GK125007379@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, Rene Ladan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4593810656C3 for ; Sun, 5 Sep 2010 16:14:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 292F58FC23 for ; Sun, 5 Sep 2010 16:14:43 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o85GEhlk001628 for ; Sun, 5 Sep 2010 16:14:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o85GEhpw001615; Sun, 5 Sep 2010 16:14:43 GMT (envelope-from nobody) Message-Id: <201009051614.o85GEhpw001615@www.freebsd.org> Date: Sun, 5 Sep 2010 16:14:43 GMT From: Rene Ladan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/150303: [bsd.port.mk] add INSTALL_LIB target 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: Sun, 05 Sep 2010 16:20:02 -0000 >Number: 150303 >Category: ports >Synopsis: [bsd.port.mk] add INSTALL_LIB target >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: Sun Sep 05 16:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Rene Ladan >Release: FreeBSD 9-amd64 >Organization: >Environment: FreeBSD 9.0-CURRENT r211636 >Description: As proposed on the freebsd-ports list on 2010-08-14, add an INSTALL_LIB target to cleanly install a stripped version of libraries. This target is the same as the INSTALL_DATA target, but it also strips the binary. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.644 diff -u -r1.644 bsd.port.mk --- bsd.port.mk 20 Aug 2010 12:15:02 -0000 1.644 +++ bsd.port.mk 5 Sep 2010 16:01:41 -0000 @@ -288,12 +288,12 @@ # settable options. (Setting USE_* in /etc/make.conf is always wrong). # # WITH_DEBUG - If set, debugging flags are added to CFLAGS and the -# binaries don't get stripped by INSTALL_PROGRAM. -# Besides, individual ports might add their specific -# to produce binaries for debugging purposes. -# You can override the debug flags that are passed to -# the compiler by setting DEBUG_FLAGS. It is set to -# "-g" at default. +# binaries don't get stripped by INSTALL_PROGRAM or +# INSTALL_LIB. Besides, individual ports might +# add their specific to produce binaries for debugging +# purposes. You can override the debug flags that are +# passed to the compiler by setting DEBUG_FLAGS. It is +# set to "-g" at default. # # USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for # compression. @@ -612,6 +612,7 @@ # default, also strips them, unless ${STRIP} is # overridden to be the empty string). # INSTALL_KLD - As INSTALL_PROGRAM, but without the STRIP. +# INSTALL_LIB - As INSTALL_DATA, but also strips the file. # INSTALL_SCRIPT # - A command to install executable scripts. # INSTALL_DATA - A command to install sharable data. @@ -2401,6 +2402,8 @@ ${INSTALL} ${COPY} ${STRIP} ${_BINOWNGRP} -m ${BINMODE} INSTALL_KLD= \ ${INSTALL} ${COPY} ${_BINOWNGRP} -m ${BINMODE} +INSTALL_LIB= \ + ${INSTALL} ${COPY} ${STRIP} ${_SHROWNGRP} -m ${SHAREMODE} INSTALL_SCRIPT= \ ${INSTALL} ${COPY} ${_BINOWNGRP} -m ${BINMODE} INSTALL_DATA= \ @@ -2409,6 +2412,7 @@ ${INSTALL} ${COPY} ${_MANOWNGRP} -m ${MANMODE} INSTALL_MACROS= BSD_INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + BSD_INSTALL_LIB="${INSTALL_LIB}" \ BSD_INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ BSD_INSTALL_DATA="${INSTALL_DATA}" \ BSD_INSTALL_MAN="${INSTALL_MAN}" @@ -3757,6 +3761,7 @@ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \ INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_LIB="${INSTALL_LIB}" \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \ >Release-Note: >Audit-Trail: >Unformatted: