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



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

From: Michael MacLeod <damnhogs%hotmail.com@localhost>
To: <gnats-bugs%netbsd.org@localhost>, <pkg-manager%netbsd.org@localhost>,
        <gnats-admin%netbsd.org@localhost>, <pkgsrc-bugs%netbsd.org@localhost>
Cc: 
Subject: RE: pkg/42073: pkg_src makes silly assumptions on gid/uid
Date: Sat, 19 Sep 2009 02:12:04 +0000

  <20090917065502.0E09863C2E4%www.NetBSD.org@localhost>
 MIME-Version: 1.0
 
 --_2688c39f-058c-4e45-aa79-83f3e3214ddd_
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 
 Afternoon=2C
 
 The patch works=2C ofcourse i edited this manually in the past=2C however
 problems still exist when building a package after bootstraping=2C it
 seems to attempt to install using gid root.
 
 Also some other issues=2C such as expecting /usr/bin/expr and not /bin/expr=
  as is the case with this distro.
 
 Ofcourse I can use symbolic links=2C or adding a root group to
 /etc/groups=2C but it seems an oversight not having a more dynamic boot
 strapping process=2C the use of 'which' could go some way=2C to resolving
 this.
 
 
 
 So to be clear after applying the patch=2C install still attempts to use gi=
 d root when building/installing a package.
 
 
 
 Regards
 
 
 
 Michael ML
 
 
 
 
 > From: yyamano%kt.rim.or.jp@localhost
 > To: pkg-manager%netbsd.org@localhost=3B gnats-admin%netbsd.org@localhost=3B 
 > pkgsrc-bugs@netbs=
 d.org=3B damnhogs%hotmail.com@localhost
 > Subject: Re: pkg/42073: pkg_src makes silly assumptions on gid/uid
 > CC:=20
 > Date: Thu=2C 17 Sep 2009 06:55:02 +0000
 >=20
 > The following reply was made to PR pkg/42073=3B it has been noted by GNAT=
 S.
 >=20
 > From: Yuji Yamano <yyamano%kt.rim.or.jp@localhost>
 > To: gnats-bugs%NetBSD.org@localhost=2C obache%netbsd.org@localhost
 > Cc: pkg-manager%netbsd.org@localhost=2C gnats-admin%netbsd.org@localhost=2C 
 > pkgsrc-bugs@netbs=
 d.org=2C
 >  damnhogs%hotmail.com@localhost
 > Subject: Re: pkg/42073: pkg_src makes silly assumptions on gid/uid
 > Date: Wed=2C 16 Sep 2009 23:39:15 -0700 (PDT)
 >=20
 >  On Thu=2C 17 Sep 2009 00:10:05 +0000 (UTC)=2C "OBATA Akio" <obache@netbs=
 d.org> wrote:
 > =20
 >  >  > GID checking from /etc/passwd by bootstrap scripts
 >  > =20
 >  >  id -g -n ${root_user} ?
 > =20
 >  Could you try this patch? I don't have Linux.
 > =20
 >  Index: bootstrap
 >  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 >  RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap=2Cv
 >  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=2C7 +536=2C7 @@
 >      if [ -f /etc/debian_version ]=3B then
 >              DEBIAN=3Dyes
 >      fi
 >  -   root_group=3Droot
 >  +   root_group=3D`id -g -n $root_user`
 >      need_bsd_install=3Dno
 >      need_awk=3Dno
 >      need_sed=3Dno
 > =20
 > =20
 >  -- Yuji Yamano
 >  Peace=2C unity=2C love and having fun!
 > =20
 > =20
                                          =0A=
 _________________________________________________________________=0A=
 With Windows Live=2C you can organise=2C edit=2C and share your photos.=0A=
 http://clk.atdmt.com/UKM/go/134665338/direct/01/=
 
 --_2688c39f-058c-4e45-aa79-83f3e3214ddd_
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <html>
 <head>
 <style><!--
 .hmmessage P
 {
 margin:0px=3B
 padding:0px
 }
 body.hmmessage
 {
 font-size: 10pt=3B
 font-family:Verdana
 }
 --></style>
 </head>
 <body class=3D'hmmessage'>
 Afternoon=2C<br>
 The patch works=2C ofcourse i edited this manually in the past=2C however
 problems still exist when building a package after bootstraping=2C it
 seems to attempt to install using gid root.<br>
 Also some other issues=2C such as expecting /usr/bin/expr and not /bin/expr=
  as is the case with this distro.<br>
 Ofcourse I can use symbolic links=2C or adding a root group to
 /etc/groups=2C but it seems an oversight not having a more dynamic boot
 strapping process=2C the use of 'which' could go some way=2C to resolving
 this.<br>
 <br>
 So to be clear after applying the patch=2C install still attempts to use gi=
 d root when building/installing a package.<br>
 <br>
 Regards<br>
 <br>
 Michael ML<br>
 <br><br><br>&gt=3B From: yyamano%kt.rim.or.jp@localhost<br>&gt=3B To: 
