The easiest way around this is to add
secpass=2
to the bottom of portage_data.py
Note that the comment in portage_data.py reading:
#Secpass will be set to 1 if the user is root or in the portage group.
is erroneous.  It should say set to 2...

On 12/16/05, m h <[EMAIL PROTECTED]> wrote:
> On 12/16/05, Brian Harring <[EMAIL PROTECTED]> wrote:
> > On Thu, Dec 15, 2005 at 04:35:36PM -0800, m h wrote:
> > > Got around (hacked around) python issue (I have no portage user
> > > currently, only the group).  So in portage_data.py, I override
> > > portage_uid to my userid
> > > portage_uid=os.getuid()
> > > and I'm rolling again.
> > ./configure --help | less # instead
> > there's configurable's for defining uid/gid.  Down the line (repeating
> > myself), if this is mainlined, proper implementation will be created
> > where config can define/adjust uid/gid's to use instead of current
> > hardcoding at install time.
> > ~harring
> >
>
> it looks like Haubi's toolbox is doing the right thing here (setting
> the right configure flags):
> src_build() {
>         echo "ENV:"
>         env
>         echo "MATT"
>         configureflags=
>         case "${PLATFORM}" in
>         SunOS)
>                 XCU_ID=/usr/xpg4/bin/id
>                 ;;
>         *)
>                 XCU_ID=/usr/bin/id
>                 ;;
>         esac
>         if [ -x "${DESTDIR}/bin/bash" ]
>         then
>                 CU_BASH="${DESTDIR}/bin/bash" export CU_BASH
>         fi
>         configureflags="${configureflags} --with-offset-prefix=${DESTROOT}"
>         configureflags="${configureflags} --prefix=${DESTROOT}/usr"
>         configureflags="${configureflags} --with-user=`${XCU_ID} -un`"
>         configureflags="${configureflags} --with-rootuser=`${XCU_ID} -un`"
>         configureflags="${configureflags} --with-group=`${XCU_ID} -gn`"
>         configureflags="${configureflags} --with-wheelgroup=`${XCU_ID} -gn`"
>         gnu_build || die
> }
>
>
> Even if these are set, there is some hardcoded values in portage....
> No biggie.  Just need to edit them...
>
> >
> >
>

-- 
[email protected] mailing list

Reply via email to