Subject: pkg/28772: INSTALL_UNSTRIPPED getting ignored on Darwin ?
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <adrianp@stindustries.net>
List: pkgsrc-bugs
Date: 12/24/2004 12:03:00
>Number: 28772
>Category: pkg
>Synopsis: INSTALL_UNSTRIPPED getting ignored on Darwin ?
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 24 12:03:00 +0000 2004
>Originator: Adrian Portelli
>Release: n/a
>Organization:
STIndustries
>Environment:
Darwin monty.local 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
I'm going to pick on the python package as that's where i've seen it:
for python24-pth:
$ bmake show-var VARNAME=INSTALL_UNSTRIPPED
yes
$ bmake show-var VARNAME=_STRIPFLAG_INSTALL
-s
$ bmake show-var VARNAME=_STRIPFLAG_CC
-Wl,-x
Now I thought with INSTALL_UNSTRIPPED=yes _STRIPFLAG_INSTALL and _STRIPFLAG_CC were supposed to be set to NULL. Well, that's what I'm assuming from mk/platform/Darwin.mk.
I've got two extra packages in wip that are doing the exact same thing which are unrealircd and ettercap-NG. The programs will compile and install OK on Darwin but as soon as you begin to use them they crap out. Now installing them unstripped fixes the problem. However:
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes
.endif
just gets ignored and the packages are installed stripped and don't work. If I do this:
INSTALL_UNSTRIPPED= yes
To make it the default regardless of platform it works and the binaries are ok. This is clearly not the way to go as stripping the binaries is fine on other platforms e.g. x86.
So it looks like INSTALL_UNSTRIPPED is being ignored.
>How-To-Repeat:
try insalling and running either:
wip/ettercap-NG
wip/unrealircd
without the _STRIPFLAG_* hacks currently in the Makefiles.
>Fix:
You can bypass the issue by either of the following methods on a package-by-package basis:
.if ${OPSYS} == "Darwin"
_STRIPFLAG_CC=
_STRIPFLAG_INSTALL=
.endif
or a global
INSTALL_UNSTRIPPED=yes
These are clearly _not_ long term fixes.