Subject: pkg/34926: benchmarks/lmbench does not build as unprivilegied user
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/26/2006 21:50:00
>Number:         34926
>Category:       pkg
>Synopsis:       benchmarks/lmbench does not build as unprivilegied user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 26 21:50:00 +0000 2006
>Originator:     Nicolas Joly
>Release:        NetBSD 4.99.3
Institut Pasteur, Paris.
System: NetBSD 4.99.3 NetBSD 4.99.3 (CIXY) #30: Wed Oct 25 23:44:11 CEST 2006 i386
Architecture: i386
Machine: i386
pkgsrc/benchmarks/lmbench does not build as unprivilegied user. Because
`post-extract' target tries to install a script with `${INSTALL_SCRIPT}'
command, this will fail if run as non-root.

njoly@cixy [benchmarks/lmbench]> make
=> Required installed package digest>=20010302: digest-20060826 found
=> Checksum SHA1 OK for lmbench-2alpha11.tgz
=> Checksum RMD160 OK for lmbench-2alpha11.tgz
work -> /local/src/NetBSD/pkgobj/i386/benchmarks/lmbench/work
===> Installing dependencies for lmbench-2.11anb3
=> Required installed package gmake>=3.78: gmake-3.81 found
=> Required installed package perl>=5.0: perl-5.8.8nb3 found
===> Overriding tools for lmbench-2.11anb3
===> Extracting for lmbench-2.11anb3
/usr/bin/install -c -o root -g wheel -m 555 /local/src/NetBSD/pkgsrc/mk/gnu-config/config.guess /local/src/NetBSD/pkgobj/i386/benchmarks/lmbench/work/lmbench-2alpha11/scripts/gnu-os
install: /local/src/NetBSD/pkgobj/i386/benchmarks/lmbench/work/lmbench-2alpha11/scripts/gnu-os: chown/chgrp: Operation not permitted
*** Error code 1

cd pkgsrc/benchmarks/lmbench && make
For now i made the following modification, which fix my problem.

Index: Makefile
RCS file: /cvsroot/pkgsrc/benchmarks/lmbench/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	31 Aug 2006 18:04:08 -0000	1.30
+++ Makefile	26 Oct 2006 21:38:21 -0000
@@ -20,7 +20,7 @@
-	${INSTALL_SCRIPT} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts/gnu-os
+	${INSTALL} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts/gnu-os
 	cd ${WRKSRC};						\