pkgsrc-Bugs archive

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

Re: pkg/42073: pkg_src makes silly assumptions on gid/uid



On Thu, 17 Sep 2009 00:10:05 +0000 (UTC), "OBATA Akio" 
<obache%netbsd.org@localhost> wrote:

>  > GID checking from /etc/passwd by bootstrap scripts
>  
>  id -g -n ${root_user} ?

Could you try this patch? I don't have Linux.

Index: bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.150
diff -u -r1.150 bootstrap
--- bootstrap   1 Aug 2009 20:19:37 -0000       1.150
+++ bootstrap   17 Sep 2009 06:35:32 -0000
@@ -536,7 +536,7 @@
        if [ -f /etc/debian_version ]; then
                DEBIAN=yes
        fi
-       root_group=root
+       root_group=`id -g -n $root_user`
        need_bsd_install=no
        need_awk=no
        need_sed=no


-- Yuji Yamano
Peace, unity, love and having fun!




Home | Main Index | Thread Index | Old Index