Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gd/
Date: Thu, 25 Jun 2020 11:28:12
Message-Id: 1593084420.e7220615bbaa8ce9c101b5130b58f705425c11ea.juippis@gentoo
1 commit: e7220615bbaa8ce9c101b5130b58f705425c11ea
2 Author: John Helmert III <jchelmert3 <AT> posteo <DOT> net>
3 AuthorDate: Tue Jun 23 20:43:01 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 11:27:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7220615
7
8 media-libs/gd: Drop old (security cleanup)
9
10 Bug: https://bugs.gentoo.org/711122
11 Bug: https://bugs.gentoo.org/719464
12 Package-Manager: Portage-2.3.102, Repoman-2.3.23
13 Signed-off-by: John Helmert III <jchelmert3 <AT> posteo.net>
14 Closes: https://github.com/gentoo/gentoo/pull/16387
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 media-libs/gd/Manifest | 3 --
18 media-libs/gd/gd-2.2.5-r2.ebuild | 98 ----------------------------------------
19 2 files changed, 101 deletions(-)
20
21 diff --git a/media-libs/gd/Manifest b/media-libs/gd/Manifest
22 index 8c9c7e108d4..b3942941ec3 100644
23 --- a/media-libs/gd/Manifest
24 +++ b/media-libs/gd/Manifest
25 @@ -1,4 +1 @@
26 -DIST libgd-2.2.5-ossfuzz5700.dat 30 BLAKE2B 5ddd3d2be2adf05e1e2eb1852cc689be57d4d77c57b471e8b6021877f2fb137d15b4c73445fbb23a9ed585974a96dd154759a48712c1e7b5bdc5750d534aee4a SHA512 2394e92ff7a42c818e13a1ac9ad15bc81aa401adc917366ec8c440bb7f27a63777ab059aa03c501dafef0ac16b462dd23c7fb9f8086ce558203384a98a235fff
27 -DIST libgd-2.2.5-php_bug_75571.dat 1731 BLAKE2B 4b5d3f258b73e8089ede1b2c9f538855f410965a9e01e1f3f151ae52f072036172b184bd1a4d07b8355bb974bf088bebb0e812175a277bb67926274272bd80a0 SHA512 b3048640ce7828cca7901fadc989e867cfc6d31b44c0f5a1bda54d7428f317c8c8fc6403fef301e193869a95eb46eb7195d47710ec7f8c507ba049cb6cdcb281
28 -DIST libgd-2.2.5.tar.xz 2594092 BLAKE2B 222a7e012fbf9924ac391ee96c7cd3dec96afd78c6d43dfb680b33e7143e7df87fe6be75bbfe8fb93e916302d7daf08271214c84da28712e93a36465566cb2bd SHA512 e4598e17a277a75e02255402182cab139cb3f2cffcd68ec05cc10bbeaf6bc7aa39162c3445cd4a7efc1a26b72b9152bbedb187351e3ed099ea51767319997a6b
29 DIST libgd-2.3.0.tar.xz 2539188 BLAKE2B a90f48be959d1bb6774ec44960e191b8be134ff3e74401eba4cbf9b165c72665f3dffe3beaaf92fa6069e0ef79533be5d57a5946a1839f55446072fa322ed808 SHA512 5b201d22560e147a3d5471010b898ad0268c3a2453b870d1267b6ba92e540cf9f75099336c1ab08217e41827ac86fe04525726bf29ad117e5dcbaef9a8d0622a
30
31 diff --git a/media-libs/gd/gd-2.2.5-r2.ebuild b/media-libs/gd/gd-2.2.5-r2.ebuild
32 deleted file mode 100644
33 index b4896640b7b..00000000000
34 --- a/media-libs/gd/gd-2.2.5-r2.ebuild
35 +++ /dev/null
36 @@ -1,98 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI="7"
41 -
42 -inherit autotools flag-o-matic multilib-minimal
43 -
44 -DESCRIPTION="Graphics library for fast image creation"
45 -HOMEPAGE="https://libgd.org/ https://www.boutell.com/gd/"
46 -SRC_URI="https://github.com/libgd/libgd/releases/download/${P}/lib${P}.tar.xz
47 - test? (
48 - https://github.com/libgd/libgd/raw/e0cb1b76c305db68b251fe782faa12da5d357593/tests/gif/ossfuzz5700.gif -> lib${P}-ossfuzz5700.dat
49 - https://github.com/libgd/libgd/raw/e0cb1b76c305db68b251fe782faa12da5d357593/tests/gif/php_bug_75571.gif -> lib${P}-php_bug_75571.dat
50 - )"
51 -
52 -LICENSE="gd IJG HPND BSD"
53 -SLOT="2/3"
54 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
55 -IUSE="cpu_flags_x86_sse fontconfig jpeg png static-libs test tiff truetype webp xpm zlib"
56 -RESTRICT="!test? ( test )"
57 -
58 -# fontconfig has prefixed font paths, details see bug #518970
59 -REQUIRED_USE="prefix? ( fontconfig )"
60 -
61 -RDEPEND="fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
62 - jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
63 - png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
64 - tiff? ( media-libs/tiff:0[${MULTILIB_USEDEP}] )
65 - truetype? ( >=media-libs/freetype-2.5.0.1[${MULTILIB_USEDEP}] )
66 - webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
67 - xpm? ( >=x11-libs/libXpm-3.5.10-r1[${MULTILIB_USEDEP}] >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )
68 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
69 -DEPEND="${RDEPEND}
70 - virtual/pkgconfig"
71 -
72 -S="${WORKDIR}/lib${P}"
73 -
74 -PATCHES=(
75 - "${FILESDIR}/${P}-ossfuzz5700.patch"
76 - "${FILESDIR}/${P}-CVE-2018-5711.patch"
77 - "${FILESDIR}/${P}-CVE-2018-1000222.patch"
78 - "${FILESDIR}/${P}-CVE-2019-6977.patch"
79 - "${FILESDIR}/${P}-CVE-2019-6978.patch"
80 -)
81 -
82 -src_unpack() {
83 - default
84 -
85 - if use test ; then
86 - cp "${DISTDIR}"/lib${P}-ossfuzz5700.dat \
87 - "${S}"/tests/gif/ossfuzz5700.gif || die
88 - cp "${DISTDIR}"/lib${P}-php_bug_75571.dat \
89 - "${S}"/tests/gif/php_bug_75571.gif || die
90 - fi
91 -}
92 -
93 -src_prepare() {
94 - default
95 - eautoreconf
96 -}
97 -
98 -multilib_src_configure() {
99 - # bug 603360, https://github.com/libgd/libgd/blob/fd06f7f83c5e78bf5b7f5397746b4e5ee4366250/docs/README.TESTING#L65
100 - if use cpu_flags_x86_sse ; then
101 - append-cflags -msse -mfpmath=sse
102 - else
103 - append-cflags -ffloat-store
104 - fi
105 -
106 - # bug 632076, https://github.com/libgd/libgd/issues/278
107 - if use arm64 || use ppc64 || use s390 ; then
108 - append-cflags -ffp-contract=off
109 - fi
110 -
111 - # we aren't actually {en,dis}abling X here ... the configure
112 - # script uses it just to add explicit -I/-L paths which we
113 - # don't care about on Gentoo systems.
114 - local myeconfargs=(
115 - --disable-werror
116 - --without-x
117 - --without-liq
118 - $(use_enable static-libs static)
119 - $(use_with fontconfig)
120 - $(use_with png)
121 - $(use_with tiff)
122 - $(use_with truetype freetype)
123 - $(use_with jpeg)
124 - $(use_with webp)
125 - $(use_with xpm)
126 - $(use_with zlib)
127 - )
128 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
129 -}
130 -
131 -multilib_src_install_all() {
132 - dodoc README.md
133 - find "${ED}" -name '*.la' -delete || die
134 -}