NetBSD Problem Report #22234

Received: (qmail 16682 invoked by uid 605); 23 Jul 2003 12:51:40 -0000
Message-Id: <20030723125139.DDED011152@narn.netbsd.org>
Date: Wed, 23 Jul 2003 12:51:39 +0000 (UTC)
From: jonathan@perkin.org.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Fix security/skey installation permissions
X-Send-Pr-Version: www-1.0

>Number:         22234
>Category:       pkg
>Synopsis:       Fix security/skey installation permissions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 23 12:52:00 +0000 2003
>Closed-Date:    Wed Jul 23 14:35:33 +0000 2003
>Last-Modified:  Wed Jul 23 16:05:00 +0000 2003
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
security/skey defines it's own INSTALL_* stuff, which doesn't pick up
either pkgsrc defaults or a local override.
>How-To-Repeat:
--<jonp@build0>-</home/jonp/src/pkgsrc/security/skey>--
-% bmake package
[...]
/usr/ucb/install -c -o jonp -g inet -d /home/jonp/pkg/lib
[Wrong permissions, should leave them as per mtree setup]
/usr/ccs/bin/sparcv9/strip: /home/jonp/pkg/bin/skey: cannot open file.
        Permission denied
[Didn't pick up my BINMODE=755 override, so strip(1) borks]

etc
>Fix:
http://www.perkin.org.uk/projects/netbsd/skey.patch

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/skey/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    2002/07/26 09:10:06     1.1.1.1
+++ distinfo    2003/07/23 12:48:26
@@ -2,3 +2,4 @@

 SHA1 (skey-1.1.5.tar.bz2) = d55fb286098900cdf3eb6b174a720a06c722312a
 Size (skey-1.1.5.tar.bz2) = 61911 bytes
+SHA1 (patch-aa) = cb0447f064ca68e8e366d2976dca3f74dd9421e7
--- /dev/null   Wed Jul 23 09:59:45 2003
+++ patches/patch-aa    Wed Jul 23 13:44:17 2003
@@ -1,0 +1,34 @@
+$NetBSD$
+
+--- Makefile.in.orig   Thu May 10 17:10:49 2001
++++ Makefile.in        Wed Jul 23 12:31:50 2003
+@@ -18,10 +18,10 @@
+ AR=@AR@
+ RANLIB=@RANLIB@
+ INSTALL=@INSTALL@
+-INSTALL_PROGRAM=${INSTALL} -c -s -m 555
+-INSTALL_MAN=${INSTALL} -c -m 444
+-INSTALL_SCRIPT=${INSTALL} -c -m 555
+-INSTALL_DATA=${INSTALL} -c -m 444
++INSTALL_PROGRAM=@INSTALL_PROGRAM@
++INSTALL_MAN=@INSTALL_DATA@
++INSTALL_SCRIPT=@INSTALL_SCRIPT@
++INSTALL_DATA=@INSTALL_DATA@
+ PERL=@PERL@
+ SENDMAIL=@SENDMAIL@
+ TOUCH=@TOUCH@
+@@ -88,14 +88,6 @@
+       done
+ 
+ install: ${TARGETS}
+-      $(INSTALL) -d $(DESTDIR)$(bindir)
+-      $(INSTALL) -d $(DESTDIR)$(libdir)
+-      $(INSTALL) -d $(DESTDIR)$(mandir)
+-      $(INSTALL) -d $(DESTDIR)$(etcdir)
+-      $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
+-      $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
+-      $(INSTALL) -d $(DESTDIR)$(includedir)
+-      $(INSTALL) -d $(DESTDIR)$(sysconfdir)
+       ${INSTALL_DATA} libskey.a $(DESTDIR)$(libdir)
+       ${INSTALL_DATA} ${HDRS} $(DESTDIR)$(includedir)
+       @for target in ${TARGETS}; do \
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jmmv 
State-Changed-When: Wed Jul 23 14:34:49 UTC 2003 
State-Changed-Why:  
Patch applied, thanks. 

From: Julio Merino <jmmv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22234 CVS commit: pkgsrc/security/skey
Date: Wed, 23 Jul 2003 14:34:30 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jmmv
 Date:		Wed Jul 23 14:34:29 UTC 2003

 Modified Files:
 	pkgsrc/security/skey: distinfo
 Added Files:
 	pkgsrc/security/skey/patches: patch-aa

 Log Message:
 Fix installation permissions using the right install commands.  Also avoid
 making some directories that are automatically created by mtree.
 Patch provided in PR pkg/22234 by Jonathan Perkin.


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/security/skey/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/security/skey/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22234 CVS commit: pkgsrc/security/skey
Date: Wed, 23 Jul 2003 16:03:58 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Wed Jul 23 16:03:57 UTC 2003

 Modified Files:
 	pkgsrc/security/skey: Makefile distinfo
 	pkgsrc/security/skey/patches: patch-aa
 Added Files:
 	pkgsrc/security/skey/patches: patch-ab

 Log Message:
 Better INSTALL_* fix for PR pkg/22234 by Jonathan Perkin.
 Use buildlink2.
 ONLY_FOR_PLATFORM -> NOT_FOR_PLATFORM (*BSD have skey in base system.)
 Workaround a bug in GCC on sparc64.
 Whitespace.


 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.5 pkgsrc/security/skey/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/security/skey/distinfo
 cvs rdiff -r1.1 -r1.2 pkgsrc/security/skey/patches/patch-aa
 cvs rdiff -r0 -r1.1 pkgsrc/security/skey/patches/patch-ab

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.