From effe07a910c6d737878b3a73715d5442ff4b06a6 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 19 Apr 2020 14:45:08 +0000 Subject: Fix circular deps between util-linux and eudev/systemd: - build util-linux in chapter 5 for both books - move eudev before util-linux in chapter 6 - make utils-linux libs and headers accessible to /usr in "Creating essential ..." - not related, but forgotten at previous commit: make also libfl flex library accessible to /usr git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11817 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/createfiles.xml | 59 +++++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 25 deletions(-) (limited to 'chapter06/createfiles.xml') diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 86e2d55d7..ac2805597 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -43,21 +43,21 @@ ln -sv /tools/bin/{env,install,perl,printf} /usr/bin ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib +ln -sv /tools/lib/libfl.so* /usr/lib -ln -sv bash /bin/sh +ln -sv bash /bin/sh - - - + ln -svf /tools/include/$incdir /usr/include +done + The purpose of each link: @@ -164,30 +164,39 @@ done--> for C++ support in GMP. - - - + - /bin/sh + + + /usr/lib/lib{blkid,fdisk,mount,uuid}.so*, + /usr/include/{blkid,libfdisk,libmount,uuid}, + /usr/lib/pkgconfig/{blkid,fdisk,mount,uuid}.pc + + - Many shell scripts hard-code /bin/sh. + These links and files allow + eudev + systemd to find the + util-linux libraries installed in chapter 5, without creating + wrong references to /tools. The uuid library is also needed for + building a python module. -- cgit v1.2.3-54-g00ecf