[lfs] branch trunk updated: Drop the min-kernel alignment hack

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <174797432220.14612.306052379586115530@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 a45bbbc39 Drop the min-kernel alignment hack
a45bbbc39 is described below

commit a45bbbc3916a8f2f0edc29697ae28be407c53929
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri May 23 12:23:43 2025 +0800

    Drop the min-kernel alignment hack
    
    Someone is really insistant on "you cannot have any extra whitespace" so
    the hack will just not work.  Let's drop it and simply move the
    --enable-kernel= switches to the last line.
---
 chapter05/glibc.xml |  4 ++--
 chapter08/glibc.xml | 12 ++++++------
 general.ent         |  6 ++----
 3 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index 11d4cfce4..def63edf0 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -90,9 +90,9 @@ cd       build</userinput></screen>
       --prefix=/usr                      \
       --host=$LFS_TGT                    \
       --build=$(../scripts/config.guess) \
-      --enable-kernel=&min-kernel;               \
       --disable-nscd                     \
-      libc_cv_slibdir=/usr/lib</userinput></screen>
+      libc_cv_slibdir=/usr/lib           \
+      --enable-kernel=&min-kernel;</userinput></screen>
 
     <variablelist>
       <title>The meaning of the configure options:</title>
diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml
index fb6b346a0..a7ce1190a 100644
--- a/chapter08/glibc.xml
+++ b/chapter08/glibc.xml
@@ -68,12 +68,12 @@ cd       build</userinput></screen>
 
     <para>Prepare Glibc for compilation:</para>
 
-<screen><userinput remap="configure">../configure --prefix=/usr       \
-             --disable-werror    \
-             --disable-nscd      \
-             --enable-kernel=&min-kernel;\
-             libc_cv_slibdir=/usr/lib \
-             --enable-stack-protector=strong</userinput></screen>
+<screen><userinput remap="configure">../configure --prefix=/usr                   \
+             --disable-werror                \
+             --disable-nscd                  \
+             libc_cv_slibdir=/usr/lib        \
+             --enable-stack-protector=strong \
+             --enable-kernel=&min-kernel;</userinput></screen>
 
     <variablelist>
       <title>The meaning of the configure options:</title>
diff --git a/general.ent b/general.ent
index 27b62c37f..1d2d0ee97 100644
--- a/general.ent
+++ b/general.ent
@@ -96,10 +96,8 @@
 <!ENTITY secadv          "&lfs-root;lfs/advisories/">
 
 <!-- 5.4 EOL is Dec 2025
-     so for LFS 12.5 we may consider moving to 5.10.
-     Keep an extra whitespace here to align the trailing "\" in glibc
-     configure command if y < 10 in x.y.  -->
-<!ENTITY min-kernel      "5.4 ">
+	 so for LFS 12.5 we may consider moving to 5.10. -->
+<!ENTITY min-kernel      "5.4">
 
 <!--
 <!ENTITY patches-rootd   "&lfs-root;patches/lfs/&generic-versiond;/">

-- 
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.