NetBSD Problem Report #4884
Received: (qmail 3396 invoked from network); 24 Jan 1998 22:42:44 -0000
Message-Id: <199801242238.PAA00558@zoo>
Date: Sat, 24 Jan 1998 15:38:55 -0700 (MST)
From: jbernard@tater.mines.edu
Reply-To: jbernard@tater.mines.edu
To: gnats-bugs@gnats.netbsd.org
Subject: /usr/share/mk/{bsd.README,bsd.port.*.mk} use STRIP instead of STRIPFLAG
X-Send-Pr-Version: 3.95
>Number: 4884
>Category: pkg
>Synopsis: /usr/share/mk/{bsd.README,bsd.port.*.mk} use STRIP instead of STRIPFLAG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 24 14:50:01 +0000 1998
>Closed-Date: Mon Feb 09 00:50:11 +0000 1998
>Last-Modified: Mon Feb 09 00:50:54 +0000 1998
>Originator: Jim Bernard
>Release: Jan 24, 1998
>Organization:
Speaking for myself
>Environment:
System: NetBSD zoo 1.3_BETA NetBSD 1.3_BETA (ZOO) #0: Sat Dec 6 09:47:11 MST 1997 local@zoo:/home/local/compile/sys/arch/i386/compile/ZOO i386
>Description:
The symbol STRIP is documented in bsd.README as the flag passed to
install to cause the binary to be stripped. It is used in that
manner in bsd.port.mk and bsd.port.subdir.mk. However, the rest
of the make system uses the name STRIPFLAG instead, so packages are
not installed with the binaries stripped.
>How-To-Repeat:
Install a package and wonder why the binaries aren't stripped.
Add a target to the top-level Makefile that just does
"echo ${INSTALL_PROGRAM}" and note that the strip flag is missing.
Change STRIP to STRIPFLAG in the definition of INSTALL_PROGRAM in
bsd.port.mk and voila, the -s appears.
>Fix:
The fix to bsd.README is trivial.
I checked the /usr/share/mk tree for FreeBSD, and it uses STRIP
throughout, so it would appear that NetBSD was changed at some
point without updating bsd.README, and the import of the FreeBSD
ports system (package system here) did not include adapting to
the change to STRIPFLAG.
So, it will require a bit of care to modify bsd.port.mk and
bsd.port.subdir.mk to maintain compatibility with FreeBSD
(I didn't check OpenBSD, but that may add another constraint).
I'll leave it up to the package-system folks to decide the
best way to accomplish that.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed
State-Changed-By: mikel
State-Changed-When: Tue Feb 3 23:10:13 1998
State-Changed-Why:
I updated bsd.README. I don't know whether it's better to be
consistent with our own .mk files or to retain compatibility with the
other systems using bsd.port*mk, so I'll leave those alone.
State-Changed-From-To: analyzed->closed
State-Changed-By: hubertf
State-Changed-When: Sun Feb 8 16:50:11 PST 1998
State-Changed-Why:
STRIP renamed to STRIPFLAG in all the necessary places.
Thanks for pointing this out!
- Hubert
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.