Disabling prelink in software builds

Daniel Drake dsd at laptop.org
Tue May 17 14:04:43 EDT 2011


Hi,

Currently, olpc-os-builder prelinks the whole filesystem during the
build process.

Unfortunately this is causing olpc-update to do lots of work, as even
when you prelink the same binary twice, the output changes, e.g.:

[root at dsdfedora bin]# prelink -u /usr/lib/libxml2.so.2
[root at dsdfedora bin]# prelink /usr/lib/libxml2.so.2
[root at dsdfedora bin]# md5sum /usr/lib/libxml2.so.2
8c55293bb31f109c6eff223e05196ede  /usr/lib/libxml2.so.2
[root at dsdfedora bin]# prelink -u /usr/lib/libxml2.so.2
[root at dsdfedora bin]# prelink /usr/lib/libxml2.so.2
[root at dsdfedora bin]# md5sum /usr/lib/libxml2.so.2
41457a029be741d44f54389a1cfa5a7a  /usr/lib/libxml2.so.2

This is one of the reasons that olpc-update doesn't work (runs out of
disk space) between two similar versions of 11.2.0 for XO-1: it has to
duplicate almost all binaries and libraries on the system, even those
that have not otherwise changed.

prelinking supposedly makes binaries start quicker, but in reality a
lot of people argue that the gains are minimal compared to the
headaches (such as this issue) that it creates. Fedora is the only
major distro that does it by default. Relevant discussion:
http://lwn.net/Articles/341244/

Any objections to prelink being disabled?

Daniel



More information about the Devel mailing list