[jhalfs] 04/04: compound packages: some subpackages are not built

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

git pushed a commit to branch ablfs-more
in repository jhalfs.

commit d4a689157b4c6b9cef775ea176738e6b39a638fc
Author: Pierre Labastie <[email protected]>
AuthorDate: Tue Oct 31 19:22:43 2023 +0100

    compound packages: some subpackages are not built
    
    some subpackage names contain digits (for example libX11), but
    we test that the tarball name with digits replaced with "X"
    contain $package-X. The problem is that the digits have been
    replaced in the whole tarball name, and don't match $package.
    So translate
    $package too. Note that there is no problem if some
    packages have names only differing with digits, since
    we are sure that the tarball name contain "$package-".
    We just want to rule out the case when what comes after
    $package- is not a version string.
---
 BLFS/xsl/make_book.xsl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/BLFS/xsl/make_book.xsl b/BLFS/xsl/make_book.xsl
index 00c491c..960627a 100644
--- a/BLFS/xsl/make_book.xsl
+++ b/BLFS/xsl/make_book.xsl
@@ -516,9 +516,11 @@
          and kwallet-pam in plasma. So we may arrive here with
          package=kwallet and tarball=kwallet-pam-(version).tar.xz.
          We should not continue in this case. For checking, transform
-         digits into X, and check that package-X occurs in tarball.-->
-    <xsl:if test="contains(translate($tarball,'0123456789','XXXXXXXXXX'),
-                           concat($package,'-X'))">
+         digits into X, and check that package-X occurs in tarball. We
+         have to translate package too, since it may contain digits.-->
+    <xsl:if test=
+        "contains(translate($tarball,'0123456789','XXXXXXXXXX'),
+                  concat(translate($package,'0123456789','XXXXXXXXXX'),'-X'))">
       <xsl:variable name="md5sum">
         <xsl:call-template name="md5sum">
           <xsl:with-param name="package" select="concat(' ',$package,'-')"/>

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

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
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.