pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40691: wrapper.sh of pkgtools/pkg_alternatives should use /usr/xpg4/bin/id on Solaris
>Number: 40691
>Category: pkg
>Synopsis: wrapper.sh of pkgtools/pkg_alternatives should use
>/usr/xpg4/bin/id on Solaris
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 19 16:00:00 +0000 2009
>Originator: KAWAKUBO Hiroshi
>Release: pkgsrc-current on Solaris 10
>Organization:
>Environment:
SunOS XXX 5.10 Generic_137138-09 i86pc i386 i86pc
>Description:
wrapper.sh of pkg_alternatives always prints the following error message on
Solaris:
id: illegal option -- u
Usage: id [-ap] [user]
>How-To-Repeat:
>Fix:
The following quick fix works fine for me.
--- wrapper.sh.orig 2005-01-25 13:00:46.000000000 +0000
+++ wrapper.sh
@@ -39,7 +39,16 @@
exit 1
fi
-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
userfile=
else
userfile=~/.pkg_alternatives/${wrapper}
Home |
Main Index |
Thread Index |
Old Index