Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/zlib/, sys-libs/zlib/files/
Date: Sat, 26 Dec 2020 20:15:21
Message-Id: 1609013706.e89817d6af04da266c5de33f536d24843b2ac241.sam@gentoo
1 commit: e89817d6af04da266c5de33f536d24843b2ac241
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 20:15:06 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 20:15:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e89817d6
7
8 sys-libs/zlib: moved to ::gentoo
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-libs/zlib/Manifest | 3 -
13 .../zlib-1.2.11-fix-deflateParams-usage.patch | 67 ----------
14 .../zlib-1.2.11-minizip-drop-crypt-header.patch | 38 ------
15 sys-libs/zlib/metadata.xml | 14 --
16 sys-libs/zlib/zlib-1.2.11-r2.ebuild | 145 ---------------------
17 5 files changed, 267 deletions(-)
18
19 diff --git a/sys-libs/zlib/Manifest b/sys-libs/zlib/Manifest
20 deleted file mode 100644
21 index 8c23d4e6e6..0000000000
22 --- a/sys-libs/zlib/Manifest
23 +++ /dev/null
24 @@ -1,3 +0,0 @@
25 -DIST 1.2.11-gzopen_w.patch 1170 BLAKE2B fe351436716634bd823da8c2811d332327d335d450d89bee85d7713b09dd454fe6aee264b044a41bf3be603aa36d67943ba6c7d8b46470e180e9b639728b5274 SHA512 14cc63a17fbf6afb6c8a8dd0b92df9807b48e0faf09c88f952083f10716ae62be8de2a0e1424b77fb538605b88898b381160521f2872afdda59e12bd27535c5a
26 -DIST 1.2.7-minizip-cygwin.patch 2626 BLAKE2B 885f1fda877c0b783618b163702fb46126b7db572767cd4edb86bd92db1f432c887ef1724e70c8319c26886368dba3a962af5284ec0875c20ec8ad2245fd100a SHA512 e372f1e06311e843eca2092e182c41abb009b5e9880b60292d708e4bc0de5a9e4c43d49b25b0c09df4784bc46a1254472bc5cdbdd8d6c762a9f6a145a555bfe7
27 -DIST zlib-1.2.11.tar.gz 607698 BLAKE2B 6bfc4bca5dcadba8a0d4121a2b3ed0bfe440c261003521862c8e6381f1a6f0a72d3fc037351d30afd7ef321e8e8d2ec817c046ac749f2ca0c97fbdc2f7e840b7 SHA512 73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae
28
29 diff --git a/sys-libs/zlib/files/zlib-1.2.11-fix-deflateParams-usage.patch b/sys-libs/zlib/files/zlib-1.2.11-fix-deflateParams-usage.patch
30 deleted file mode 100644
31 index 18764849b9..0000000000
32 --- a/sys-libs/zlib/files/zlib-1.2.11-fix-deflateParams-usage.patch
33 +++ /dev/null
34 @@ -1,67 +0,0 @@
35 -From f9694097dd69354b03cb8af959094c7f260db0a1 Mon Sep 17 00:00:00 2001
36 -From: Mark Adler <madler@××××××××××××××.edu>
37 -Date: Mon, 16 Jan 2017 09:49:35 -0800
38 -Subject: [PATCH] Permit a deflateParams() parameter change as soon as
39 - possible.
40 -
41 -This commit allows a parameter change even if the input data has
42 -not all been compressed and copied to the application output
43 -buffer, so long as all of the input data has been compressed to
44 -the internal pending output buffer. This also allows an immediate
45 -deflateParams change so long as there have been no deflate calls
46 -since initialization or reset.
47 ----
48 - deflate.c | 6 +++---
49 - zlib.h | 11 ++++++-----
50 - 2 files changed, 9 insertions(+), 8 deletions(-)
51 -
52 -diff --git a/deflate.c b/deflate.c
53 -index b63311a5..20bda4f6 100644
54 ---- a/deflate.c
55 -+++ b/deflate.c
56 -@@ -494,7 +494,7 @@ int ZEXPORT deflateResetKeep (strm)
57 - s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
58 - #endif
59 - adler32(0L, Z_NULL, 0);
60 -- s->last_flush = Z_NO_FLUSH;
61 -+ s->last_flush = -2;
62 -
63 - _tr_init(s);
64 -
65 -@@ -587,12 +587,12 @@ int ZEXPORT deflateParams(strm, level, strategy)
66 - func = configuration_table[s->level].func;
67 -
68 - if ((strategy != s->strategy || func != configuration_table[level].func) &&
69 -- s->high_water) {
70 -+ s->last_flush != -2) {
71 - /* Flush the last buffer: */
72 - int err = deflate(strm, Z_BLOCK);
73 - if (err == Z_STREAM_ERROR)
74 - return err;
75 -- if (strm->avail_out == 0)
76 -+ if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
77 - return Z_BUF_ERROR;
78 - }
79 - if (s->level != level) {
80 -diff --git a/zlib.h b/zlib.h
81 -index 5daf4f28..577d81e3 100644
82 ---- a/zlib.h
83 -+++ b/zlib.h
84 -@@ -712,11 +712,12 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
85 - used to switch between compression and straight copy of the input data, or
86 - to switch to a different kind of input data requiring a different strategy.
87 - If the compression approach (which is a function of the level) or the
88 -- strategy is changed, and if any input has been consumed in a previous
89 -- deflate() call, then the input available so far is compressed with the old
90 -- level and strategy using deflate(strm, Z_BLOCK). There are three approaches
91 -- for the compression levels 0, 1..3, and 4..9 respectively. The new level
92 -- and strategy will take effect at the next call of deflate().
93 -+ strategy is changed, and if there have been any deflate() calls since the
94 -+ state was initialized or reset, then the input available so far is
95 -+ compressed with the old level and strategy using deflate(strm, Z_BLOCK).
96 -+ There are three approaches for the compression levels 0, 1..3, and 4..9
97 -+ respectively. The new level and strategy will take effect at the next call
98 -+ of deflate().
99 -
100 - If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does
101 - not have enough output space to complete, then the parameter change will not
102
103 diff --git a/sys-libs/zlib/files/zlib-1.2.11-minizip-drop-crypt-header.patch b/sys-libs/zlib/files/zlib-1.2.11-minizip-drop-crypt-header.patch
104 deleted file mode 100644
105 index 2e0a93e919..0000000000
106 --- a/sys-libs/zlib/files/zlib-1.2.11-minizip-drop-crypt-header.patch
107 +++ /dev/null
108 @@ -1,38 +0,0 @@
109 -https://bugs.gentoo.org/658536
110 -https://github.com/madler/zlib/pull/229
111 -
112 -From e490ddad3091574a0c2e3b5a66a8fee9a7ab212f Mon Sep 17 00:00:00 2001
113 -From: Pavel Raiskup <praiskup@××××××.com>
114 -Date: Sun, 19 Feb 2017 16:42:12 +0100
115 -Subject: [PATCH] minizip: don't install crypt.h
116 -
117 -People did mistakenly or unintentionally include crypt.h before,
118 -don't install this internal header from now.
119 ----
120 - contrib/minizip/Makefile.am | 4 +++-
121 - 1 file changed, 3 insertions(+), 1 deletion(-)
122 -
123 -diff --git a/contrib/minizip/Makefile.am b/contrib/minizip/Makefile.am
124 -index d343011ebc3b..4f46610238d2 100644
125 ---- a/contrib/minizip/Makefile.am
126 -+++ b/contrib/minizip/Makefile.am
127 -@@ -26,13 +26,15 @@ libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
128 -
129 - minizip_includedir = $(includedir)/minizip
130 - minizip_include_HEADERS = \
131 -- crypt.h \
132 - ioapi.h \
133 - mztools.h \
134 - unzip.h \
135 - zip.h \
136 - ${iowin32_h}
137 -
138 -+noinst_HEADERS = \
139 -+ crypt.h
140 -+
141 - pkgconfigdir = $(libdir)/pkgconfig
142 - pkgconfig_DATA = minizip.pc
143 -
144 ---
145 -2.17.1
146 -
147
148 diff --git a/sys-libs/zlib/metadata.xml b/sys-libs/zlib/metadata.xml
149 deleted file mode 100644
150 index 105b205e9e..0000000000
151 --- a/sys-libs/zlib/metadata.xml
152 +++ /dev/null
153 @@ -1,14 +0,0 @@
154 -<?xml version="1.0" encoding="UTF-8"?>
155 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
156 -<pkgmetadata>
157 -<maintainer type="project">
158 - <email>base-system@g.o</email>
159 - <name>Gentoo Base System</name>
160 -</maintainer>
161 -<use>
162 - <flag name="minizip">include the minizip library for quick and dirty zip extraction</flag>
163 -</use>
164 -<upstream>
165 - <remote-id type="cpe">cpe:/a:gnu:zlib</remote-id>
166 -</upstream>
167 -</pkgmetadata>
168
169 diff --git a/sys-libs/zlib/zlib-1.2.11-r2.ebuild b/sys-libs/zlib/zlib-1.2.11-r2.ebuild
170 deleted file mode 100644
171 index fb506989ef..0000000000
172 --- a/sys-libs/zlib/zlib-1.2.11-r2.ebuild
173 +++ /dev/null
174 @@ -1,145 +0,0 @@
175 -# Copyright 1999-2020 Gentoo Authors
176 -# Distributed under the terms of the GNU General Public License v2
177 -
178 -EAPI="5"
179 -AUTOTOOLS_AUTO_DEPEND="no"
180 -
181 -inherit autotools toolchain-funcs multilib multilib-minimal usr-ldscript
182 -
183 -CYGWINPATCHES=(
184 - "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.11-gzopen_w.patch"
185 - "https://github.com/cygwinports/zlib/raw/22a3462cae33a82ad966ea0a7d6cbe8fc1368fec/1.2.7-minizip-cygwin.patch"
186 -)
187 -
188 -DESCRIPTION="Standard (de)compression library"
189 -HOMEPAGE="https://zlib.net/"
190 -SRC_URI="https://zlib.net/${P}.tar.gz
191 - http://www.gzip.org/zlib/${P}.tar.gz
192 - http://www.zlib.net/current/beta/${P}.tar.gz
193 - elibc_Cygwin? ( ${CYGWINPATCHES[*]} )"
194 -
195 -LICENSE="ZLIB"
196 -SLOT="0/1" # subslot = SONAME
197 -KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
198 -IUSE="minizip static-libs"
199 -
200 -DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )"
201 -RDEPEND="!<dev-libs/libxml2-2.7.7" #309623
202 -
203 -src_prepare() {
204 - epatch "${FILESDIR}"/${PN}-1.2.11-fix-deflateParams-usage.patch
205 - epatch "${FILESDIR}"/${PN}-1.2.11-minizip-drop-crypt-header.patch #658536
206 -
207 - local p
208 - use elibc_Cygwin &&
209 - for p in "${CYGWINPATCHES[@]}"; do
210 - epatch "${DISTDIR}/${p##*/}"
211 - done
212 -
213 - if use minizip ; then
214 - cd contrib/minizip || die
215 - eautoreconf
216 - fi
217 -
218 - case ${CHOST} in
219 - *-cygwin*)
220 - # do not use _wopen, is a mingw symbol only
221 - sed -i -e '/define WIDECHAR/d' "${S}"/gzguts.h
222 - # zlib1.dll is the mingw name, need cygz.dll
223 - # cygz.dll is loaded by toolchain, put into subdir
224 - sed -i -e 's|zlib1.dll|win32/cygz.dll|' win32/Makefile.gcc || die
225 - ;;
226 - esac
227 -
228 - case ${CHOST} in
229 - *-mingw*|mingw*|*-cygwin*)
230 - # uses preconfigured Makefile rather than configure script
231 - multilib_copy_sources
232 - ;;
233 - esac
234 -}
235 -
236 -echoit() { echo "$@"; "$@"; }
237 -
238 -multilib_src_configure() {
239 - case ${CHOST} in
240 - *-mingw*|mingw*|*-cygwin*)
241 - ;;
242 - *) # not an autoconf script, so can't use econf
243 - local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167
244 - echoit "${S}"/configure \
245 - $(tc-is-static-only && echo "--static" || echo "--shared") \
246 - --prefix="${EPREFIX}/usr" \
247 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
248 - ${uname:+--uname=${uname}} \
249 - || die
250 - ;;
251 - esac
252 -
253 - if use minizip ; then
254 - local minizipdir="contrib/minizip"
255 - mkdir -p "${BUILD_DIR}/${minizipdir}" || die
256 - cd ${minizipdir} || die
257 - ECONF_SOURCE="${S}/${minizipdir}" \
258 - econf $(use_enable static-libs static)
259 - fi
260 -}
261 -
262 -multilib_src_compile() {
263 - case ${CHOST} in
264 - *-mingw*|mingw*|*-cygwin*)
265 - emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}-
266 - sed \
267 - -e 's|@prefix@|'"${EPREFIX}"'/usr|g' \
268 - -e 's|@exec_prefix@|${prefix}|g' \
269 - -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
270 - -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \
271 - -e 's|@includedir@|${prefix}/include|g' \
272 - -e 's|@VERSION@|'${PV}'|g' \
273 - zlib.pc.in > zlib.pc || die
274 - ;;
275 - *)
276 - emake
277 - ;;
278 - esac
279 - use minizip && emake -C contrib/minizip
280 -}
281 -
282 -sed_macros() {
283 - # clean up namespace a little #383179
284 - # we do it here so we only have to tweak 2 files
285 - sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die
286 -}
287 -
288 -multilib_src_install() {
289 - case ${CHOST} in
290 - *-mingw*|mingw*|*-cygwin*)
291 - emake -f win32/Makefile.gcc install \
292 - BINARY_PATH="${ED}/usr/bin" \
293 - LIBRARY_PATH="${ED}/usr/$(get_libdir)" \
294 - INCLUDE_PATH="${ED}/usr/include" \
295 - SHARED_MODE=1
296 - # overwrites zlib.pc created from win32/Makefile.gcc #620136
297 - insinto /usr/$(get_libdir)/pkgconfig
298 - doins zlib.pc
299 - ;;
300 -
301 - *)
302 - emake install DESTDIR="${D}" LDCONFIG=:
303 - gen_usr_ldscript -a z
304 - ;;
305 - esac
306 - sed_macros "${ED}"/usr/include/*.h
307 -
308 - if use minizip ; then
309 - emake -C contrib/minizip install DESTDIR="${D}"
310 - sed_macros "${ED}"/usr/include/minizip/*.h
311 - fi
312 -
313 - use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645
314 -}
315 -
316 -multilib_src_install_all() {
317 - dodoc FAQ README ChangeLog doc/*.txt
318 - use minizip && dodoc contrib/minizip/*.txt
319 -}