Opened 10 years ago

Closed 10 years ago

#3443 closed task (fixed)

XZ puts liblzma.{a,la} into /lib

Reported by: Chris Staub Owned by: bdubbs@…
Priority: normal Milestone: 7.5
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

The LFS installation of XZ uses --libdir=/lib, which also puts liblzma.la and liblzma.a into /lib, but static libraries and libtool files should not be in /lib. Probably the easiest solution is just to let the libraries get installed in /usr/lib, move the shared ones to /lib, and recreate /usr/lib/liblzma.so. In other words, remove the "--libdir=/lib" from configure (which also makes the "pkgconfigdir" parameter on make install unnecessary) and after make install add:

mv -v /usr/lib/liblzma.so.* /lib &&
ln -svf ../../lib/liblzma.so.&xz-version; /usr/lib/liblzma.so

Change History (4)

comment:1 by bdubbs@…, 10 years ago

The files that should be in /lib are liblzma.so.5 and liblzma.so.5.0.5. liblzma.a, liblzma.la, and liblzma.so should be in /usr/lib.

The fix looks proper to me, but for Chapter 6 only.

comment:2 by bdubbs@…, 10 years ago

Slightly off topic but related, it looks like kmod also puts libkmod.so in /lib. That needs to be deleted and replaced with:

ln -svf ../../lib/libkmod.so.2.2.4 /usr/lib/libkmod.so

I don't see a good way to find 2.2.4 as a parameter, so it looks like it needs to be checked manually with each kmod update.

/usr/lib/pkgconfig/libkmod.pc needs to be adjusted too:

sed -i "s@=/lib@=/usr/lib@" /usr/lib/pkgconfig/libkmod.pc

comment:3 by bdubbs@…, 10 years ago

Owner: changed from lfs-book@… to bdubbs@…
Status: newassigned

comment:4 by bdubbs@…, 10 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 10382.

Note: See TracTickets for help on using tickets.