pkgsrc-Bugs archive

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

Re: pkg/40691: wrapper.sh of pkgtools/pkg_alternatives should use /usr/xpg4/bin/id on Solaris



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

From: "Jeremy C. Reed" <reed%reedmedia.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/40691: wrapper.sh of pkgtools/pkg_alternatives should use
 /usr/xpg4/bin/id on Solaris
Date: Thu, 19 Feb 2009 10:34:59 -0600 (CST)

 On Thu, 19 Feb 2009, kawakubo.pr%gmail.com@localhost wrote:
 
 > -if [ $(id -un) = __ROOT_USER__ ]; then
 > +case $(uname -s) in
 > +SunOS)
 > +    idprog="/usr/xpg4/bin/id"
 > +    ;;
 > +*)
 > +    idprog="id"
 > +    ;;
 > +esac
 > +
 > +if [ $($idprog -un) = __ROOT_USER__ ]; then
 
 
 Or maybe idprog should be based on pkgsrc's TOOLS_PLATFORM.id
 
 
 
 
 
   Jeremy C. Reed
 
 echo 'EhZ[h ^jjf0%%h[[Zc[Z_W$d[j%Xeeai%ZW[ced#]dk#f[d]k_d%' | \
   tr            '#-~'            '\-.-{'
 


Home | Main Index | Thread Index | Old Index