Gentoo Archives: gentoo-osx

From: Kito <kito@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script
Date: Sat, 18 Mar 2006 17:04:57
Message-Id: 57BCC2B7-4232-4AC6-AF8A-E9D3D3905538@gentoo.org
In Reply to: [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script by m h
1 On Mar 17, 2006, at 8:14 PM, m h wrote:
2
3 > Folks
4 >
5 > Here's my script for trying portage. I'm running on RHEL4 and getting
6 > the problems I've sent earlier. If you've got a few minutes try it
7 > out on your computer. Let me know if it works for you ;)
8 >
9 > #!/bin/sh
10 >
11 > export PREFIX=/tmp/Mar17
12 > #this directory has portage and the ebuild tree from the wiki
13 > #unzipped here
14 > #it also has a copy of the normal portage profiles in "normal-
15 > profiles"
16 >
17 > export MYBASE=/home/spike/portage
18 > export TREE=${MYBASE}/portage-alt-prefix
19 > export PORTCODE=${MYBASE}/portage-prefix-2.1.11
20 > GROUP=spike
21 >
22 > cd $PORTCODE
23 > #./configure --prefix=${PREFIX} --with-user=`whoami`
24 > --with-group=${GROUP} --sysconfdir=${PREFIX}/etc
25 > --with-rootuser=`whoami` --with-rootuid=`id -u`
26 > --with-offset-prefix=${PREFIX}
27
28 Why this first configure with the bad ${PREFIX} option?
29
30 > ./configure --prefix=${PREFIX}/usr --with-user=`whoami`
31 > --with-group=${GROUP} --sysconfdir=${PREFIX}/etc
32 > --with-rootuser=`whoami` --with-rootuid=`id -u`
33 > --with-offset-prefix=${PREFIX} --with-wheelgroup=${GROUP}
34 > --with-wheelgid=`id -g`
35 > make
36 > make install
37 >
38 > cd ${PREFIX}
39 > mkdir -p usr/portage
40 > cp -r ${TREE}/* usr/portage
41 >
42 > export PATH=${PREFIX}/usr/bin:${PREFIX}/usr/sbin:${PATH}
43
44 Keep in mind, setting the PATH in the shell is only for your benefit
45 and has no effect on the PATHs available to portage. Be sure to set
46 this using the DEFAULT_PATH var in make.conf or your profile.
47
48 >
49 > mkdir etc
50 > cp ${PORTCODE}/cnf/make.conf etc/
51 >
52
53 Ok, if you are having to manually create ${PREFIX}/etc, the make
54 install target of portage is failing. Can you run make install again
55 and log it and/or watch very carefully what is getting installed and
56 where?
57
58 > #SET PREFIX in make.conf
59 > #PREPEND PREFIX TO A FEW PLACES
60 >
61 > mkdir -p ${PREFIX}/etc/portage
62 >
63
64 This directory should also have been created during make install.
65
66 --Kito
67
68
69
70
71 --
72 gentoo-osx@g.o mailing list

Replies

Subject Author
Re: [gentoo-osx] [PREFIX] portage 2.1.11 bootstraping script m h <sesquile@×××××.com>