Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/tiff: tiff-3.9.5-r2.ebuild ChangeLog tiff-4.0.1-r1.ebuild
Date: Fri, 06 Apr 2012 17:39:31
Message-Id: 20120406173921.4C38A2004B@flycatcher.gentoo.org
1 ssuominen 12/04/06 17:39:21
2
3 Modified: ChangeLog
4 Added: tiff-3.9.5-r2.ebuild tiff-4.0.1-r1.ebuild
5 Log:
6 Upstream patch for CVE-2012-1173 wrt #410931 by Agostino Sarubbo
7
8 (Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.186 media-libs/tiff/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/ChangeLog?rev=1.186&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/ChangeLog?rev=1.186&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/ChangeLog?r1=1.185&r2=1.186
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v
20 retrieving revision 1.185
21 retrieving revision 1.186
22 diff -u -r1.185 -r1.186
23 --- ChangeLog 2 Mar 2012 17:21:27 -0000 1.185
24 +++ ChangeLog 6 Apr 2012 17:39:21 -0000 1.186
25 @@ -1,6 +1,14 @@
26 # ChangeLog for media-libs/tiff
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.185 2012/03/02 17:21:27 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/ChangeLog,v 1.186 2012/04/06 17:39:21 ssuominen Exp $
30 +
31 +*tiff-4.0.1-r1 (06 Apr 2012)
32 +*tiff-3.9.5-r2 (06 Apr 2012)
33 +
34 + 06 Apr 2012; Samuli Suominen <ssuominen@g.o> +tiff-3.9.5-r2.ebuild,
35 + +files/tiff-3.9.5-CVE-2012-1173.patch, +tiff-4.0.1-r1.ebuild,
36 + +files/tiff-4.0.1-CVE-2012-1173.patch:
37 + Upstream patch for CVE-2012-1173 wrt #410931 by Agostino Sarubbo
38
39 *tiff-4.0.1 (02 Mar 2012)
40
41
42
43
44 1.1 media-libs/tiff/tiff-3.9.5-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/tiff-3.9.5-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/tiff-3.9.5-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: tiff-3.9.5-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-3.9.5-r2.ebuild,v 1.1 2012/04/06 17:39:21 ssuominen Exp $
54
55 # this ebuild is only for the libtiff.so.3 and libtiffxx.so.3 SONAME for ABI compat
56
57 EAPI=4
58 inherit eutils libtool multilib
59
60 DESCRIPTION="Library for manipulation of TIFF (Tag Image File Format) images"
61 HOMEPAGE="http://www.remotesensing.org/libtiff/"
62 SRC_URI="ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz"
63
64 LICENSE="as-is"
65 SLOT="3"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
67 IUSE="+cxx jbig jpeg zlib"
68
69 RDEPEND="jpeg? ( virtual/jpeg )
70 jbig? ( media-libs/jbigkit )
71 zlib? ( sys-libs/zlib )
72 !media-libs/tiff-compat
73 !=media-libs/tiff-3*:0"
74 DEPEND="${RDEPEND}"
75
76 src_prepare() {
77 epatch "${FILESDIR}"/${P}-CVE-*.patch
78 elibtoolize
79 }
80
81 src_configure() {
82 econf \
83 --libdir=/libdir \
84 --disable-static \
85 $(use_enable cxx) \
86 $(use_enable zlib) \
87 $(use_enable jpeg) \
88 $(use_enable jbig) \
89 --without-x
90 }
91
92 src_install() {
93 # Let `make install` and libtool handle insecure runpath(s)
94 dodir tmp
95 emake DESTDIR="${D}/tmp" install
96
97 exeinto /usr/$(get_libdir)
98 doexe "${ED}"/tmp/libdir/libtiff$(get_libname 3)
99 use cxx && doexe "${ED}"/tmp/libdir/libtiffxx$(get_libname 3)
100
101 rm -rf "${ED}"/tmp
102 }
103
104
105
106 1.1 media-libs/tiff/tiff-4.0.1-r1.ebuild
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/tiff-4.0.1-r1.ebuild?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/tiff/tiff-4.0.1-r1.ebuild?rev=1.1&content-type=text/plain
110
111 Index: tiff-4.0.1-r1.ebuild
112 ===================================================================
113 # Copyright 1999-2012 Gentoo Foundation
114 # Distributed under the terms of the GNU General Public License v2
115 # $Header: /var/cvsroot/gentoo-x86/media-libs/tiff/tiff-4.0.1-r1.ebuild,v 1.1 2012/04/06 17:39:21 ssuominen Exp $
116
117 EAPI=4
118 inherit eutils libtool
119
120 DESCRIPTION="Tag Image File Format (TIFF) library"
121 HOMEPAGE="http://www.remotesensing.org/libtiff/"
122 SRC_URI="http://download.osgeo.org/libtiff/${P}.tar.gz
123 ftp://ftp.remotesensing.org/pub/libtiff/${P}.tar.gz"
124
125 LICENSE="as-is"
126 SLOT="0"
127 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
128 IUSE="+cxx jbig jpeg lzma static-libs zlib"
129
130 RDEPEND="jpeg? ( virtual/jpeg )
131 jbig? ( media-libs/jbigkit )
132 lzma? ( app-arch/xz-utils )
133 zlib? ( sys-libs/zlib )"
134 DEPEND="${RDEPEND}"
135
136 src_prepare() {
137 epatch "${FILESDIR}"/${P}-CVE-*.patch
138 elibtoolize
139 }
140
141 src_configure() {
142 econf \
143 $(use_enable static-libs static) \
144 $(use_enable zlib) \
145 $(use_enable jpeg) \
146 $(use_enable jbig) \
147 $(use_enable lzma) \
148 $(use_enable cxx) \
149 --without-x \
150 --with-docdir="${EPREFIX}"/usr/share/doc/${PF}
151 }
152
153 src_install() {
154 default
155
156 rm -f \
157 "${ED}"/usr/lib*/libtiff*.la \
158 "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION}
159 }