replace p7zip with official 7-zip package

"Zhang Wen" ([email protected] via blfs-dev Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
The p7zip project has not got any update since 2016, while the 7-zip 
project supports running on linux since 2021.
Is there anyone willing to test if the latest 7-zip package can be used 
to replace the p7zip package? I'm personally using the attached patch to 
install the official 7-zip package.

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
0001-add-7zip.patch (text/plain, 5.5 KB)
From 61c6d360b4a67d36bc316c6a1289050e986a229e Mon Sep 17 00:00:00 2001
From: Zhang Wen <[email protected]>
Date: Mon, 3 Jun 2024 11:50:06 +0800
Subject: [PATCH] add 7zip

---
 general/sysutils/official-7zip.xml | 136 +++++++++++++++++++++++++++++
 general/sysutils/sysutils.xml      |   1 +
 packages.ent                       |   1 +
 3 files changed, 138 insertions(+)
 create mode 100644 general/sysutils/official-7zip.xml

diff --git a/general/sysutils/official-7zip.xml b/general/sysutils/official-7zip.xml
new file mode 100644
index 0000000000..dae8a68f9f
--- /dev/null
+++ b/general/sysutils/official-7zip.xml
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+
+  <!ENTITY official-7zip-download-http "https://7-zip.org/a/7z&official-7zip-version;-src.tar.xz">
+  <!ENTITY official-7zip-download-ftp  " ">
+  <!ENTITY official-7zip-md5sum        "310660dea1e78cfd676cf142f8dc247a">
+  <!ENTITY unzip-size          "1.3 MB">
+  <!ENTITY unzip-buildsize     "9 MB">
+  <!ENTITY unzip-time          "less than 0.1 SBU">
+]>
+
+<sect1 id="official-7zip" xreflabel="7Zip-&official-7zip-version;">
+  <?dbhtml filename="official-7zip.html"?>
+
+
+  <title>7zip-&official-7zip-version;</title>
+
+  <indexterm zone="official-7zip">
+    <primary sortas="a-official-7zip">official-7zip</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title>Introduction to 7zip</title>
+
+    <para>
+      The <application>UnZip</application> package contains
+      <filename>ZIP</filename> extraction utilities. These are useful for
+      extracting files from <filename>ZIP</filename> archives.
+      <filename>ZIP</filename> archives are created with
+      <application>PKZIP</application> or <application>Info-ZIP</application>
+      utilities, primarily in a DOS environment.
+    </para>
+
+    &lfs122_checked;
+
+    <caution>
+      <para>
+        The previous version of the <application>UnZip</application>
+        package had some locale related issues. Currently there are no BLFS
+        editors capable of testing these locale issues. Therefore, the
+        locale related information is left on this page, but has not been
+        tested. A more general discussion of these problems can be found in
+        the <xref linkend="locale-assumed-encoding"/> section of the <xref
+        linkend="locale-issues"/> page.
+      </para>
+    </caution>
+
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>
+          Download (HTTP): <ulink url="&official-7zip-download-http;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download (FTP): <ulink url="&official-7zip-download-ftp;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download MD5 sum: &official-7zip-md5sum;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download size: &unzip-size;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated disk space required: &unzip-buildsize;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated build time: &unzip-time;
+        </para>
+      </listitem>
+    </itemizedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of 7zip</title>
+
+    <para>
+      Now compile the package:
+    </para>
+
+<screen><userinput>cd ../CPP/7zip/Bundles/Alone &amp;&amp;
+make -f makefile.gcc</userinput></screen>
+
+    <para>
+      The test suite does not work for target <quote>generic</quote>.
+    </para>
+
+    <para>
+      Now, as the <systemitem class="username">root</systemitem> user:
+    </para>
+
+<screen role="root"><userinput>cp _o/7za /usr/bin/7z</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+      <command>make -f makefile.gcc</command>:
+      This target build 7-zip with gcc.
+    </para>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title>Contents</title>
+
+    <segmentedlist>
+      <segtitle>Installed Programs</segtitle>
+      <segtitle>Installed Libraries</segtitle>
+      <segtitle>Installed Directories</segtitle>
+
+      <seglistitem>
+        <seg>7z</seg>
+        <seg>None</seg>
+        <seg>None</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+</sect1>
diff --git a/general/sysutils/sysutils.xml b/general/sysutils/sysutils.xml
index 7446dd4b6a..acc884dcaa 100644
--- a/general/sysutils/sysutils.xml
+++ b/general/sysutils/sysutils.xml
@@ -63,6 +63,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="unzip.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="upower.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="usbutils.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="official-7zip.xml"/>
 
   <!-- systemd only -->
 <!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="weston.xml"/>-->
diff --git a/packages.ent b/packages.ent
index ad9e851edd..41e3506802 100644
--- a/packages.ent
+++ b/packages.ent
@@ -335,6 +335,7 @@
 <!ENTITY which-version                "2.21">
 <!ENTITY xdotool-version              "3.20211022.1">
 <!ENTITY zip-version                  "3.0">
+<!ENTITY official-7zip-version        "2409">
 
 <!-- Chapter 13 -->
 <!ENTITY autoconf213-version          "2.13">
-- 
2.48.1
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.