Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] [PREFIX] Binary packages experimentation
Date: Wed, 10 Oct 2007 07:54:38
Message-Id: 20071010074424.GD24510@gentoo.org
1 (Sending all this to the ML, because I have the impression that leaving
2 it all in an IRC channel means it goes > /dev/null, whereas probably
3 more people read the ML. IMO we should use the ML more often.)
4
5 Yesterday I started on the creation of binary packages in my ppc-macos
6 install. For this I rebootstrapped with a long prefix, I will shortly
7 explain why.
8
9 I want to try to use these binary packages to aid bootstrapping, and to
10 make things like obtaining ghc easier. (Compiling ghc can only be done
11 if you already have a ghc installed ... :( ) Thanks to the Portage
12 devs, Portage has some binhost stuff built-in which should allow you to
13 easily retrieve packages from an external website. The net-result would
14 be to just only once compile gcc (if you care enough about it), instead
15 of at least twice, as it is now.
16
17 Thanks to patrick (bonsaikitten @irc.freenode.net) we got some gigs of
18 storage on a server with a decent (fast) internet connection, which soon
19 is supposed to pop up as prefix.gentooexperimental.org.
20 While it sounds like this is a Gentoo thing, unfortunately it is not.
21 However, it is the only way for now to try this stuff out, as binary
22 packages require quite some storage/bandwidth which Gentoo Infra doesn't
23 have for us. If these binary packages work out, hopefully eventually we
24 will be able to have our stuff on Gentoo hosted infrastructure.
25
26
27 As for the binary packages; Gentoo Prefix Portage (tm) is equipped with
28 a small (but horribly ugly) hack to transform a binary package from
29 prefix A into prefix B. It effectively changes all occurrences of A
30 into B in such a way that this also works in binary code. Some padding
31 is applied to make sure the file-offsets are kept the same. However,
32 this means that a package can never be changed to work in a prefix that
33 is as string longer than the prefix that it was made with. For this
34 reason I am bootstrapping in a ridiculously long prefix (106 chars) such
35 that most people will be able to use these packages, because most people
36 have a simple prefix, like /Users/you/Gentoo.
37
38
39 --
40 Fabian Groffen
41 Gentoo on a different level
42 --
43 gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] [PREFIX] Binary packages experimentation Nathan <nathan.stocks@×××××.com>