[lfs] branch trunk updated: glibc: Fix another flaw in update process regarding "fixed" includes

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <173954120730.25672.13455125610129722740@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 5ba41a882 glibc: Fix another flaw in update process regarding "fixed" includes
5ba41a882 is described below

commit 5ba41a882b936b8858926cd3b29cb20be0bf1e43
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Feb 14 21:52:51 2025 +0800

    glibc: Fix another flaw in update process regarding "fixed" includes
---
 chapter08/glibc.xml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml
index 79137416f..c803d0c07 100644
--- a/chapter08/glibc.xml
+++ b/chapter08/glibc.xml
@@ -322,10 +322,14 @@ install -vm755 dest/usr/lib/*.so.* /usr/lib</userinput></screen>
         When the system has successfully rebooted, if you are running
         a LFS system prior to 12.0 (exclusive) where GCC was not built
         with the <parameter>--disable-fixincludes</parameter> option,
+        move two GCC headers into a better location and
         remove the stale <quote>fixed</quote> copies of the Glibc headers:
       </para>
 
-      <screen role='nodump'><userinput>rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/*</userinput></screen>
+      <screen role='nodump'><userinput>DIR=$(dirname $(gcc -print-libgcc-file-name))
+[ -e $DIR/include/limits.h ] || mv $DIR/include{-fixed,}/limits.h
+[ -e $DIR/include/syslimits.h ] || mv $DIR/include{-fixed,}/syslimits.h
+rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/*</userinput></screen>
     </important>
 
     <para>Install the package:</para>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.