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/gdk-pixbuf: ChangeLog gdk-pixbuf-2.30.8-r1.ebuild
Date: Sat, 01 Aug 2015 00:52:56
Message-Id: 20150801005250.73810116@oystercatcher.gentoo.org
1 tetromino 15/08/01 00:52:50
2
3 Modified: ChangeLog
4 Added: gdk-pixbuf-2.30.8-r1.ebuild
5 Log:
6 Fix integer overflow in pixops (bug #556314, thanks to Agostino Sarubbo). Fix gtk-doc installation (bug #549166, thanks to Rafał Mużyło).
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x18E5B6F2D8D5EC8D)
9
10 Revision Changes Path
11 1.140 x11-libs/gdk-pixbuf/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?rev=1.140&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?rev=1.140&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog?r1=1.139&r2=1.140
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v
20 retrieving revision 1.139
21 retrieving revision 1.140
22 diff -u -r1.139 -r1.140
23 --- ChangeLog 3 Mar 2015 11:07:39 -0000 1.139
24 +++ ChangeLog 1 Aug 2015 00:52:50 -0000 1.140
25 @@ -1,6 +1,14 @@
26 # ChangeLog for x11-libs/gdk-pixbuf
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.139 2015/03/03 11:07:39 dlan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/ChangeLog,v 1.140 2015/08/01 00:52:50 tetromino Exp $
30 +
31 +*gdk-pixbuf-2.30.8-r1 (01 Aug 2015)
32 +
33 + 01 Aug 2015; Alexandre Rostovtsev <tetromino@g.o>
34 + +gdk-pixbuf-2.30.8-r1.ebuild, +files/gdk-pixbuf-2.30.8-divide-by-zero.patch,
35 + +files/gdk-pixbuf-2.30.8-pixops-overflow.patch:
36 + Fix integer overflow in pixops (bug #556314, thanks to Agostino Sarubbo). Fix
37 + gtk-doc installation (bug #549166, thanks to Rafał Mużyło).
38
39 03 Mar 2015; Yixun Lan <dlan@g.o> gdk-pixbuf-2.30.8.ebuild:
40 add arm64 support, tested on A53 board
41
42
43
44 1.1 x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.8-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.8-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.8-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gdk-pixbuf-2.30.8-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.30.8-r1.ebuild,v 1.1 2015/08/01 00:52:50 tetromino Exp $
54
55 EAPI="5"
56 GCONF_DEBUG="no"
57 GNOME2_LA_PUNT="yes"
58
59 inherit eutils flag-o-matic gnome2 multilib libtool multilib-minimal
60
61 DESCRIPTION="Image loading library for GTK+"
62 HOMEPAGE="http://www.gtk.org/"
63
64 LICENSE="LGPL-2+"
65 SLOT="2"
66 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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"
67 IUSE="+X debug +introspection jpeg jpeg2k tiff test"
68
69 COMMON_DEPEND="
70 >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}]
71 >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}]
72 introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
73 jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
74 jpeg2k? ( media-libs/jasper:=[${MULTILIB_USEDEP}] )
75 tiff? ( >=media-libs/tiff-3.9.2:0=[${MULTILIB_USEDEP}] )
76 X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )
77 "
78 DEPEND="${COMMON_DEPEND}
79 >=dev-util/gtk-doc-am-1.20
80 >=sys-devel/gettext-0.17
81 virtual/pkgconfig
82 "
83 # librsvg blocker is for the new pixbuf loader API, you lose icons otherwise
84 RDEPEND="${COMMON_DEPEND}
85 !<gnome-base/gail-1000
86 !<gnome-base/librsvg-2.31.0
87 !<x11-libs/gtk+-2.21.3:2
88 !<x11-libs/gtk+-2.90.4:3
89 abi_x86_32? (
90 !<=app-emulation/emul-linux-x86-gtklibs-20131008-r2
91 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
92 )
93 "
94
95 MULTILIB_CHOST_TOOLS=(
96 /usr/bin/gdk-pixbuf-query-loaders
97 )
98
99 src_prepare() {
100 # Upstream patches from 2.31.x
101 epatch "${FILESDIR}"/${PN}-2.30.8-divide-by-zero.patch \
102 "${FILESDIR}"/${PN}-2.30.8-pixops-overflow.patch #556314
103
104 # This will avoid polluting the pkg-config file with versioned libpng,
105 # which is causing problems with libpng14 -> libpng15 upgrade
106 # See upstream bug #667068
107 # First check that the pattern is present, to catch upstream changes on bumps,
108 # because sed doesn't return failure code if it doesn't do any replacements
109 grep -q 'l in libpng16' configure || die "libpng check order has changed upstream"
110 sed -e 's:l in libpng16:l in libpng libpng16:' -i configure || die
111 [[ ${CHOST} == *-solaris* ]] && append-libs intl
112
113 gnome2_src_prepare
114 }
115
116 multilib_src_configure() {
117 # png always on to display icons
118 ECONF_SOURCE="${S}" \
119 gnome2_src_configure \
120 $(usex debug --enable-debug=yes "") \
121 $(use_with jpeg libjpeg) \
122 $(use_with jpeg2k libjasper) \
123 $(use_with tiff libtiff) \
124 $(multilib_native_use_enable introspection) \
125 $(use_with X x11) \
126 --with-libpng
127
128 # work-around gtk-doc out-of-source brokedness
129 if multilib_is_native_abi; then
130 ln -s "${S}"/docs/reference/${PN}/html docs/reference/${PN}/html || die
131 fi
132 }
133
134 multilib_src_install() {
135 # Parallel install fails when no gdk-pixbuf is already installed, bug #481372
136 MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
137 }
138
139 pkg_preinst() {
140 gnome2_pkg_preinst
141
142 multilib_pkg_preinst() {
143 # Make sure loaders.cache belongs to gdk-pixbuf alone
144 local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
145
146 if [[ -e ${EROOT}${cache} ]]; then
147 cp "${EROOT}"${cache} "${ED}"/${cache} || die
148 else
149 touch "${ED}"/${cache} || die
150 fi
151 }
152
153 multilib_foreach_abi multilib_pkg_preinst
154 }
155
156 pkg_postinst() {
157 # causes segfault if set, see bug 375615
158 unset __GL_NO_DSO_FINALIZER
159
160 multilib_foreach_abi gnome2_pkg_postinst
161
162 # Migration snippet for when this was handled by gtk+
163 if [ -e "${EROOT}"usr/lib/gtk-2.0/2.*/loaders ]; then
164 elog "You need to rebuild ebuilds that installed into" "${EROOT}"usr/lib/gtk-2.0/2.*/loaders
165 elog "to do that you can use qfile from portage-utils:"
166 elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.*/loaders)"
167 fi
168 }
169
170 pkg_postrm() {
171 gnome2_pkg_postrm
172
173 if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
174 rm -f "${EROOT}"usr/lib*/${PN}-2.0/2.10.0/loaders.cache
175 fi
176 }