From: Stefan Jones <cretin@gentoo.org>
To: gentoo-dev <gentoo-dev@gentoo.org>
Cc: gentoo-core <gentoo-core@gentoo.org>
Subject: [gentoo-dev] Re: Prelinking in Gentoo and interactions with portage
Date: 19 Nov 2002 20:49:44 +0000 [thread overview]
Message-ID: <1037738984.18870.20.camel@localhost> (raw)
In-Reply-To: <1037659175.3053.38.camel@localhost>
patch: http://cvs.gentoo.org/~cretin/portage-prelink.patch
diffed against the latest portage.py
I think the patch included here is close to the final product, or at
least the principles involved. Some of it can still be polished a bit
more by the gurus, email me with any ideas plz!
Prelink features are only enabled if you have prelink in FEATURES in
make.conf. You also must have prelink installed at /usr/sbin/prelink
(the default location)
What it does:
On unmerges it uses prelink to calculate the md5sums.
On emerge a list of all files installed with the tokens "bin" or "lib"
in their path or name is made. (ie /bin/ls or /opt/something/bin/ls or
libblibble.la ) An attempt is then made to prelink these. This is dirty
but safe. Patches welcome for better code.
How to install:
patch /usr/lib/python2.2/site-packages/portage.py with this patch
/bin/cp -f portage.py /usr/lib/python2.2/site-packages/
/bin/rm -f /usr/lib/python2.2/site-packages/portage.py[co]
/usr/bin/python -c "import py_compile;
py_compile.compile('/usr/lib/python2.2/site-packages/portage.py')"
/usr/bin/python -O -c "import py_compile;
py_compile.compile('/usr/lib/python2.2/site-packages/portage.py')"
add prelink to the FEATURES list and emerge prelink
Have fun!
--
Stefan Jones <cretin@gentoo.org>
Gentoo Linux
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2002-11-19 20:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-17 13:50 [gentoo-dev] Prelinking in Gentoo and interactions with portage Stefan Jones
2002-11-17 23:39 ` [gentoo-dev] Re: [gentoo-core] " Daniel Robbins
2002-11-18 0:19 ` Alexander Futasz
2002-11-18 12:21 ` david mattatall
2002-11-20 9:31 ` [gentoo-dev] " Javier Marcet
2002-11-18 14:53 ` [gentoo-dev] " Felipe Ghellar
2002-11-18 17:41 ` David Olsen
2002-11-18 20:31 ` Stefan Jones
2002-11-18 22:39 ` Stefan Jones
2002-11-19 20:49 ` Stefan Jones [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-20 9:55 [gentoo-dev] " stefanajones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1037738984.18870.20.camel@localhost \
--to=cretin@gentoo.org \
--cc=gentoo-core@gentoo.org \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox