Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o, Michael Haubenwallner <michael.haubenwallner@×××××××.at>
Subject: [gentoo-osx] Attempt to use prefix on linux as secondary...
Date: Wed, 14 Dec 2005 23:22:08
Message-Id: e36b84ee0512141521m6f32a9begea333483271118d9@mail.gmail.com
1 Kito/others who may be interested--
2
3 This probably belongs in alt-gentoo, but since it seems like half the
4 posts there are flames, I thought I'd post here.
5
6 I've attempted to use Haubi's toolbox with the tarballs (portage and
7 prefixed overlay) provided by Kito to install a prefix version of
8 portage on FC3 (fedora core 3).
9
10 I can't run the emerge command yet (not running as root), but I
11 thought I'd post what I've done since others might find it useful. I
12 can also put this on the wiki if necessary. It'd be nice to have
13 general directions on how to setup a prefixed environment that are
14 specific to any os (mac,linux, etc).
15
16 I'd also like feedback/suggestions. A question I have is if it is ok
17 to just use the /etc directory from a stage1? Do I need anything
18 else?
19
20 ===========Steps for prefix================
21 * download toolsbox from http://dev.gentoo.org/~ferringb/portage/prefix/haubi/
22 * download portage and prefixed overlay from
23 http://dev.gentoo.org/~kito/distfiles/
24 * cd /data1/portage/dec14/toolsbox-4-20050927
25 * export PREFIX=/data1/portage/dec14/prefix
26 * gmake config PREFIX=$PREFIX
27 DISTURL=http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles
28 portage_BUILD
29 * mkdir buildroot/distfiles
30 * cp ../../kito/portage-2.0.53.03.tar.gz buildroot/distfiles/
31 * touch buildroot/portage/portage.fetched.done
32 * change portage/portage.build
33 * change line version to "VERSION=2.0.53.03"
34 * toolsbox will still fail to install portage... FIXME!
35 * gmake portage
36 * wait for a while (3 hours...)
37 * Everything but portage should build... install portage manually
38 *./configure --prefix=/data1/portage/dec14/prefix/usr
39 --with-offset-prefix=/data1/portage/dec14/prefix --with-user=mharrison
40 --with-rootuser=mharrison --with-group=dev --with-wheelgroup=dev
41 * make
42 * make install
43 * cp /etc directory from stage1 (downloaded from gentoo.org) into ${PREFIX}
44 *cp ../../stage/stageUnzipped/etc -r .
45 * ln -s /data1/portage/haubi/secondary-portage-snapshot-20050927/profiles/default-secondary/linux/x86
46 make.profile
47 * copy prefix overlay into /usr/portage
48 * cp -r /data1/portage/kito/prefix-overlay ${PREFIX}/usr/portage
49 * edit etc/make.conf. uncomment ACCEPT_KEYWORDS="~arch"
50
51 ======== end ============
52
53 At this point emerge -av system gives the following:
54 niger:mharrison[1052]
55 /data1/portage/dec14/prefix/usr/lib/portage/bin/emerge -av system
56
57 *** You are not in the portage group. You may experience cache problems
58 *** due to permissions preventing the creation of the on-disk cache.
59 *** Please add this user to the portage group if you wish to use portage.
60
61 Invalid package name in package.provided: virtual/libc
62 Invalid package name in package.provided: virtual/linux-sources
63 Invalid package name in package.provided: virtual/os-headers
64 !!! Problem with sandbox binary. Disabling...
65
66 --- 'profiles/arch.list' is empty or not available. Empty portage tree?
67 emerge: root access required.
68
69 I'll remove the check for root access (since I'm doing a prefixed
70 install that shouldn't matter).
71
72 Also, Haubi, if you are reading this I tried to modify toolsbox to
73 install the 2.0 prefix portage but I get the following:
74 niger:mharrison[1082] gmake portage
75 building portage
76 --prefix=/data1/portage/dec14/prefix/usr
77 --with-offset-prefix=/data1/portage/dec14/prefix --with-user=mharrison
78 --with-rootuser=mharrison --with-group=dev --with-wheelgroup=dev
79 checking build system type... i686-pc-linux-gnu
80 checking host system type... i686-pc-linux-gnu
81 checking target system type... i686-pc-linux-gnu
82 checking for a BSD-compatible install...
83 /data1/portage/dec14/prefix/toolsbox-4-patchespre.20051214/i686-pc-linux-gnu/bin/ginstall
84 -c
85 checking whether build environment is sane... yes
86 checking for gawk... gawk
87 checking whether gmake sets $(MAKE)... yes
88 configure: error: source directory already configured; run "make
89 distclean" there first
90 gmake: *** [/data1/portage/dec14/toolsbox-4-20050927/buildroot/portage/portage.niger.spikesource.com.builded]
91 Error 1
92
93 I've added the line
94 configureflags="${configureflags} --prefix=${PREFIX}/usr
95 --with-offset-prefix=${PREFIX}"
96 (since the 2.0 prefix version requires that) to the src_build section
97 of portage.build, but I don't know what else I need to do to get it to
98 install via toolsbox. Apparently it installed by hand though. Any
99 hints?
100
101 Hopefully this is helpful to other people who want to try prefix on
102 non-mac environments.
103
104 thanks
105
106 matt
107
108 --
109 gentoo-osx@g.o mailing list

Replies