[blfs] branch trunk updated: use python3 -m zipfile instead of unzip for various packages

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

git pushed a commit to branch trunk
in repository blfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new d458ad22dd use python3 -m zipfile instead of unzip for various packages
d458ad22dd is described below

commit d458ad22ddbd91a8153eed18dc564b8a47793787
Author: Xi Ruoyao <[email protected]>
AuthorDate: Wed Jul 15 15:25:57 2026 +0800

    use python3 -m zipfile instead of unzip for various packages
    
    Follow the LFS sqlite change to avoid dependencies on libarchive.  For
    gucharmap the build system itself uses unzip, so it's not changed.
---
 general/genutils/ibus.xml    |  8 +++-----
 pst/ps/fop.xml               |  8 +-------
 pst/sgml/docbook-3.1-dtd.xml |  1 -
 pst/sgml/docbook-4.5-dtd.xml |  1 -
 pst/xml/docbook-45-xml.xml   |  1 -
 pst/xml/docbook5.xml         | 10 +++++++---
 xincludes/use-unzip.xml      | 17 ++++++++++++-----
 7 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/general/genutils/ibus.xml b/general/genutils/ibus.xml
index ce28ade6fa..335a2825fb 100644
--- a/general/genutils/ibus.xml
+++ b/general/genutils/ibus.xml
@@ -87,9 +87,8 @@
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
       <!-- needed since we're using autogen.sh -->
-      <xref linkend="iso-codes"/>,
-      <xref linkend="libarchive"/> (for extracting the Unicode Character
-      Database), and <xref linkend="vala"/>
+      <xref linkend="iso-codes"/> and
+      <xref linkend="vala"/>
     </para>
 
     <bridgehead renderas="sect4">Recommended</bridgehead>
@@ -121,8 +120,7 @@
       First, install the Unicode Character Database as the &root; user:
     </para>
 
-<screen role="root"><userinput>mkdir -p               /usr/share/unicode/ucd &amp;&amp;
-unzip -o ../UCD.zip -d /usr/share/unicode/ucd</userinput></screen>
+<screen role="root"><userinput>python3 -m zipfile -e ../UCD.zip /usr/share/unicode/ucd</userinput></screen>
 
     <para>
       Fix an issue with deprecated schema entries:
diff --git a/pst/ps/fop.xml b/pst/ps/fop.xml
index cf96910523..c824f5f532 100644
--- a/pst/ps/fop.xml
+++ b/pst/ps/fop.xml
@@ -156,12 +156,6 @@
       <xref linkend="apache-ant"/>
     </para>
 
-    <bridgehead renderas="sect4">Recommended</bridgehead>
-    <para role="recommended">
-      <xref linkend="libarchive"/> (required for the unpacking OFFO hyphenation
-      patterns)
-    </para>
-
     <bridgehead renderas="sect4">Optional</bridgehead>
     <para role="optional">
       <xref linkend="x-window-system"/> (to run tests),
@@ -195,7 +189,7 @@
         the following commands:
       </para>
 
-<screen><userinput>unzip ../offo-hyphenation.zip &amp;&amp;
+<screen><userinput>python3 -m zipfile -e ../offo-hyphenation.zip . &amp;&amp;
 cp offo-hyphenation/hyph/* fop/hyph &amp;&amp;
 rm -rf offo-hyphenation</userinput></screen>
 
diff --git a/pst/sgml/docbook-3.1-dtd.xml b/pst/sgml/docbook-3.1-dtd.xml
index 2f4f1b1eb4..8b938b0dab 100644
--- a/pst/sgml/docbook-3.1-dtd.xml
+++ b/pst/sgml/docbook-3.1-dtd.xml
@@ -74,7 +74,6 @@
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
-      <xref linkend='libarchive'/> and
       <xref linkend="sgml-common"/>
     </para>
 
diff --git a/pst/sgml/docbook-4.5-dtd.xml b/pst/sgml/docbook-4.5-dtd.xml
index 03bc6a23f7..2d120fb642 100644
--- a/pst/sgml/docbook-4.5-dtd.xml
+++ b/pst/sgml/docbook-4.5-dtd.xml
@@ -74,7 +74,6 @@
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
-      <xref linkend="libarchive"/> and
       <xref linkend="sgml-common"/>
     </para>
 
diff --git a/pst/xml/docbook-45-xml.xml b/pst/xml/docbook-45-xml.xml
index 68f3301a20..31526d6909 100644
--- a/pst/xml/docbook-45-xml.xml
+++ b/pst/xml/docbook-45-xml.xml
@@ -82,7 +82,6 @@
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
-      <xref linkend='libarchive'/> and
       <xref linkend="libxml2"/>
     </para>
 
diff --git a/pst/xml/docbook5.xml b/pst/xml/docbook5.xml
index a7628c2fa5..47600a6dba 100644
--- a/pst/xml/docbook5.xml
+++ b/pst/xml/docbook5.xml
@@ -75,16 +75,20 @@
 
     <bridgehead renderas="sect4">Required</bridgehead>
     <para role="required">
-      <xref linkend="libarchive"/> and
       <xref linkend="libxml2"/>
     </para>
-
-
   </sect2>
 
   <sect2 role="installation">
     <title>Installation of DocBook XML DTD and Schemas 5.0</title>
 
+    <note>
+      <para>The package source is distributed in <filename>zip</filename>
+      format and you can use the <command>python3 -m zipfile -e
+      <replaceable>&lt;name&gt;</replaceable>.zip .</command>
+      command to extract it.</para>
+    </note>
+
     <para>
       Install <application>DocBook XML DTD and Schemas</application>
       by running the following commands as the
diff --git a/xincludes/use-unzip.xml b/xincludes/use-unzip.xml
index d6d2dc9dc5..b3234016c6 100644
--- a/xincludes/use-unzip.xml
+++ b/xincludes/use-unzip.xml
@@ -5,9 +5,16 @@
 
 <note>
   <para>The package source is distributed in <filename>zip</filename>
-  format and requires <command>unzip</command> (actually a symlink to
-  <command>bsdunzip</command> from <application>libarchive</application>).
-  You should create a directory and change to that directory before
-  unzipping the file to ease the removal of the source files after the
-  package has been installed.</para>
+  format and you can use the <command>python3 -m zipfile -e
+  <replaceable>&lt;name&gt;</replaceable>.zip
+  <replaceable>&lt;name&gt;</replaceable></command>
+  command to extract it.
+  The last parameter,
+  <parameter><replaceable>&lt;name&gt;</replaceable></parameter>,
+  ensures to extract the content of the zip archive into the directory
+  named <filename
+    class='directory'><replaceable>&lt;name&gt;</replaceable></filename>
+  (it will be automatically created if it does not exist yet),
+  so after the package has been installed the removal of the source files
+  will be easier.</para>
 </note>

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

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