1 |
commit: 3a02cd5b17ec26aab0bf0c215523054ab1cc9bc4 |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Sat Jul 2 23:03:43 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Sun Jul 3 17:46:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=3a02cd5b |
7 |
|
8 |
app-arch/libarchive: Remove package |
9 |
|
10 |
Works with libressl-3.5.x and libarchive-3.6.1::gentoo. |
11 |
|
12 |
Signed-off-by: orbea <orbea <AT> riseup.net> |
13 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
14 |
|
15 |
app-arch/libarchive/Manifest | 1 - |
16 |
.../files/libarchive-3.3.3-libressl.patch | 12 -- |
17 |
.../files/libarchive-3.5.0-darwin-strnlen.patch | 27 ---- |
18 |
app-arch/libarchive/libarchive-3.5.1.ebuild | 142 --------------------- |
19 |
app-arch/libarchive/metadata.xml | 40 ------ |
20 |
5 files changed, 222 deletions(-) |
21 |
|
22 |
diff --git a/app-arch/libarchive/Manifest b/app-arch/libarchive/Manifest |
23 |
deleted file mode 100644 |
24 |
index 5a2008c..0000000 |
25 |
--- a/app-arch/libarchive/Manifest |
26 |
+++ /dev/null |
27 |
@@ -1 +0,0 @@ |
28 |
-DIST libarchive-3.5.1.tar.gz 7008338 BLAKE2B 243dfda2bd4582bbc20679328b89aae0c530475c822dcf9ff25c65df2017b8f18bb616142d6ab016ccea4a5aa1b410d46b913c2ee0afefd2fdb1a41cf51585d9 SHA512 08ddd74bef4cef0981739da202879f36cf7ca33a8f6d438724588efe3ab8477f2f1d0cccf7b8ed0bedfc0c8d0cab16ee3ae5c0c6e83b6811bc650d7d7471a996 |
29 |
|
30 |
diff --git a/app-arch/libarchive/files/libarchive-3.3.3-libressl.patch b/app-arch/libarchive/files/libarchive-3.3.3-libressl.patch |
31 |
deleted file mode 100644 |
32 |
index 4d7c0ec..0000000 |
33 |
--- a/app-arch/libarchive/files/libarchive-3.3.3-libressl.patch |
34 |
+++ /dev/null |
35 |
@@ -1,12 +0,0 @@ |
36 |
---- a/libarchive/archive_openssl_evp_private.h |
37 |
-+++ b/libarchive/archive_openssl_evp_private.h |
38 |
-@@ -28,7 +28,8 @@ |
39 |
- #include <openssl/evp.h> |
40 |
- #include <openssl/opensslv.h> |
41 |
- |
42 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000L |
43 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ |
44 |
-+(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) |
45 |
- #include <stdlib.h> /* malloc, free */ |
46 |
- #include <string.h> /* memset */ |
47 |
- static inline EVP_MD_CTX *EVP_MD_CTX_new(void) |
48 |
|
49 |
diff --git a/app-arch/libarchive/files/libarchive-3.5.0-darwin-strnlen.patch b/app-arch/libarchive/files/libarchive-3.5.0-darwin-strnlen.patch |
50 |
deleted file mode 100644 |
51 |
index 8f540e4..0000000 |
52 |
--- a/app-arch/libarchive/files/libarchive-3.5.0-darwin-strnlen.patch |
53 |
+++ /dev/null |
54 |
@@ -1,27 +0,0 @@ |
55 |
-https://github.com/macports/macports-ports/blob/master/archivers/libarchive/files/patch-libarchive-3.5-strnlen.diff |
56 |
- |
57 |
-next release should have a fix for this |
58 |
- |
59 |
---- a/libarchive/archive_read_support_format_mtree.c |
60 |
-+++ b/libarchive/archive_read_support_format_mtree.c |
61 |
-@@ -65,6 +65,20 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_mtree.c 2011 |
62 |
- #define O_CLOEXEC 0 |
63 |
- #endif |
64 |
- |
65 |
-+#ifdef __APPLE__ |
66 |
-+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070 |
67 |
-+static size_t strnlen(const char *s, size_t maxlen) { |
68 |
-+ size_t l = 0; |
69 |
-+ while (l < maxlen && *s) { |
70 |
-+ l++; |
71 |
-+ s++; |
72 |
-+ } |
73 |
-+ return l; |
74 |
-+} |
75 |
-+#endif |
76 |
-+#endif |
77 |
-+ |
78 |
-+ |
79 |
- #define MTREE_HAS_DEVICE 0x0001 |
80 |
- #define MTREE_HAS_FFLAGS 0x0002 |
81 |
- #define MTREE_HAS_GID 0x0004 |
82 |
|
83 |
diff --git a/app-arch/libarchive/libarchive-3.5.1.ebuild b/app-arch/libarchive/libarchive-3.5.1.ebuild |
84 |
deleted file mode 100644 |
85 |
index 6115748..0000000 |
86 |
--- a/app-arch/libarchive/libarchive-3.5.1.ebuild |
87 |
+++ /dev/null |
88 |
@@ -1,142 +0,0 @@ |
89 |
-# Copyright 1999-2021 Gentoo Authors |
90 |
-# Distributed under the terms of the GNU General Public License v2 |
91 |
- |
92 |
-EAPI=7 |
93 |
-inherit libtool multilib-minimal toolchain-funcs |
94 |
- |
95 |
-DESCRIPTION="Multi-format archive and compression library" |
96 |
-HOMEPAGE="https://www.libarchive.org/" |
97 |
-SRC_URI="https://www.libarchive.org/downloads/${P}.tar.gz" |
98 |
- |
99 |
-LICENSE="BSD BSD-2 BSD-4 public-domain" |
100 |
-SLOT="0/13" |
101 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
102 |
-IUSE="acl blake2 +bzip2 +e2fsprogs expat +iconv kernel_linux lz4 +lzma lzo nettle static-libs +threads xattr +zlib zstd" |
103 |
- |
104 |
-RDEPEND=" |
105 |
- acl? ( virtual/acl[${MULTILIB_USEDEP}] ) |
106 |
- blake2? ( app-crypt/libb2[${MULTILIB_USEDEP}] ) |
107 |
- bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) |
108 |
- expat? ( dev-libs/expat[${MULTILIB_USEDEP}] ) |
109 |
- !expat? ( dev-libs/libxml2[${MULTILIB_USEDEP}] ) |
110 |
- iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] ) |
111 |
- kernel_linux? ( |
112 |
- xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
113 |
- ) |
114 |
- dev-libs/openssl:0=[${MULTILIB_USEDEP}] |
115 |
- lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] ) |
116 |
- lzma? ( app-arch/xz-utils[threads=,${MULTILIB_USEDEP}] ) |
117 |
- lzo? ( >=dev-libs/lzo-2[${MULTILIB_USEDEP}] ) |
118 |
- nettle? ( dev-libs/nettle:0=[${MULTILIB_USEDEP}] ) |
119 |
- zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) |
120 |
- zstd? ( app-arch/zstd[${MULTILIB_USEDEP}] )" |
121 |
-DEPEND="${RDEPEND} |
122 |
- kernel_linux? ( |
123 |
- virtual/os-headers |
124 |
- e2fsprogs? ( sys-fs/e2fsprogs ) |
125 |
- )" |
126 |
- |
127 |
-PATCHES=( |
128 |
- "${FILESDIR}"/${PN}-3.3.3-libressl.patch |
129 |
- "${FILESDIR}"/${PN}-3.5.0-darwin-strnlen.patch # drop on next release |
130 |
-) |
131 |
- |
132 |
-src_prepare() { |
133 |
- default |
134 |
- elibtoolize # is required for Solaris sol2_ld linker fix |
135 |
-} |
136 |
- |
137 |
-multilib_src_configure() { |
138 |
- export ac_cv_header_ext2fs_ext2_fs_h=$(usex e2fsprogs) #354923 |
139 |
- |
140 |
- local myconf=( |
141 |
- $(use_enable acl) |
142 |
- $(use_enable static-libs static) |
143 |
- $(use_enable xattr) |
144 |
- $(use_with blake2 libb2) |
145 |
- $(use_with bzip2 bz2lib) |
146 |
- $(use_with expat) |
147 |
- $(use_with !expat xml2) |
148 |
- $(use_with iconv) |
149 |
- $(use_with lz4) |
150 |
- $(use_with lzma) |
151 |
- $(use_with lzo lzo2) |
152 |
- $(use_with nettle) |
153 |
- $(use_with zlib) |
154 |
- $(use_with zstd) |
155 |
- |
156 |
- # Windows-specific |
157 |
- --without-cng |
158 |
- ) |
159 |
- if multilib_is_native_abi ; then |
160 |
- myconf+=( |
161 |
- --enable-bsdcat=$(tc-is-static-only && echo static || echo shared) |
162 |
- --enable-bsdcpio=$(tc-is-static-only && echo static || echo shared) |
163 |
- --enable-bsdtar=$(tc-is-static-only && echo static || echo shared) |
164 |
- ) |
165 |
- else |
166 |
- myconf+=( |
167 |
- --disable-bsdcat |
168 |
- --disable-bsdcpio |
169 |
- --disable-bsdtar |
170 |
- ) |
171 |
- fi |
172 |
- |
173 |
- ECONF_SOURCE="${S}" econf "${myconf[@]}" |
174 |
-} |
175 |
- |
176 |
-multilib_src_compile() { |
177 |
- if multilib_is_native_abi ; then |
178 |
- emake |
179 |
- else |
180 |
- emake libarchive.la |
181 |
- fi |
182 |
-} |
183 |
- |
184 |
-src_test() { |
185 |
- mkdir -p "${T}"/bin || die |
186 |
- # tests fail when lbzip2[symlink] is used in place of ref bunzip2 |
187 |
- ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die |
188 |
- local -x PATH=${T}/bin:${PATH} |
189 |
- multilib-minimal_src_test |
190 |
-} |
191 |
- |
192 |
-multilib_src_test() { |
193 |
- # sandbox is breaking long symlink behavior |
194 |
- local -x SANDBOX_ON=0 |
195 |
- local -x LD_PRELOAD= |
196 |
- # some locales trigger different output that breaks tests |
197 |
- local -x LC_ALL=C |
198 |
- emake check |
199 |
-} |
200 |
- |
201 |
-multilib_src_install() { |
202 |
- if multilib_is_native_abi ; then |
203 |
- emake DESTDIR="${D}" install |
204 |
- |
205 |
- # Create symlinks for FreeBSD |
206 |
- if ! use prefix && [[ ${CHOST} == *-freebsd* ]]; then |
207 |
- # Exclude cat for the time being #589876 |
208 |
- for bin in cpio tar; do |
209 |
- dosym bsd${bin} /usr/bin/${bin} |
210 |
- echo '.so bsd${bin}.1' > "${T}"/${bin}.1 |
211 |
- doman "${T}"/${bin}.1 |
212 |
- done |
213 |
- fi |
214 |
- else |
215 |
- local install_targets=( |
216 |
- install-includeHEADERS |
217 |
- install-libLTLIBRARIES |
218 |
- install-pkgconfigDATA |
219 |
- ) |
220 |
- emake DESTDIR="${D}" "${install_targets[@]}" |
221 |
- fi |
222 |
- |
223 |
- # Libs.private: should be used from libarchive.pc instead |
224 |
- find "${ED}" -type f -name "*.la" -delete || die |
225 |
-} |
226 |
- |
227 |
-multilib_src_install_all() { |
228 |
- cd "${S}" || die |
229 |
- einstalldocs |
230 |
-} |
231 |
|
232 |
diff --git a/app-arch/libarchive/metadata.xml b/app-arch/libarchive/metadata.xml |
233 |
deleted file mode 100644 |
234 |
index 82253c3..0000000 |
235 |
--- a/app-arch/libarchive/metadata.xml |
236 |
+++ /dev/null |
237 |
@@ -1,40 +0,0 @@ |
238 |
-<?xml version="1.0" encoding="UTF-8"?> |
239 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
240 |
-<pkgmetadata> |
241 |
- <maintainer type="person"> |
242 |
- <email>mgorny@g.o</email> |
243 |
- <name>Michał Górny</name> |
244 |
- </maintainer> |
245 |
- <longdescription lang="en"> |
246 |
- C library and command-line tools for reading and writing tar, cpio, zip, ISO, and other archive formats. |
247 |
- </longdescription> |
248 |
- <use> |
249 |
- <flag name="blake2"> |
250 |
- Enable Blake2 hash support via <pkg>app-crypt/libb2</pkg>. |
251 |
- </flag> |
252 |
- <flag name="bzip2"> |
253 |
- Allow accessing bzip2-compressed archives through libbz2 (which |
254 |
- comes with <pkg>app-arch/bzip2</pkg>). This only affects |
255 |
- libarchive's native support: bsdtar will keep using bunzip2 as a |
256 |
- filter if that's not built-in. |
257 |
- </flag> |
258 |
- <flag name="e2fsprogs"> |
259 |
- Use file flags from <pkg>sys-fs/e2fsprogs</pkg> headers instead of <pkg>virtual/os-headers</pkg> headers |
260 |
- </flag> |
261 |
- <flag name="nettle"> |
262 |
- Use <pkg>dev-libs/nettle</pkg> as crypto backend |
263 |
- </flag> |
264 |
- <flag name="zlib"> |
265 |
- Allow accessing gzip-compressed archives through |
266 |
- <pkg>sys-libs/zlib</pkg>. This only affects libarchive's native |
267 |
- support: bsdtar will keep using gunzip as a filter if that's not |
268 |
- built-in. It's also needed for supporting extraction of ZIP |
269 |
- files. |
270 |
- </flag> |
271 |
- </use> |
272 |
- <upstream> |
273 |
- <remote-id type="cpe">cpe:/a:libarchive:libarchive</remote-id> |
274 |
- <remote-id type="github">libarchive/libarchive</remote-id> |
275 |
- <bugs-to>https://github.com/libarchive/libarchive/issues</bugs-to> |
276 |
- </upstream> |
277 |
-</pkgmetadata> |