Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/cairo: cairo-1.14.0-r2.ebuild ChangeLog
Date: Thu, 05 Mar 2015 18:22:58
Message-Id: 20150305182253.A111D131C4@oystercatcher.gentoo.org
1 tetromino 15/03/05 18:22:53
2
3 Modified: ChangeLog
4 Added: cairo-1.14.0-r2.ebuild
5 Log:
6 Add upstream patches to fix several crashes. Should fix bug #541326 (heap corruption in darktable and evince), thanks to sergeev917 and Andrey Volkov.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x18E5B6F2D8D5EC8D)
9
10 Revision Changes Path
11 1.409 x11-libs/cairo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.409&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.409&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?r1=1.408&r2=1.409
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v
20 retrieving revision 1.408
21 retrieving revision 1.409
22 diff -u -r1.408 -r1.409
23 --- ChangeLog 2 Mar 2015 09:20:51 -0000 1.408
24 +++ ChangeLog 5 Mar 2015 18:22:53 -0000 1.409
25 @@ -1,6 +1,17 @@
26 # ChangeLog for x11-libs/cairo
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.408 2015/03/02 09:20:51 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.409 2015/03/05 18:22:53 tetromino Exp $
30 +
31 +*cairo-1.14.0-r2 (05 Mar 2015)
32 +
33 + 05 Mar 2015; Alexandre Rostovtsev <tetromino@g.o>
34 + +cairo-1.14.0-r2.ebuild, +files/cairo-1.14.0-CFF-unaligned-access.patch,
35 + +files/cairo-1.14.0-image-negative-span-length.patch,
36 + +files/cairo-1.14.0-tor-scan-converter-do_fullrow-intersection.patch,
37 + +files/cairo-1.14.0-xcb-0-sized-glyph.patch,
38 + +files/cairo-1.14.0-xlib-0-sized-glyph.patch:
39 + Add upstream patches to fix several crashes. Should fix bug #541326 (heap
40 + corruption in darktable and evince), thanks to sergeev917 and Andrey Volkov.
41
42 02 Mar 2015; Agostino Sarubbo <ago@g.o> cairo-1.12.18-r1.ebuild:
43 Stable for ppc, wrt bug #540676
44
45
46
47 1.1 x11-libs/cairo/cairo-1.14.0-r2.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.14.0-r2.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.14.0-r2.ebuild?rev=1.1&content-type=text/plain
51
52 Index: cairo-1.14.0-r2.ebuild
53 ===================================================================
54 # Copyright 1999-2015 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.14.0-r2.ebuild,v 1.1 2015/03/05 18:22:53 tetromino Exp $
57
58 EAPI=5
59
60 inherit eutils flag-o-matic autotools multilib-minimal
61
62 if [[ ${PV} == *9999* ]]; then
63 inherit git-2
64 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
65 SRC_URI=""
66 else
67 SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
68 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
69 fi
70
71 DESCRIPTION="A vector graphics library with cross-device output support"
72 HOMEPAGE="http://cairographics.org/"
73 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
74 SLOT="0"
75 IUSE="X aqua debug directfb drm gallium gles2 +glib opengl openvg qt4 static-libs +svg valgrind xcb xlib-xcb"
76 # gtk-doc regeneration doesn't seem to work with out-of-source builds
77 #[[ ${PV} == *9999* ]] && IUSE="${IUSE} doc" # API docs are provided in tarball, no need to regenerate
78
79 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
80 RESTRICT="test"
81
82 RDEPEND=">=dev-libs/lzo-2.06-r1[${MULTILIB_USEDEP}]
83 >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
84 >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}]
85 >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}]
86 >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
87 >=x11-libs/pixman-0.32.4[${MULTILIB_USEDEP}]
88 directfb? ( dev-libs/DirectFB )
89 gles2? ( >=media-libs/mesa-9.1.6[gles2,${MULTILIB_USEDEP}] )
90 glib? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
91 opengl? ( || ( >=media-libs/mesa-9.1.6[egl,${MULTILIB_USEDEP}] media-libs/opengl-apple ) )
92 openvg? ( >=media-libs/mesa-9.1.6[openvg,${MULTILIB_USEDEP}] )
93 qt4? ( >=dev-qt/qtgui-4.8:4[${MULTILIB_USEDEP}] )
94 X? (
95 >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
96 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
97 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
98 drm? (
99 >=virtual/libudev-208:=[${MULTILIB_USEDEP}]
100 gallium? ( >=media-libs/mesa-9.1.6[gallium,${MULTILIB_USEDEP}] )
101 )
102 )
103 xcb? (
104 >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}]
105 )
106 abi_x86_32? (
107 !<=app-emulation/emul-linux-x86-gtklibs-20131008-r1
108 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
109 )"
110 DEPEND="${RDEPEND}
111 virtual/pkgconfig
112 >=sys-devel/libtool-2
113 X? (
114 >=x11-proto/renderproto-0.11.1-r1[${MULTILIB_USEDEP}]
115 drm? (
116 >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}]
117 >=x11-proto/xextproto-7.2.1-r1[${MULTILIB_USEDEP}]
118 )
119 )"
120 #[[ ${PV} == *9999* ]] && DEPEND="${DEPEND}
121 # doc? (
122 # >=dev-util/gtk-doc-1.6
123 # ~app-text/docbook-xml-dtd-4.2
124 # )"
125
126 # drm module requires X
127 # for gallium we need to enable drm
128 REQUIRED_USE="
129 drm? ( X )
130 gallium? ( drm )
131 gles2? ( !opengl )
132 openvg? ( || ( gles2 opengl ) )
133 xlib-xcb? ( xcb )
134 "
135
136 MULTILIB_WRAPPED_HEADERS=(
137 /usr/include/cairo/cairo-directfb.h
138 )
139
140 src_prepare() {
141 epatch "${FILESDIR}"/${PN}-1.12.18-disable-test-suite.patch
142 epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
143
144 # fixed in 1.14 branch
145 epatch "${FILESDIR}"/${P}-align-64bit-types.patch
146
147 # fixed in master branch
148 epatch "${FILESDIR}"/${PN}-1.14.0-CFF-unaligned-access.patch
149 epatch "${FILESDIR}"/${PN}-1.14.0-tor-scan-converter-do_fullrow-intersection.patch #541326
150 epatch "${FILESDIR}"/${PN}-1.14.0-xlib-0-sized-glyph.patch
151 epatch "${FILESDIR}"/${PN}-1.14.0-xcb-0-sized-glyph.patch
152 epatch "${FILESDIR}"/${PN}-1.14.0-image-negative-span-length.patch
153
154 # tests and perf tools require X, bug #483574
155 if ! use X; then
156 sed -e '/^SUBDIRS/ s#boilerplate test perf# #' -i Makefile.am || die
157 fi
158
159 epatch_user
160
161 # Slightly messed build system YAY
162 if [[ ${PV} == *9999* ]]; then
163 touch boilerplate/Makefile.am.features
164 touch src/Makefile.am.features
165 touch ChangeLog
166 fi
167
168 eautoreconf
169 }
170
171 multilib_src_configure() {
172 local myopts
173
174 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
175
176 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
177
178 # TODO: remove this (and add USE-dep) when DirectFB is converted,
179 # bug #484248 -- but beware of the circular dep.
180 if ! multilib_is_native_abi; then
181 myopts+=" --disable-directfb"
182 fi
183
184 # TODO: remove this (and add USE-dep) when qtgui is converted, bug #498010
185 if ! multilib_is_native_abi; then
186 myopts+=" --disable-qt"
187 fi
188
189 # [[ ${PV} == *9999* ]] && myopts+=" $(use_enable doc gtk-doc)"
190
191 ECONF_SOURCE="${S}" \
192 econf \
193 --disable-dependency-tracking \
194 $(use_with X x) \
195 $(use_enable X tee) \
196 $(use_enable X xlib) \
197 $(use_enable X xlib-xrender) \
198 $(use_enable aqua quartz) \
199 $(use_enable aqua quartz-image) \
200 $(use_enable debug test-surfaces) \
201 $(use_enable drm) \
202 $(use_enable directfb) \
203 $(use_enable gallium) \
204 $(use_enable gles2 glesv2) \
205 $(use_enable glib gobject) \
206 $(use_enable openvg vg) \
207 $(use_enable opengl gl) \
208 $(use_enable qt4 qt) \
209 $(use_enable static-libs static) \
210 $(use_enable svg) \
211 $(use_enable valgrind) \
212 $(use_enable xcb) \
213 $(use_enable xcb xcb-shm) \
214 $(use_enable xlib-xcb) \
215 --enable-ft \
216 --enable-pdf \
217 --enable-png \
218 --enable-ps \
219 ${myopts}
220 }
221
222 multilib_src_install_all() {
223 prune_libtool_files --all
224 einstalldocs
225 }
226
227 pkg_postinst() {
228 if use !xlib-xcb; then
229 if has_version net-misc/nxserver-freenx \
230 || has_version net-misc/x2goserver; then
231 ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers."
232 ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+"
233 ewarn "applications that are running inside NX sessions. For details, see"
234 ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173"
235 fi
236 fi
237 }