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



Afternoon,
The patch works, ofcourse i edited this manually in the past, however problems still exist when building a package after bootstraping, it seems to attempt to install using gid root.
Also some other issues, such as expecting /usr/bin/expr and not /bin/expr as is the case with this distro.
Ofcourse I can use symbolic links, or adding a root group to /etc/groups, but it seems an oversight not having a more dynamic boot strapping process, the use of 'which' could go some way, to resolving this.

So to be clear after applying the patch, install still attempts to use gid root when building/installing a package.

Regards

Michael ML



> From: yyamano%kt.rim.or.jp@localhost
> To: pkg-manager%netbsd.org@localhost; gnats-admin%netbsd.org@localhost; pkgsrc-bugs%netbsd.org@localhost; damnhogs%hotmail.com@localhost
> Subject: Re: pkg/42073: pkg_src makes silly assumptions on gid/uid
> CC:
> Date: Thu, 17 Sep 2009 06:55:02 +0000
>
> The following reply was made to PR pkg/42073; it has been noted by GNATS.
>
> From: Yuji Yamano <yyamano%kt.rim.or.jp@localhost>
> To: gnats-bugs%NetBSD.org@localhost, obache%netbsd.org@localhost
> Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost,
> damnhogs%hotmail.com@localhost
> Subject: Re: pkg/42073: pkg_src makes silly assumptions on gid/uid
> Date: Wed, 16 Sep 2009 23:39:15 -0700 (PDT)
>
> 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!
>
>


Beyond Hotmail - see what else you can do with Windows Live. Find out more.


Home | Main Index | Thread Index | Old Index