skip mismatching check for pages requires the linux tarball

"Zhang Wen" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sun, 31 Aug 2025 17:23:53 +0800
Newsgroups gmane.linux.lfs.automated
Message-ID <CAKjfnjpEyAy8w=1mBbkdqBo0wZcyNOJEDiiJq9b0uq=04Uzpfw@mail.gmail.com>
Since we're using patch tarball for the kernel in LFS, the check just
cannot pass.

-- 
Key fingerprint:
419F 72F3 F3A9 36EE 1B72  B00B C1C3 4BD4 FDA3 362F

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
0001-skip-checking-Mismatch-between-version-and-directory.patch (text/x-patch, 1.1 KB)
From 074bda07e64b7e9bd1a73373d7cf3968e0a21e13 Mon Sep 17 00:00:00 2001
From: Zhang Wen <[email protected]>
Date: Sat, 30 Aug 2025 23:07:44 +0800
Subject: [PATCH] skip checking Mismatch between version and directory name for
 linux

---
 LFS/lfs.xsl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index 905149e..c8ae016 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -1292,7 +1292,13 @@ if [ -d "$PKGDIR" ]; then rm -rf $PKGDIR; fi
 if [ -d "$PKG_DEST" ]; then rm -rf $PKG_DEST; fi
 if [ -d "${PKGDIR%-*}-build" ]; then  rm -rf ${PKGDIR%-*}-build; fi
 </xsl:text>
-      <xsl:if test="$test-mismatch='y'">
+<!-- read the filename of current package -->
+<xsl:variable name="package">
+  <xsl:call-template name="basename">
+    <xsl:with-param name="path" select=".//sect1info/address/text()"/>
+  </xsl:call-template>
+</xsl:variable>
+     <xsl:if test="$test-mismatch='y' and not(starts-with($package, 'linux'))">
         <xsl:text>
 if [ "${PKGDIR%$VERSION}" = "$PKGDIR" ]; then
     echo Mismatch between version and directory name ! Exiting...
-- 
2.50.1