From owner-freebsd-ports Sun Jan 19 4:17:35 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C18B837B405 for ; Sun, 19 Jan 2003 04:17:26 -0800 (PST) Received: from void.xpert.com (smtp.xpert.com [199.203.132.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7142043F13 for ; Sun, 19 Jan 2003 04:17:25 -0800 (PST) (envelope-from Yonatan@xpert.com) Received: from exchange.xpert.com ([199.203.132.135]) by void.xpert.com with esmtp (Exim 3.22 #1) id 18aBda-0000C5-00 for freebsd-ports@FreeBSD.ORG; Sun, 19 Jan 2003 11:21:06 +0200 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: using "strip" in Makefile X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Sun, 19 Jan 2003 11:22:23 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: using "strip" in Makefile Thread-Index: AcK/muIADSN8w6gzRaO8n8Dv9YpEUQAAIqqQ From: "Yonatan Bokovza" To: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > -----Original Message----- > From: Adam Weinberger [mailto:adamw@FreeBSD.ORG] > Sent: Sunday, January 19, 2003 11:17 > To: Yonatan Bokovza > Cc: freebsd-ports@FreeBSD.ORG > Subject: Re: using "strip" in Makefile >=20 >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handb > ook/porting-dads.html#DADS-STRIP >=20 > # Adam >=20 >=20 > >> (01.19.2003 @ 0103 PST): Yonatan Bokovza said, in 0.6K: << > > hi all, > > I've recently ported some apps, and I'm working on > > more. Where I needed to strip files after installation > > I prefered using security/nmap 's way instead of patching > > the port's Makefile: > >=20 > > .if !target(post-install) && (${PORTNAME} =3D=3D "nmap") > > post-install: > > @strip ${PREFIX}/bin/nmap > > .endif > >=20 > > According to Mk/bsd.port.mk I should use ${STRIP_CMD}, > > but a short find+grep exposes more than 400 occurances of > > "strip" in ports Makefiles. > > What is the correct way? > >=20 Great. Now which is legal, and which is The Right Thing, assuming stripping is needed: strip ${PREFIX}/stuff @strip ${PREFIX}/stuff ${STRIP} ${PREFIX}/stuff ${STRIP_CMD} ${PREFIX}/stuff I'm asking because: $> find /usr/ports -name Makefile\* -exec grep strip {} \; | grep -v ^# = | wc -l 463 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message