pkgsrc-Bugs archive

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

Re: pkg/39235: Unprivileged pkgsrc bootstrap fails on OpenSolaris 2008.05



The following reply was made to PR pkg/39235; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/39235: Unprivileged pkgsrc bootstrap fails on OpenSolaris
        2008.05
Date: Tue, 29 Jul 2008 12:57:11 +0200

 --ibTvN161/egqYuK8
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Mon, Jul 28, 2008 at 11:20:04PM +0000, Lubomir Sedlacik wrote:
 >  Why don't you just use id -u and compare to 0?  That works everywhere,
 >  since it's mandated by POSIX.  (Granted, on older Solaris releases
 >  you'll need to use /usr/xpg4/bin/id).
 
 Does the attached patch work?
 
 Joerg
 
 --ibTvN161/egqYuK8
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="bootstrap.diff"
 
 Index: bootstrap
 ===================================================================
 RCS file: /data/repo/netbsd/pkgsrc/bootstrap/bootstrap,v
 retrieving revision 1.132
 diff -u -p -r1.132 bootstrap
 --- bootstrap  19 Jun 2008 18:36:51 -0000      1.132
 +++ bootstrap  29 Jul 2008 10:56:23 -0000
 @@ -575,7 +575,8 @@ SunOS)
        need_sed=yes
        need_ksh=yes
        set_opsys=no
 -      whoamiprog=/usr/ucb/whoami
 +      groupsprog="/usr/xpg4/bin/id -gn"
 +      whoamiprog="/usr/xpg4/bin/id -un"
        machine_arch=`uname -p | sed -e 's/i86pc/i386/'`
        check_compiler=yes
        ;;
 
 --ibTvN161/egqYuK8--
 


Home | Main Index | Thread Index | Old Index