Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2003 11:22:23 +0200
From:      "Yonatan Bokovza" <Yonatan@xpert.com>
To:        <freebsd-ports@FreeBSD.ORG>
Subject:   RE: using "strip" in Makefile
Message-ID:  <C2DC75EEA405354AA9C03EF5CB8CDE080B685D@EXCHANGE.xpert.com>

next in thread | raw e-mail | index | archive | help
> -----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C2DC75EEA405354AA9C03EF5CB8CDE080B685D>