Package Management

Alexander E. Patrakov patrakov at gmail.com
Thu Feb 28 19:08:01 PST 2008


Bruce Dubbs wrote:
> dennisjperkins at comcast.net wrote:
> 
>> And wouldn't it make it possible to upgrade the toolchain without rebuilding LFS?
> 
> The toolchain consists of binutils, glibc, and gcc.  There is no problem
>  rebuilding and installing bunutils and gcc any time you want.  glibc is
> a different problem and probably needs a rebuild of LFS because of the
> critical libraries that it replaces.
> 
> I've never tried it, but it would be an interesting experiment to
> reinstall a new glibc using chapter 6 instructions and doing a reboot.

I did this experiment some time ago.

The problems in the current method arise only if you attempt to upgrade glibc to 
the same version plus a "branch_update" patch, because, during a regular "make 
install", there is a moment at which /lib/ld-linux.so.2 and /lib/libc.so.6 are 
inconsistent with each other (i.e., one is from old glibc, and one from new). 
DESTDIR-style package management solves it by atomically updating both files 
from the same ELF binary.

-- 
Alexander E. Patrakov



More information about the lfs-dev mailing list