pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34926: benchmarks/lmbench does not build as unprivilegied user



>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
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD cixy.dial.pasteur.fr 4.99.3 NetBSD 4.99.3 (CIXY) #30: Wed Oct 25 
23:44:11 CEST 2006 
njoly%cixy.dial.pasteur.fr@localhost:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY
 i386
Architecture: i386
Machine: i386
>Description:
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

>How-To-Repeat:
cd pkgsrc/benchmarks/lmbench && make
>Fix:
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 @@
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 ${PKGMANDIR}/man8
 
 post-extract:
-       ${INSTALL_SCRIPT} ${PKGSRCDIR}/mk/gnu-config/config.guess 
${WRKSRC}/scripts/gnu-os
+       ${INSTALL} ${PKGSRCDIR}/mk/gnu-config/config.guess 
${WRKSRC}/scripts/gnu-os
 
 post-configure:
        cd ${WRKSRC};                                           \




Home | Main Index | Thread Index | Old Index