Opened 11 years ago
Closed 11 years ago
#3443 closed task (fixed)
XZ puts liblzma.{a,la} into /lib
Reported by: | Chris Staub | Owned by: | |
---|---|---|---|
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 , 11 years ago
comment:2 by , 11 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 , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
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.