Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/tiff/
Date: Wed, 17 Apr 2019 12:30:20
Message-Id: 1555504196.dffab46cee8bfd9682f05c31f09e915e954a59e5.zlogene@gentoo
1 commit: dffab46cee8bfd9682f05c31f09e915e954a59e5
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 17 12:29:43 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 17 12:29:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dffab46c
7
8 media-libs/tiff: Security cleanup
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 media-libs/tiff/Manifest | 1 -
14 media-libs/tiff/tiff-4.0.9-r4.ebuild | 83 ------------------------------------
15 2 files changed, 84 deletions(-)
16
17 diff --git a/media-libs/tiff/Manifest b/media-libs/tiff/Manifest
18 index bec71a05a5b..958fb5c27e3 100644
19 --- a/media-libs/tiff/Manifest
20 +++ b/media-libs/tiff/Manifest
21 @@ -1,2 +1 @@
22 DIST tiff-4.0.10.tar.gz 2402867 BLAKE2B 0305453f22150c31d00d2de756736f58c49a288e19b2a66bdd01319ce4688742f6eab4009eaf1817125d41f53a23de17eb6265a3ebae458ec24f5dbb3d49764e SHA512 d213e5db09fd56b8977b187c5a756f60d6e3e998be172550c2892dbdb4b2a8e8c750202bc863fe27d0d1c577ab9de1710d15e9f6ed665aadbfd857525a81eea8
23 -DIST tiff-4.0.9.tar.gz 2305681 BLAKE2B 3de03408d2974b9f9f5f2444029cc3018ef43beb67e9fd21be68ee400cdcc6deca1247f055d880841a18b92284ce81f112682c8b5f083ddc61e5255d73a7de3f SHA512 04f3d5eefccf9c1a0393659fe27f3dddd31108c401ba0dc587bca152a1c1f6bc844ba41622ff5572da8cc278593eff8c402b44e7af0a0090e91d326c2d79f6cd
24
25 diff --git a/media-libs/tiff/tiff-4.0.9-r4.ebuild b/media-libs/tiff/tiff-4.0.9-r4.ebuild
26 deleted file mode 100644
27 index 97a274e6ff3..00000000000
28 --- a/media-libs/tiff/tiff-4.0.9-r4.ebuild
29 +++ /dev/null
30 @@ -1,83 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -inherit autotools libtool multilib-minimal
37 -
38 -DESCRIPTION="Tag Image File Format (TIFF) library"
39 -HOMEPAGE="http://libtiff.maptools.org"
40 -SRC_URI="http://download.osgeo.org/libtiff/${P}.tar.gz
41 - ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz"
42 -
43 -LICENSE="libtiff"
44 -SLOT="0"
45 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
46 -IUSE="+cxx jbig jpeg lzma static-libs test zlib"
47 -
48 -RDEPEND="
49 - jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
50 - jbig? ( >=media-libs/jbigkit-2.1:=[${MULTILIB_USEDEP}] )
51 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
52 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
53 -DEPEND="${RDEPEND}"
54 -
55 -REQUIRED_USE="test? ( jpeg )" #483132
56 -
57 -PATCHES=(
58 - "${FILESDIR}"/${PN}-4.0.7-pdfium-0006-HeapBufferOverflow-ChopUpSingleUncompressedStrip.patch
59 - "${FILESDIR}"/${PN}-4.0.7-pdfium-0008-HeapBufferOverflow-ChopUpSingleUncompressedStrip.patch
60 - "${FILESDIR}"/${P}-CVE-2017-9935.patch #624696
61 - "${FILESDIR}"/${P}-CVE-2017-9935-fix-incorrect-type.patch #624696
62 - "${FILESDIR}"/${P}-CVE-2017-18013.patch #645982
63 - "${FILESDIR}"/${P}-CVE-2018-5784.patch #645730
64 -)
65 -
66 -MULTILIB_WRAPPED_HEADERS=(
67 - /usr/include/tiffconf.h
68 -)
69 -
70 -src_prepare() {
71 - default
72 -
73 - # tiffcp-thumbnail.sh fails as thumbnail binary doesn't get built anymore since tiff-4.0.7
74 - sed '/tiffcp-thumbnail\.sh/d' -i test/Makefile.am || die
75 -
76 - eautoreconf
77 -}
78 -
79 -multilib_src_configure() {
80 - local myeconfargs=(
81 - --without-x
82 - --with-docdir="${EPREFIX}"/usr/share/doc/${PF}
83 - $(use_enable cxx)
84 - $(use_enable jbig)
85 - $(use_enable jpeg)
86 - $(use_enable lzma)
87 - $(use_enable static-libs static)
88 - $(use_enable zlib)
89 - )
90 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
91 -
92 - # remove useless subdirs
93 - if ! multilib_is_native_abi ; then
94 - sed -i \
95 - -e 's/ tools//' \
96 - -e 's/ contrib//' \
97 - -e 's/ man//' \
98 - -e 's/ html//' \
99 - Makefile || die
100 - fi
101 -}
102 -
103 -multilib_src_test() {
104 - if ! multilib_is_native_abi ; then
105 - emake -C tools
106 - fi
107 - emake check
108 -}
109 -
110 -multilib_src_install_all() {
111 - find "${D}" -name '*.la' -delete || die
112 - rm "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION} || die
113 -}