On 3/18/19 7:21 AM, Thanos Baloukas via lfs-dev wrote:
On 18/3/19 12:58 π.μ., Bruce Dubbs via lfs-dev wrote:
On 3/17/19 5:26 PM, Thanos Baloukas via lfs-dev wrote:
Finally, the links to the util-linux libs that are created are not
removed after the installation. See this post
http://lists.linuxfromscratch.org/pipermail/lfs-dev/2018-December/072609.html
I don't normally build the systemd version of the book, but both books
maintain the same installation order almost until the end of Chapter 6.
I do not see any improper symlinks in /usr/lib/lib{blkid,mount,uuid}*
$ ll /usr/lib/lib{blkid,mount,uuid}*
lrwxrwxrwx 1 root root 27 Feb 7 03:39 /usr/lib/libblkid.so ->
../../lib/libblkid.so.1.1.0
lrwxrwxrwx 1 root root 27 Feb 7 03:39 /usr/lib/libmount.so ->
../../lib/libmount.so.1.1.0
lrwxrwxrwx 1 root root 26 Feb 7 03:39 /usr/lib/libuuid.so ->
../../lib/libuuid.so.1.3.0
I believe that I had some links in /usr/lib pointing to /tools/lib
and I put
rm -f /usr/lib/lib{blkid,mount,uuid}*
at the end of the systemd buildscript.
l /tools_NO_USE/lib/lib{blkid,mount,uuid}*
-rw-r--r-- 1 root root 776742 Φεβ 2 23:29 /tools_NO_USE/lib/libblkid.a
lrwxrwxrwx 1 root root 17 Φεβ 2 23:22
/tools_NO_USE/lib/libblkid.so -> libblkid.so.1.1.0
lrwxrwxrwx 1 root root 17 Φεβ 2 23:22
/tools_NO_USE/lib/libblkid.so.1 -> libblkid.so.1.1.0
-rwxr-xr-x 1 root root 378952 Φεβ 2 23:29
/tools_NO_USE/lib/libblkid.so.1.1.0
-rw-r--r-- 1 root root 742436 Φεβ 2 23:29 /tools_NO_USE/lib/libmount.a
lrwxrwxrwx 1 root root 17 Φεβ 2 23:22
/tools_NO_USE/lib/libmount.so -> libmount.so.1.1.0
lrwxrwxrwx 1 root root 17 Φεβ 2 23:22
/tools_NO_USE/lib/libmount.so.1 -> libmount.so.1.1.0
-rwxr-xr-x 1 root root 417064 Φεβ 2 23:30
/tools_NO_USE/lib/libmount.so.1.1.0
-rw-r--r-- 1 root root 44838 Φεβ 2 23:30 /tools_NO_USE/lib/libuuid.a
lrwxrwxrwx 1 root root 16 Φεβ 2 23:22 /tools_NO_USE/lib/libuuid.so
-> libuuid.so.1.3.0
lrwxrwxrwx 1 root root 16 Φεβ 2 23:22
/tools_NO_USE/lib/libuuid.so.1 -> libuuid.so.1.3.0
-rwxr-xr-x 1 root root 36808 Φεβ 2 23:29
/tools_NO_USE/lib/libuuid.so.1.3.0
All these must had been linked in /usr/lib. There are even static libs
because we do not pass --disable-static in chapter 5.
grep "rm " util-linux-2.33.1-1-build.log
finds rm commands for $DESTDIR/usr/lib/lib{blkid,mount,uuid}.so{,.1}
The real libraries and their soname links are installed in /lib
and the linker names links in /usr/lib. That should leave in /usr/lib
the real names and static libs links to their /tools/lib counterparts.
But maybe I'm missing something.
Are you doing a DESTDIR install? BLFS doesn't support that directly so
there may need to be additional commands needed to support that.
In my log I have commands like:
libtool: install: (cd /usr/lib && { ln -s -f libuuid.so.1.3.0
libuuid.so.1 || { rm -f libuuid.so.1 && ln -s libuuid.so.1.3.0
libuuid.so.1; }; })
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page