Gentoo Archives: gentoo-dev

From: Stefan Jones <cretin@g.o>
To: gentoo-dev <gentoo-dev@g.o>
Cc: gentoo-core <gentoo-core@g.o>
Subject: [gentoo-dev] Re: Prelinking in Gentoo and interactions with portage
Date: Tue, 19 Nov 2002 20:50:21
Message-Id: 1037738984.18870.20.camel@localhost
In Reply to: Re: [gentoo-dev] Prelinking in Gentoo and interactions with portage by Stefan Jones
1 patch: http://cvs.gentoo.org/~cretin/portage-prelink.patch
2 diffed against the latest portage.py
3
4 I think the patch included here is close to the final product, or at
5 least the principles involved. Some of it can still be polished a bit
6 more by the gurus, email me with any ideas plz!
7
8 Prelink features are only enabled if you have prelink in FEATURES in
9 make.conf. You also must have prelink installed at /usr/sbin/prelink
10 (the default location)
11
12 What it does:
13
14 On unmerges it uses prelink to calculate the md5sums.
15
16 On emerge a list of all files installed with the tokens "bin" or "lib"
17 in their path or name is made. (ie /bin/ls or /opt/something/bin/ls or
18 libblibble.la ) An attempt is then made to prelink these. This is dirty
19 but safe. Patches welcome for better code.
20
21 How to install:
22
23 patch /usr/lib/python2.2/site-packages/portage.py with this patch
24
25 /bin/cp -f portage.py /usr/lib/python2.2/site-packages/
26
27 /bin/rm -f /usr/lib/python2.2/site-packages/portage.py[co]
28
29 /usr/bin/python -c "import py_compile;
30 py_compile.compile('/usr/lib/python2.2/site-packages/portage.py')"
31 /usr/bin/python -O -c "import py_compile;
32 py_compile.compile('/usr/lib/python2.2/site-packages/portage.py')"
33
34 add prelink to the FEATURES list and emerge prelink
35
36 Have fun!
37
38 --
39 Stefan Jones <cretin@g.o>
40 Gentoo Linux
41
42
43 --
44 gentoo-dev@g.o mailing list