1 |
ssuominen 12/09/29 17:17:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: glib-2.32.4-r1.ebuild |
5 |
Log: |
6 |
Revision bump to import upstream patch for CVE-2012-3524 wrt #436028 |
7 |
|
8 |
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.537 dev-libs/glib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.537&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.537&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.536&r2=1.537 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v |
20 |
retrieving revision 1.536 |
21 |
retrieving revision 1.537 |
22 |
diff -u -r1.536 -r1.537 |
23 |
--- ChangeLog 28 Sep 2012 18:54:44 -0000 1.536 |
24 |
+++ ChangeLog 29 Sep 2012 17:17:13 -0000 1.537 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/glib |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.536 2012/09/28 18:54:44 tetromino Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.537 2012/09/29 17:17:13 ssuominen Exp $ |
30 |
+ |
31 |
+*glib-2.32.4-r1 (29 Sep 2012) |
32 |
+ |
33 |
+ 29 Sep 2012; Samuli Suominen <ssuominen@g.o> +glib-2.32.4-r1.ebuild, |
34 |
+ +files/glib-2.32.4-CVE-2012-3524.patch: |
35 |
+ Revision bump to import upstream patch for CVE-2012-3524 wrt #436028 |
36 |
|
37 |
28 Sep 2012; Alexandre Rostovtsev <tetromino@g.o> glib-2.34.0.ebuild: |
38 |
Really disable building tests when USE=-test (bug #436508, thanks to Jeff |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/glib/glib-2.32.4-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.32.4-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.32.4-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: glib-2.32.4-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.32.4-r1.ebuild,v 1.1 2012/09/29 17:17:13 ssuominen Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
PYTHON_DEPEND="utils? 2" |
55 |
# Avoid runtime dependency on python when USE=test |
56 |
|
57 |
inherit autotools gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python toolchain-funcs virtualx linux-info |
58 |
|
59 |
DESCRIPTION="The GLib library of C routines" |
60 |
HOMEPAGE="http://www.gtk.org/" |
61 |
SRC_URI="${SRC_URI} |
62 |
http://dev.gentoo.org/~tetromino/distfiles/glib/${P}-AS_IF-patches.tar.xz |
63 |
http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf |
64 |
|
65 |
LICENSE="LGPL-2+" |
66 |
SLOT="2" |
67 |
IUSE="debug doc fam kernel_linux selinux static-libs systemtap test utils xattr" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
69 |
|
70 |
RDEPEND="virtual/libiconv |
71 |
virtual/libffi |
72 |
sys-libs/zlib |
73 |
|| ( |
74 |
>=dev-libs/elfutils-0.142 |
75 |
>=dev-libs/libelf-0.8.12 ) |
76 |
xattr? ( sys-apps/attr ) |
77 |
fam? ( virtual/fam ) |
78 |
utils? ( >=dev-util/gdbus-codegen-${PV} )" |
79 |
DEPEND="${RDEPEND} |
80 |
>=sys-devel/gettext-0.11 |
81 |
>=dev-util/gtk-doc-am-1.15 |
82 |
doc? ( |
83 |
>=dev-libs/libxslt-1.0 |
84 |
>=dev-util/gdbus-codegen-${PV} |
85 |
>=dev-util/gtk-doc-1.15 |
86 |
~app-text/docbook-xml-dtd-4.1.2 ) |
87 |
systemtap? ( >=dev-util/systemtap-1.3 ) |
88 |
test? ( |
89 |
sys-devel/gdb |
90 |
=dev-lang/python-2* |
91 |
>=dev-util/gdbus-codegen-${PV} |
92 |
>=sys-apps/dbus-1.2.14 ) |
93 |
!<dev-util/gtk-doc-1.15-r2" |
94 |
PDEPEND="x11-misc/shared-mime-info |
95 |
!<gnome-base/gvfs-1.6.4-r990" |
96 |
# shared-mime-info needed for gio/xdgmime, bug #409481 |
97 |
# Earlier versions of gvfs do not work with glib |
98 |
|
99 |
pkg_setup() { |
100 |
# Needed for gio/tests/gdbus-testserver.py |
101 |
if use test ; then |
102 |
python_set_active_version 2 |
103 |
python_pkg_setup |
104 |
fi |
105 |
|
106 |
if use kernel_linux ; then |
107 |
CONFIG_CHECK="~INOTIFY_USER" |
108 |
linux-info_pkg_setup |
109 |
fi |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
epatch "${FILESDIR}"/${P}-CVE-2012-3524.patch |
114 |
|
115 |
mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die |
116 |
|
117 |
# Fix gmodule issues on fbsd; bug #184301 |
118 |
epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch |
119 |
|
120 |
# need to build tests if USE=doc for bug #387385 |
121 |
if ! use test && ! use doc; then |
122 |
# don't waste time building tests |
123 |
sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die |
124 |
else |
125 |
# Do not try to remove files on live filesystem, upstream bug #619274 |
126 |
sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ |
127 |
-i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" |
128 |
|
129 |
# Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629 |
130 |
if ! has_version dev-util/desktop-file-utils ; then |
131 |
ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
132 |
ewarn "think on installing it to get these tests run." |
133 |
sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
134 |
sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
135 |
sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
136 |
sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
137 |
fi |
138 |
|
139 |
# Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
140 |
if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:2' ; then |
141 |
ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:2" |
142 |
ewarn "not being present on your system, think on installing them to get these tests run." |
143 |
sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
144 |
sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
145 |
sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
146 |
sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
147 |
sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
148 |
sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
149 |
sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
150 |
# needed to prevent gdbus-threading from asserting |
151 |
ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
152 |
fi |
153 |
fi |
154 |
|
155 |
# gdbus-codegen is a separate package |
156 |
epatch "${FILESDIR}/${PN}-2.31.x-external-gdbus-codegen.patch" |
157 |
|
158 |
# bashcomp goes in /usr/share/bash-completion |
159 |
epatch "${FILESDIR}/${PN}-2.32.4-bashcomp.patch" |
160 |
|
161 |
# AS_IF fixes from 2.33.x, needed for cross-compiling, bug #434770 |
162 |
epatch ../AS_IF-patches/*.patch |
163 |
|
164 |
# disable pyc compiling |
165 |
use test && python_clean_py-compile_files |
166 |
|
167 |
# Needed for the punt-python-check patch, disabling timeout test |
168 |
# Also needed to prevent croscompile failures, see bug #267603 |
169 |
# Also needed for the no-gdbus-codegen patch |
170 |
AT_M4DIR="${WORKDIR}" eautoreconf |
171 |
|
172 |
[[ ${CHOST} == *-freebsd* ]] && elibtoolize |
173 |
|
174 |
epunt_cxx |
175 |
} |
176 |
|
177 |
src_configure() { |
178 |
# Avoid circular depend with dev-util/pkgconfig and |
179 |
# native builds (cross-compiles won't need pkg-config |
180 |
# in the target ROOT to work here) |
181 |
if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
182 |
if has_version sys-apps/dbus; then |
183 |
export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
184 |
export DBUS1_LIBS="-ldbus-1" |
185 |
fi |
186 |
export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
187 |
export LIBFFI_LIBS="-lffi" |
188 |
fi |
189 |
|
190 |
local myconf |
191 |
|
192 |
# Building with --disable-debug highly unrecommended. It will build glib in |
193 |
# an unusable form as it disables some commonly used API. Please do not |
194 |
# convert this to the use_enable form, as it results in a broken build. |
195 |
# -- compnerd (3/27/06) |
196 |
use debug && myconf="--enable-debug" |
197 |
|
198 |
# Always use internal libpcre, bug #254659 |
199 |
econf ${myconf} \ |
200 |
$(use_enable xattr) \ |
201 |
$(use_enable doc man) \ |
202 |
$(use_enable doc gtk-doc) \ |
203 |
$(use_enable fam) \ |
204 |
$(use_enable selinux) \ |
205 |
$(use_enable static-libs static) \ |
206 |
$(use_enable systemtap dtrace) \ |
207 |
$(use_enable systemtap systemtap) \ |
208 |
--with-pcre=internal \ |
209 |
--with-threads=posix |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
local f |
214 |
|
215 |
# install-exec-hook substitutes ${PYTHON} in glib/gtester-report |
216 |
emake DESTDIR="${D}" PYTHON="${EPREFIX}/usr/bin/python2" install |
217 |
|
218 |
if ! use utils; then |
219 |
rm "${ED}usr/bin/gtester-report" |
220 |
fi |
221 |
|
222 |
# Do not install charset.alias even if generated, leave it to libiconv |
223 |
rm -f "${ED}/usr/lib/charset.alias" |
224 |
|
225 |
# Don't install gdb python macros, bug 291328 |
226 |
rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
227 |
|
228 |
dodoc AUTHORS ChangeLog* NEWS* README |
229 |
|
230 |
# Completely useless with or without USE static-libs, people need to use |
231 |
# pkg-config |
232 |
find "${D}" -name '*.la' -exec rm -f {} + |
233 |
} |
234 |
|
235 |
src_test() { |
236 |
gnome2_environment_reset |
237 |
|
238 |
unset DBUS_SESSION_BUS_ADDRESS |
239 |
export XDG_CONFIG_DIRS=/etc/xdg |
240 |
export XDG_DATA_DIRS=/usr/local/share:/usr/share |
241 |
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
242 |
unset GSETTINGS_BACKEND # bug 352451 |
243 |
export LC_TIME=C # bug #411967 |
244 |
|
245 |
# Related test is a bit nitpicking |
246 |
mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
247 |
chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
248 |
|
249 |
# Hardened: gdb needs this, bug #338891 |
250 |
if host-is-pax ; then |
251 |
pax-mark -mr "${S}"/tests/.libs/assert-msg-test \ |
252 |
|| die "Hardened adjustment failed" |
253 |
fi |
254 |
|
255 |
# Need X for dbus-launch session X11 initialization |
256 |
Xemake check |
257 |
} |
258 |
|
259 |
pkg_preinst() { |
260 |
# Only give the introspection message if: |
261 |
# * The user has gobject-introspection |
262 |
# * Has glib already installed |
263 |
# * Previous version was different from new version |
264 |
if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then |
265 |
ewarn "You must rebuild gobject-introspection so that the installed" |
266 |
ewarn "typelibs and girs are regenerated for the new APIs in glib" |
267 |
fi |
268 |
} |
269 |
|
270 |
pkg_postinst() { |
271 |
# Inform users about possible breakage when updating glib and not dbus-glib, bug #297483 |
272 |
if has_version dev-libs/dbus-glib; then |
273 |
ewarn "If you experience a breakage after updating dev-libs/glib try" |
274 |
ewarn "rebuilding dev-libs/dbus-glib" |
275 |
fi |
276 |
|
277 |
if has_version '<x11-libs/gtk+-3.0.12:3'; then |
278 |
# To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
279 |
# a warning instead of a blocker |
280 |
ewarn |
281 |
ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
282 |
ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
283 |
fi |
284 |
} |