Gentoo Archives: gentoo-commits

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