pkg-manager@net=
 bsd.org=3B gnats-admin%netbsd.org@localhost=3B 
pkgsrc-bugs%netbsd.org@localhost=3B damnhogs@hot=
 mail.com<br>&gt=3B Subject: Re: pkg/42073: pkg_src makes silly assumptions =
 on gid/uid<br>&gt=3B CC: <br>&gt=3B Date: Thu=2C 17 Sep 2009 06:55:02 +0000=
 <br>&gt=3B <br>&gt=3B The following reply was made to PR pkg/42073=3B it ha=
 s been noted by GNATS.<br>&gt=3B <br>&gt=3B From: Yuji Yamano &lt=3Byyamano=
 @kt.rim.or.jp&gt=3B<br>&gt=3B To: gnats-bugs%NetBSD.org@localhost=2C 
obache%netbsd.or@localhost=
 g<br>&gt=3B Cc: pkg-manager%netbsd.org@localhost=2C 
gnats-admin%netbsd.org@localhost=2C pkgsrc-=
 bugs%netbsd.org@localhost=2C<br>&gt=3B  
damnhogs%hotmail.com@localhost<br>&gt=3B Subject: Re: p=
 kg/42073: pkg_src makes silly assumptions on gid/uid<br>&gt=3B Date: Wed=2C=
  16 Sep 2009 23:39:15 -0700 (PDT)<br>&gt=3B <br>&gt=3B  On Thu=2C 17 Sep 20=
 09 00:10:05 +0000 (UTC)=2C "OBATA Akio" 
&lt=3Bobache%netbsd.org@localhost&gt=3B wrote=
 :<br>&gt=3B  <br>&gt=3B  &gt=3B  &gt=3B GID checking from /etc/passwd by bo=
 otstrap scripts<br>&gt=3B  &gt=3B  <br>&gt=3B  &gt=3B  id -g -n ${root_user=
 } ?<br>&gt=3B  <br>&gt=3B  Could you try this patch? I don't have Linux.<br=
 >&gt=3B  <br>&gt=3B  Index: bootstrap<br>&gt=3B  =3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D<br>&gt=3B  RCS file: /cvsroot/pkgsrc/bootstrap/=
 bootstrap=2Cv<br>&gt=3B  retrieving revision 1.150<br>&gt=3B  diff -u -r1.1=
 50 bootstrap<br>&gt=3B  --- bootstrap  1 Aug 2009 20:19:37 -0000       
1.150<br>&g=
 t=3B  +++ bootstrap    17 Sep 2009 06:35:32 -0000<br>&gt=3B  @@ -536=2C7 +536=
 =2C7 @@<br>&gt=3B      if [ -f /etc/debian_version ]=3B then<br>&gt=3B         
        DE=
 BIAN=3Dyes<br>&gt=3B           fi<br>&gt=3B  - root_group=3Droot<br>&gt=3B  +  
root=
 _group=3D`id -g -n $root_user`<br>&gt=3B       need_bsd_install=3Dno<br>&gt=3B=
        need_awk=3Dno<br>&gt=3B         need_sed=3Dno<br>&gt=3B  <br>&gt=3B  
<br>&gt=
 =3B  -- Yuji Yamano<br>&gt=3B  Peace=2C unity=2C love and having fun!<br>&g=
 t=3B  <br>&gt=3B  <br>                                           <br /><hr 
/>Beyond Hotmail - see what els=
 e you can do with Windows Live. <a href=3D'http://clk.atdmt.com/UKM/go/1346=
 65375/direct/01/' target=3D'_new'>Find out more.</a></body>
 </html>=
 
 --_2688c39f-058c-4e45-aa79-83f3e3214ddd_--
 


Home | Main Index | Thread Index | Old Index