From owner-freebsd-ports Sat Nov 27 7:31:48 1999 Delivered-To: freebsd-ports@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id B339614F8F for ; Sat, 27 Nov 1999 07:31:44 -0800 (PST) (envelope-from jedgar@fxp.org) Received: by pawn.primelocation.net (Postfix, from userid 1016) id 957619B38; Sat, 27 Nov 1999 10:31:43 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by pawn.primelocation.net (Postfix) with ESMTP id 89B40BA21; Sat, 27 Nov 1999 10:31:43 -0500 (EST) Date: Sat, 27 Nov 1999 10:31:43 -0500 (EST) From: "Chris D. Faulhaber" X-Sender: cdf.lists@pawn.primelocation.net To: Marc van Woerkom Cc: freebsd-ports@freebsd.org Subject: Re: INSTALL_PROGRAM considered harmful for Linux apps In-Reply-To: <199911271454.PAA00924@oranje.my.domain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 27 Nov 1999, Marc van Woerkom wrote: > In case it is not already in the handbook, could some add a remark > to the INSTALL_PROGRAM makro, or even better think of some way to > make it foolproof? > > Im just testing the q3test port, and got a dozen of reboots due > to the fact that I used INSTALL_PROGRAM for executables and shared > libs: > > This makro will not only install, but also strip the binaries! > I would have to agree. The handbook says (immediately above the INSTALL_* macros descriptions) that binaries should be stripped; however, it fails to let the porter know that INSTALL_PROGRAM will normally strip the binary during install. (See patch below) > Good in case of FreeBSD native stuff, very bad in case of Linux, > because the branding information gets stripped as well BIGBADABOOM! > > I resorted to INSTALL_DATA plus CHMOD u+rx for the meanwhile. > Since it is not a native FreeBSD binary, stripping with with the FreeBSD strip would be bad (as you have seen). In this case, wouldn't INSTALL_SCRIPT be more appropriate since INSTALL_SCRIPT installs, chmods, but doesn't strip... ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one, and always Reality Check Information, Inc. | pointed to someone better. Index: chapter.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO_8859-1/books/handbook/ports/chapter.sgml,v retrieving revision 1.62 diff -u -r1.62 chapter.sgml --- chapter.sgml 1999/11/24 17:38:11 1.62 +++ chapter.sgml 1999/11/27 15:23:16 @@ -3059,7 +3059,10 @@ Strip Binaries Do strip binaries. If the original source already strips the - binaries, fine; otherwise you should add a + binaries, fine; otherwise you should use + INSTALL_PROGRAM if the port's + Makefile has an + install target or add a post-install rule to to it yourself. Here is an example; @@ -3081,8 +3084,8 @@ - INSTALL_PROGRAM is a command to install - binary executables. + INSTALL_PROGRAM is a command to strip + and install binary executables. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message