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