NetBSD Problem Report #14092
Received: (qmail 26906 invoked from network); 29 Sep 2001 02:34:00 -0000
Message-Id: <20010929023528.AD50615@dethstar.pretzelnet.org>
Date: Fri, 28 Sep 2001 21:35:28 -0500 (EST)
From: epg@pretzelnet.org
Reply-To: epg@pretzelnet.org
To: gnats-bugs@gnats.netbsd.org
Subject: [PATCH] STRIP used instead of STRIPFLAG in sysutils/lsof/Makefile
X-Send-Pr-Version: 3.95
>Number: 14092
>Category: pkg
>Synopsis: [PATCH] STRIP used instead of STRIPFLAG in sysutils/lsof/Makefile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 29 02:35:01 +0000 2001
>Closed-Date: Sat Sep 29 06:18:49 +0000 2001
>Last-Modified: Fri Apr 28 21:20:13 +0000 2006
>Originator: Eric Gillespie Jr.
>Release: NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD trantor.pretzelnet.org 1.5.2 NetBSD 1.5.2 (TRANTOR) #0: Sun Sep 23 03:08:13 EST 2001 epg@trantor.pretzelnet.org:/u/src/sys/arch/i386/compile/TRANTOR i386
>Description:
The Makefile for sysutils/lsof contains the following line:
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
If you look at /usr/share/mk/bsd.{README,own.mk,prog.mk,sys.mk} you'll
see that STRIPFLAG is to be used with install and defaults to -s, while
STRIP is to be used as the strip command and defaults to strip. I have
the following in /etc/mk.conf to prevent any binaries from being stripped:
STRIPFLAG=
STRIP=/usr/bin/true
This fails because the lsof Makefile passes ${STRIP} to install instead
of ${STRIPFLAG}
>How-To-Repeat:
Set STRIP and STRIPFLAG in /etc/mk.conf to values similar to the above.
>Fix:
Apply this patch to sysutils/lsof/Makefile:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/lsof/Makefile,v
retrieving revision 1.45
diff -a -u -r1.45 Makefile
--- Makefile 2001/08/21 09:51:56 1.45
+++ Makefile 2001/09/29 02:05:28
@@ -51,7 +51,7 @@
@( cd ${WRKSRC} ; ${ECHO} "y" | ./Inventory || exit 1 )
do-install:
- ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
+ ${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} -m 2755 ${REAL_GROUP} \
${WRKSRC}/lsof ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/lsof.man ${PREFIX}/man/man1/lsof.1
@${INSTALL_DATA_DIR} ${PREFIX}/share/lsof
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Fri Sep 28 23:18:29 PDT 2001
State-Changed-Why:
I've committed your fix. Thanks.
>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.