Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] Re: Attempt to use prefix on linux as secondary...
Date: Fri, 16 Dec 2005 19:39:37
Message-Id: e36b84ee0512161139m7ea6ed02hd27d2329aa8b304c@mail.gmail.com
In Reply to: Re: [gentoo-osx] Re: Attempt to use prefix on linux as secondary... by Brian Harring
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

Replies

Subject Author
Re: [gentoo-osx] Re: Attempt to use prefix on linux as secondary... m h <sesquile@×××××.com>