1 |
The easiest way around this is to add |
2 |
secpass=2 |
3 |
to the bottom of portage_data.py |
4 |
Note that the comment in portage_data.py reading: |
5 |
#Secpass will be set to 1 if the user is root or in the portage group. |
6 |
is erroneous. It should say set to 2... |
7 |
|
8 |
On 12/16/05, m h <sesquile@×××××.com> wrote: |
9 |
> On 12/16/05, Brian Harring <ferringb@g.o> wrote: |
10 |
> > On Thu, Dec 15, 2005 at 04:35:36PM -0800, m h wrote: |
11 |
> > > Got around (hacked around) python issue (I have no portage user |
12 |
> > > currently, only the group). So in portage_data.py, I override |
13 |
> > > portage_uid to my userid |
14 |
> > > portage_uid=os.getuid() |
15 |
> > > and I'm rolling again. |
16 |
> > ./configure --help | less # instead |
17 |
> > there's configurable's for defining uid/gid. Down the line (repeating |
18 |
> > myself), if this is mainlined, proper implementation will be created |
19 |
> > where config can define/adjust uid/gid's to use instead of current |
20 |
> > hardcoding at install time. |
21 |
> > ~harring |
22 |
> > |
23 |
> |
24 |
> it looks like Haubi's toolbox is doing the right thing here (setting |
25 |
> the right configure flags): |
26 |
> src_build() { |
27 |
> echo "ENV:" |
28 |
> env |
29 |
> echo "MATT" |
30 |
> configureflags= |
31 |
> case "${PLATFORM}" in |
32 |
> SunOS) |
33 |
> XCU_ID=/usr/xpg4/bin/id |
34 |
> ;; |
35 |
> *) |
36 |
> XCU_ID=/usr/bin/id |
37 |
> ;; |
38 |
> esac |
39 |
> if [ -x "${DESTDIR}/bin/bash" ] |
40 |
> then |
41 |
> CU_BASH="${DESTDIR}/bin/bash" export CU_BASH |
42 |
> fi |
43 |
> configureflags="${configureflags} --with-offset-prefix=${DESTROOT}" |
44 |
> configureflags="${configureflags} --prefix=${DESTROOT}/usr" |
45 |
> configureflags="${configureflags} --with-user=`${XCU_ID} -un`" |
46 |
> configureflags="${configureflags} --with-rootuser=`${XCU_ID} -un`" |
47 |
> configureflags="${configureflags} --with-group=`${XCU_ID} -gn`" |
48 |
> configureflags="${configureflags} --with-wheelgroup=`${XCU_ID} -gn`" |
49 |
> gnu_build || die |
50 |
> } |
51 |
> |
52 |
> |
53 |
> Even if these are set, there is some hardcoded values in portage.... |
54 |
> No biggie. Just need to edit them... |
55 |
> |
56 |
> > |
57 |
> > |
58 |
> |
59 |
|
60 |
-- |
61 |
gentoo-osx@g.o mailing list |