1 |
commit: 5b4c7223f2a6aeb4aaf8d5e54fa312eda4f74f8d |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 28 15:09:36 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 28 15:29:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b4c7223 |
7 |
|
8 |
media-gfx/optipng: Drop old |
9 |
|
10 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
|
13 |
media-gfx/optipng/Manifest | 1 - |
14 |
.../optipng/files/optipng-0.7.5-estonian.patch | 34 ------------- |
15 |
.../files/optipng-0.7.6-cve-2017-1000229.patch | 25 --------- |
16 |
.../files/optipng-0.7.6-cve-2017-16938.patch | 22 -------- |
17 |
media-gfx/optipng/optipng-0.7.6-r2.ebuild | 59 ---------------------- |
18 |
5 files changed, 141 deletions(-) |
19 |
|
20 |
diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest |
21 |
index d0cdec1451f..49b78797095 100644 |
22 |
--- a/media-gfx/optipng/Manifest |
23 |
+++ b/media-gfx/optipng/Manifest |
24 |
@@ -1,2 +1 @@ |
25 |
-DIST optipng-0.7.6.tar.gz 2202237 BLAKE2B f113027ff12f2fc97bd4dc43b8e62f5af8f86e251b43c0f86ffbd59366b329d1fc2a58103aa349cb18fb0c9d2e5f051517439c02aeb44ee435c6fff0c75efb7a SHA512 d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 |
26 |
DIST optipng-0.7.7.tar.gz 2329555 BLAKE2B af3e1c806522282ccbf9325c0b49f61a30d24b8e2db2dd8ec316a312d0dea595cbb6e8b5b38ef5ea90f1efe14244b81f85f88e11e7334fdd4b91b43b6dae8e7d SHA512 c33b7650143ab39944d2c066e07e10273c37024c5bfe7c00475bfb513af96afa081ff388164845d426d3bce624c0282dee574fa150e963f18d3683d821030280 |
27 |
|
28 |
diff --git a/media-gfx/optipng/files/optipng-0.7.5-estonian.patch b/media-gfx/optipng/files/optipng-0.7.5-estonian.patch |
29 |
deleted file mode 100644 |
30 |
index 37a2ca3ec68..00000000000 |
31 |
--- a/media-gfx/optipng/files/optipng-0.7.5-estonian.patch |
32 |
+++ /dev/null |
33 |
@@ -1,34 +0,0 @@ |
34 |
-From 2cf0d7cb7928aac9ec0e21ceaaf09053434a4947 Mon Sep 17 00:00:00 2001 |
35 |
-From: Sebastian Pipping <sebastian@×××××××.org> |
36 |
-Date: Tue, 16 Sep 2014 02:58:45 +0200 |
37 |
-Subject: [PATCH] Fix for Estonian locale support (bug #522446) |
38 |
- |
39 |
---- |
40 |
- configure | 4 ++-- |
41 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
42 |
- |
43 |
-diff --git a/configure b/configure |
44 |
-index 6d2a507..17d4bc1 100755 |
45 |
---- a/configure |
46 |
-+++ b/configure |
47 |
-@@ -256,7 +256,7 @@ then |
48 |
- $sed_preconfig_libpng |
49 |
- s|^AR *=.*|AR = $AR| |
50 |
- s|^ARFLAGS *=.*|ARFLAGS = $ARFLAGS| |
51 |
-- s|^AR_\([A-Z]*\) *=.*|AR_\1 = $AR $ARFLAGS| |
52 |
-+ s|^AR_\([[:upper:]]*\) *=.*|AR_\1 = $AR $ARFLAGS| |
53 |
- " |
54 |
- fi |
55 |
- if test "$RANLIB" |
56 |
-@@ -408,7 +408,7 @@ sed_config=" |
57 |
- s|@LIBPNG_DISTCLEAN_XCMD@|${LIBPNG_DISTCLEAN_XCMD-true}|g |
58 |
- s|@ZLIB_MK@|${ZLIB_MK-Makefile}|g |
59 |
- s|@ZLIB_DISTCLEAN@|${ZLIB_DISTCLEAN-distclean}|g |
60 |
-- s|@[A-Z]*_MK@|Makefile|g |
61 |
-+ s|@[[:upper:]]*_MK@|Makefile|g |
62 |
- s| *\$|| |
63 |
- " |
64 |
- |
65 |
--- |
66 |
-2.1.0 |
67 |
- |
68 |
|
69 |
diff --git a/media-gfx/optipng/files/optipng-0.7.6-cve-2017-1000229.patch b/media-gfx/optipng/files/optipng-0.7.6-cve-2017-1000229.patch |
70 |
deleted file mode 100644 |
71 |
index 19dc3ad0c57..00000000000 |
72 |
--- a/media-gfx/optipng/files/optipng-0.7.6-cve-2017-1000229.patch |
73 |
+++ /dev/null |
74 |
@@ -1,25 +0,0 @@ |
75 |
-From 77ac8e9fd9b2c1aeec3951e2bb50f7cc2c1e92d2 Mon Sep 17 00:00:00 2001 |
76 |
-From: Sebastian Pipping <sebastian@×××××××.org> |
77 |
-Date: Sun, 19 Nov 2017 16:04:26 +0100 |
78 |
-Subject: [PATCH] Prevent integer overflow (bug #65, CVE-2017-1000229) |
79 |
- |
80 |
---- |
81 |
- src/minitiff/tiffread.c | 2 ++ |
82 |
- 1 file changed, 2 insertions(+) |
83 |
- |
84 |
-diff --git a/src/minitiff/tiffread.c b/src/minitiff/tiffread.c |
85 |
-index b4910ec..5f9b376 100644 |
86 |
---- a/src/minitiff/tiffread.c |
87 |
-+++ b/src/minitiff/tiffread.c |
88 |
-@@ -350,6 +350,8 @@ minitiff_read_info(struct minitiff_info *tiff_ptr, FILE *fp) |
89 |
- count = tiff_ptr->strip_offsets_count; |
90 |
- if (count == 0 || count > tiff_ptr->height) |
91 |
- goto err_invalid; |
92 |
-+ if (count > (size_t)-1 / sizeof(long)) |
93 |
-+ goto err_memory; |
94 |
- tiff_ptr->strip_offsets = (long *)malloc(count * sizeof(long)); |
95 |
- if (tiff_ptr->strip_offsets == NULL) |
96 |
- goto err_memory; |
97 |
--- |
98 |
-2.14.2 |
99 |
- |
100 |
|
101 |
diff --git a/media-gfx/optipng/files/optipng-0.7.6-cve-2017-16938.patch b/media-gfx/optipng/files/optipng-0.7.6-cve-2017-16938.patch |
102 |
deleted file mode 100644 |
103 |
index 71edf20cfef..00000000000 |
104 |
--- a/media-gfx/optipng/files/optipng-0.7.6-cve-2017-16938.patch |
105 |
+++ /dev/null |
106 |
@@ -1,22 +0,0 @@ |
107 |
-From e05fb81a20541833a2d62ce08552b18c0920b9a1 Mon Sep 17 00:00:00 2001 |
108 |
-From: Cosmin Truta <ctruta@×××××.com> |
109 |
-Date: Sat, 25 Nov 2017 23:17:46 -0500 |
110 |
-Subject: [PATCH] gifread: Detect indirect circular dependencies in LZW tables |
111 |
- |
112 |
---- |
113 |
- src/gifread/gifread.c | 2 ++ |
114 |
- 1 file changed, 2 insertions(+) |
115 |
- |
116 |
-diff --git a/src/gifread/gifread.c b/src/gifread/gifread.c |
117 |
-index 0123456789abcdef..0123456789abcdef 100644 |
118 |
---- a/src/gifread/gifread.c |
119 |
-+++ b/src/gifread/gifread.c |
120 |
-@@ -499,6 +499,8 @@ static int LZWReadByte(int init_flag, int input_code_size, FILE *stream) |
121 |
- *sp++ = table[1][code]; |
122 |
- if (code == table[0][code]) |
123 |
- GIFError("GIF/LZW error: circular table entry"); |
124 |
-+ if ((size_t)(sp - stack) >= sizeof(stack) / sizeof(stack[0])) |
125 |
-+ GIFError("GIF/LZW error: circular table"); |
126 |
- code = table[0][code]; |
127 |
- } |
128 |
- |
129 |
|
130 |
diff --git a/media-gfx/optipng/optipng-0.7.6-r2.ebuild b/media-gfx/optipng/optipng-0.7.6-r2.ebuild |
131 |
deleted file mode 100644 |
132 |
index 19129f89330..00000000000 |
133 |
--- a/media-gfx/optipng/optipng-0.7.6-r2.ebuild |
134 |
+++ /dev/null |
135 |
@@ -1,59 +0,0 @@ |
136 |
-# Copyright 1999-2019 Gentoo Authors |
137 |
-# Distributed under the terms of the GNU General Public License v2 |
138 |
- |
139 |
-EAPI=6 |
140 |
- |
141 |
-inherit eutils toolchain-funcs |
142 |
- |
143 |
-DESCRIPTION="Compress PNG files without affecting image quality" |
144 |
-HOMEPAGE="http://optipng.sourceforge.net/" |
145 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
146 |
- |
147 |
-LICENSE="ZLIB" |
148 |
-SLOT="0" |
149 |
-KEYWORDS="~alpha amd64 ~arm arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
150 |
-IUSE="" |
151 |
- |
152 |
-RDEPEND="sys-libs/zlib |
153 |
- media-libs/libpng:0" |
154 |
-DEPEND="${RDEPEND} |
155 |
- sys-apps/findutils" |
156 |
- |
157 |
-src_prepare() { |
158 |
- epatch "${FILESDIR}"/${PN}-0.7.5-estonian.patch |
159 |
- epatch "${FILESDIR}"/${PN}-0.7.6-cve-2017-1000229.patch # bug 637936 |
160 |
- epatch "${FILESDIR}"/${PN}-0.7.6-cve-2017-16938.patch # bug 639690 |
161 |
- |
162 |
- rm -R src/{libpng,zlib} || die |
163 |
- find . -type d -name build -exec rm -R {} + || die |
164 |
- |
165 |
- # next release is almost a complete rewrite, so plug this compilation |
166 |
- # problem in anticipation of the much (c)leaner(?) rewrite |
167 |
- sed -i \ |
168 |
- -e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \ |
169 |
- src/optipng/osys.c || die |
170 |
- |
171 |
- tc-export CC AR RANLIB |
172 |
- export LD=$(tc-getCC) |
173 |
- |
174 |
- eapply_user |
175 |
-} |
176 |
- |
177 |
-src_configure() { |
178 |
- ./configure \ |
179 |
- -with-system-libpng \ |
180 |
- -with-system-zlib \ |
181 |
- || die "configure failed" |
182 |
-} |
183 |
- |
184 |
-src_compile() { |
185 |
- emake -C src/optipng |
186 |
-} |
187 |
- |
188 |
-src_install() { |
189 |
- dodoc README.txt doc/*.txt |
190 |
- dohtml doc/*.html |
191 |
- doman src/${PN}/man/${PN}.1 |
192 |
- |
193 |
- dobin src/${PN}/${PN} |
194 |
-} |