2018-07-13 08:09 -0400, Ryan Marsaw wrote:

> In Chapter 6.6 (Creating Essential Files and Symlinks) some changes were
> made to allow E2fsprogs to build without using environment variables.
> One of these changes was to create symbolic links for blkid, libmount
> and uuid.
> 
> The problem with creating the symlinks is that when the /tools directory
> is removed later on (and/or the user reenters the chroot environment
> without the /tools directory in the PATH) there is now dangling symlinks
> for /usr/include/{blkid,libmount,uuid}, and of course their respective
> header files are now non-existent.
> 
> That in itself doesn't appear to cause issues with LFS, but in BLFS (at
> least for Fontconfig) there is now a complaint about missing headers
> (uuid.h if I'm not mistaken).
> 
> I suggest that, before building util-linux in chapter 6 (but after
> installing e2fsprogs of course) we should remove the symbolic links
> /usr/include/{blkid,libmount,uuid}.  This will allow util-linux to
> install the headers directly to /usr/include.

The symlinks were only created in systemd revision but they are in both
revisions now.  We should also remove them in both revisions.
-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
From 46737b54505937401e06e939140dc1e96d2124d6 Mon Sep 17 00:00:00 2001
From: Xi Ruoyao <[email protected]>
Date: Fri, 13 Jul 2018 21:20:38 +0800
Subject: [PATCH] Remove symlinks in /usr/include for sysv revision

---
 chapter06/util-linux.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml
index 72e7ddf1..6275c710 100644
--- a/chapter06/util-linux.xml
+++ b/chapter06/util-linux.xml
@@ -60,9 +60,9 @@
 <screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E &lt;/E) &lt;=/' -e 's/ne /eq /' \
     -i tests/ts/ipcs/limits2</userinput></screen>
 -->
-    <para revision="systemd">Remove the earlier created symlinks:</para>
+    <para>Remove the earlier created symlinks:</para>
 
-<screen revision="systemd"><userinput remap="pre">rm -vf /usr/include/{blkid,libmount,uuid}</userinput></screen>
+<screen><userinput remap="pre">rm -vf /usr/include/{blkid,libmount,uuid}</userinput></screen>
 
     <para>Prepare Util-linux for compilation:</para>
 
-- 
2.16.2

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to