source: general/sysutils/p7zip.xml@ cede1f0

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since cede1f0 was 73968556, checked in by Bruce Dubbs <bdubbs@…>, 18 months ago

Fix url for p7zip. Upstream moved it.

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[86b7da48]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[73968556]7 <!ENTITY p7zip-download-http "https://github.com/p7zip-project/p7zip/archive/v&p7zip-version;/p7zip-&p7zip-version;.tar.gz">
[86b7da48]8 <!ENTITY p7zip-download-ftp " ">
[f230dd9]9 <!ENTITY p7zip-md5sum "00acfd6be87848231722d2d53f89e4a5">
10 <!ENTITY p7zip-size "6.5 MB">
11 <!ENTITY p7zip-buildsize "55 MB">
[e8f2aba0]12 <!ENTITY p7zip-time "2.3 SBU (with tests)">
[86b7da48]13]>
14
15<sect1 id="p7zip" xreflabel="p7zip-&p7zip-version;">
16 <?dbhtml filename="p7zip.html"?>
17
18
19 <title>p7zip-&p7zip-version;</title>
20
21 <indexterm zone="p7zip">
22 <primary sortas="a-p7zip">p7zip</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to p7zip</title>
27
28 <para>
29 <application>p7zip</application> is the Unix command-line port of 7-Zip, a
30 file archiver that archives with high compression ratios. It handles 7z,
[e8f2aba0]31 ZIP, GZIP, Brotli, BZIP2, XZ, TAR, APM, ARJ, CAB, CHM, CPIO, CramFS, DEB,
32 DMG, FAT, HFS, ISO, Lizard, LZ5, LZFSE, LZH, LZMA, LZMA2, MBR, MSI, MSLZ,
33 NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z, and Zstd formats.
[86b7da48]34 </para>
35
[ce1dd9df]36 &lfs112_checked;
[86b7da48]37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&p7zip-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&p7zip-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &p7zip-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &p7zip-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &p7zip-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &p7zip-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
[e8f2aba0]72<!-- Applied in 17.03
[a45f297]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing='compact'>
75 <listitem>
76 <para>Required patch: <ulink
77 url="&patch-root;/p7zip-&p7zip-version;-consolidated_fixes-1.patch"/></para>
78 </listitem>
79 </itemizedlist>
[e8f2aba0]80-->
[a45f297]81
[86b7da48]82 <bridgehead renderas="sect3">p7zip Dependencies</bridgehead>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
[6e2eb5cf]86 <ulink url="https://www.wxwidgets.org/">wxWidgets</ulink>
[86b7da48]87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/p7zip"/>
91 </para>
92
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of p7zip</title>
97
[e8f2aba0]98<!-- Applied in 17.03
[a45f297]99 <para>
100 First, update the package for gcc10 and some security issues:
101 </para>
102
103<screen><userinput>patch -Np1 -i ../p7zip-&p7zip-version;-consolidated_fixes-1.patch</userinput></screen>
[e8f2aba0]104-->
[a45f297]105
[1527145]106 <para>
107 First, prevent <application>p7zip</application> from installing
108 compressed manual pages:
109 </para>
110
111<screen><userinput remap="pre">sed '/^gzip/d' -i install.sh</userinput></screen>
112
[3b339ddc]113 <para>
114 Next, fix a security vulnerability:
115 </para>
116
117<screen><userinput remap="pre">sed -i '160a if(_buffer == nullptr || _size == _pos) return E_FAIL;' CPP/7zip/Common/StreamObjects.cpp</userinput></screen>
118
[86b7da48]119 <para>
120 Install <application>p7zip</application> by running the following
121 commands:
122 </para>
123
[589ba74]124<screen><userinput>make all3</userinput></screen>
[86b7da48]125
126 <para>
127 To test the results, issue: <command>make test</command>.
128 </para>
129
130 <para>
131 Now, as the <systemitem class="username">root</systemitem> user:
132 </para>
133
134<!-- dev note: make DEST_DIR=<DESTDIR> install -->
135
136<screen role="root"><userinput>make DEST_HOME=/usr \
137 DEST_MAN=/usr/share/man \
138 DEST_SHARE_DOC=/usr/share/doc/p7zip-&p7zip-version; install</userinput></screen>
139
[b1532549]140 <note>
141 <para>
142 If using DESTDIR techniques, use DEST_DIR instead.
143 </para>
144 </note>
[589ba74]145
[86b7da48]146 </sect2>
147
148 <sect2 role="content">
149 <title>Contents</title>
150
151 <segmentedlist>
152 <segtitle>Installed Programs</segtitle>
153 <segtitle>Installed Libraries</segtitle>
154 <segtitle>Installed Directory</segtitle>
155
156 <seglistitem>
157 <seg>
158 7z, 7za, and 7zr
159 </seg>
160 <seg>
161 None
162 </seg>
163 <seg>
164 /usr/lib/p7zip and /usr/share/doc/p7zip-&p7zip-version;
165 </seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173
174 <varlistentry id="Sevenz">
175 <term><command>7z</command></term>
176 <listitem>
177 <para>
[4c24eb0a]178 is a file archiver utility
[86b7da48]179 </para>
180 <indexterm zone="p7zip Sevenz">
181 <primary sortas="b-7z">7z</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="Sevenza">
187 <term><command>7za</command></term>
188 <listitem>
189 <para>
190 is a stand-alone executable handling less archive formats than
[4c24eb0a]191 <command>7z</command>
[86b7da48]192 </para>
193 <indexterm zone="p7zip Sevenza">
194 <primary sortas="b-7za">7za</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="Sevenzr">
200 <term><command>7zr</command></term>
201 <listitem>
202 <para>
203 is a minimal version of <command>7za</command> that handles only
[4c24eb0a]204 7z archives
[86b7da48]205 </para>
206 <indexterm zone="p7zip Sevenzr">
207 <primary sortas="b-7zr">7zr</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 </variablelist>
213
214 </sect2>
215
216</sect1>
Note: See TracBrowser for help on using the repository browser.