Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/glib: glib-2.38.2.ebuild ChangeLog metadata.xml
Date: Mon, 23 Dec 2013 22:38:12
Message-Id: 20131223223808.222272004E@flycatcher.gentoo.org
1 eva 13/12/23 22:38:08
2
3 Modified: ChangeLog metadata.xml
4 Added: glib-2.38.2.ebuild
5 Log:
6 Version bump for Gnome 3.10. Refresh patches with git headers.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C6085806)
9
10 Revision Changes Path
11 1.587 dev-libs/glib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.587&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.587&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.586&r2=1.587
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v
20 retrieving revision 1.586
21 retrieving revision 1.587
22 diff -u -r1.586 -r1.587
23 --- ChangeLog 22 Dec 2013 15:34:41 -0000 1.586
24 +++ ChangeLog 23 Dec 2013 22:38:07 -0000 1.587
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-libs/glib
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.586 2013/12/22 15:34:41 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.587 2013/12/23 22:38:07 eva Exp $
30 +
31 +*glib-2.38.2 (23 Dec 2013)
32 +
33 + 23 Dec 2013; Gilles Dartiguelongue <eva@g.o> +glib-2.38.2.ebuild,
34 + files/glib-2.12.12-fbsd.patch,
35 + files/glib-2.34.0-testsuite-skip-thread4.patch,
36 + files/glib-2.36.4-znodelete.patch,
37 + +files/glib-2.37.x-external-gdbus-codegen.patch, metadata.xml:
38 + Version bump for Gnome 3.10. Refresh patches with git headers.
39
40 22 Dec 2013; Jeroen Roovers <jer@g.o> glib-2.36.4-r1.ebuild:
41 Stable for HPPA (bug #478252).
42
43
44
45 1.7 dev-libs/glib/metadata.xml
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?rev=1.7&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?rev=1.7&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/metadata.xml?r1=1.6&r2=1.7
50
51 Index: metadata.xml
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/metadata.xml,v
54 retrieving revision 1.6
55 retrieving revision 1.7
56 diff -u -r1.6 -r1.7
57 --- metadata.xml 5 Jun 2013 00:16:40 -0000 1.6
58 +++ metadata.xml 23 Dec 2013 22:38:07 -0000 1.7
59 @@ -8,7 +8,4 @@
60 <flag name="utils">Install gtester-report utility to generate test
61 report files for your software.</flag>
62 </use>
63 - <upstream>
64 - <remote-id type="cpe">cpe:/a:gnome:glib</remote-id>
65 - </upstream>
66 </pkgmetadata>
67
68
69
70 1.1 dev-libs/glib/glib-2.38.2.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.38.2.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.38.2.ebuild?rev=1.1&content-type=text/plain
74
75 Index: glib-2.38.2.ebuild
76 ===================================================================
77 # Copyright 1999-2013 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.38.2.ebuild,v 1.1 2013/12/23 22:38:07 eva Exp $
80
81 EAPI="5"
82 PYTHON_COMPAT=( python2_{6,7} )
83 # Avoid runtime dependency on python when USE=test
84
85 inherit autotools bash-completion-r1 gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
86
87 DESCRIPTION="The GLib library of C routines"
88 HOMEPAGE="http://www.gtk.org/"
89 SRC_URI="${SRC_URI}
90 http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
91
92 LICENSE="LGPL-2+"
93 SLOT="2"
94 IUSE="debug fam kernel_linux selinux static-libs systemtap test utils xattr"
95 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
96
97 # FIXME: want libselinux[${MULTILIB_USEDEP}] - bug #480960
98 RDEPEND="
99 virtual/libiconv[${MULTILIB_USEDEP}]
100 virtual/libffi[${MULTILIB_USEDEP}]
101 sys-libs/zlib[${MULTILIB_USEDEP}]
102 || (
103 >=dev-libs/elfutils-0.142
104 >=dev-libs/libelf-0.8.12
105 >=sys-freebsd/freebsd-lib-9.2_rc1
106 )
107 selinux? ( sys-libs/libselinux )
108 xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] )
109 fam? ( virtual/fam[${MULTILIB_USEDEP}] )
110 utils? (
111 ${PYTHON_DEPS}
112 >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] )
113 abi_x86_32? (
114 !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
115 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
116 )
117 "
118 DEPEND="${RDEPEND}
119 app-text/docbook-xml-dtd:4.1.2
120 >=dev-libs/libxslt-1.0
121 >=sys-devel/gettext-0.11
122 >=dev-util/gtk-doc-am-1.15
123 systemtap? ( >=dev-util/systemtap-1.3 )
124 test? (
125 sys-devel/gdb
126 ${PYTHON_DEPS}
127 >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
128 >=sys-apps/dbus-1.2.14 )
129 !<dev-libs/gobject-introspection-1.$(get_version_component_range 2)
130 !<dev-util/gtk-doc-1.15-r2
131 "
132 # gobject-introspection blocker to ensure people don't mix
133 # different g-i and glib major versions
134
135 PDEPEND="x11-misc/shared-mime-info
136 !<gnome-base/gvfs-1.6.4-r990"
137 # shared-mime-info needed for gio/xdgmime, bug #409481
138 # Earlier versions of gvfs do not work with glib
139
140 DOCS="AUTHORS ChangeLog* NEWS* README"
141
142 pkg_setup() {
143 if use kernel_linux ; then
144 CONFIG_CHECK="~INOTIFY_USER"
145 if use test; then
146 CONFIG_CHECK="~IPV6"
147 WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
148 export IPV6_DISABLED="yes"
149 fi
150 linux-info_pkg_setup
151 fi
152 }
153
154 src_prepare() {
155 # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
156 mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
157
158 # Fix gmodule issues on fbsd; bug #184301, upstream bug #107626
159 epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
160
161 if use test; then
162 # Do not try to remove files on live filesystem, upstream bug #619274
163 sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
164 -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
165
166 # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
167 if ! has_version dev-util/desktop-file-utils ; then
168 ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
169 ewarn "think on installing it to get these tests run."
170 sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
171 sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
172 sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
173 sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
174 fi
175
176 # gdesktopappinfo requires existing terminal (gnome-terminal or any
177 # other), falling back to xterm if one doesn't exist
178 if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
179 ewarn "Some tests will be skipped due to missing terminal program"
180 sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
181 fi
182
183 # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
184 if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then
185 ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3"
186 ewarn "not being present on your system, think on installing them to get these tests run."
187 sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
188 sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
189 sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
190 sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
191 sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
192 sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
193 sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
194 # needed to prevent gdbus-threading from asserting
195 ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
196 fi
197
198 # Some tests need ipv6, upstream bug #667468
199 if [[ -n "${IPV6_DISABLED}" ]]; then
200 sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die
201 sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die
202 sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die
203 fi
204
205 # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655
206 sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die
207 fi
208
209 # thread test fails, upstream bug #679306
210 epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch"
211
212 # gdbus-codegen is a separate package
213 epatch "${FILESDIR}/${PN}-2.37.x-external-gdbus-codegen.patch"
214
215 # do not allow libgobject to unload; bug #405173, https://bugzilla.gnome.org/show_bug.cgi?id=707298
216 epatch "${FILESDIR}/${PN}-2.36.4-znodelete.patch"
217
218 # leave python shebang alone
219 sed -e '/${PYTHON}/d' \
220 -i glib/Makefile.{am,in} || die
221
222 # Gentoo handles completions in a different directory
223 sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \
224 gio/Makefile.am || die
225
226 # Support compilation in clang until upstream solves this, upstream bug #691608
227 append-flags -Wno-format-nonliteral
228
229 epatch_user
230
231 # Needed for the punt-python-check patch, disabling timeout test
232 # Also needed to prevent cross-compile failures, see bug #267603
233 # Also needed for the no-gdbus-codegen patch
234 eautoreconf
235
236 # FIXME: Really needed when running eautoreconf before? bug#????
237 #[[ ${CHOST} == *-freebsd* ]] && elibtoolize
238
239 epunt_cxx
240 }
241
242 multilib_src_configure() {
243 # Avoid circular depend with dev-util/pkgconfig and
244 # native builds (cross-compiles won't need pkg-config
245 # in the target ROOT to work here)
246 if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
247 if has_version sys-apps/dbus; then
248 export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
249 export DBUS1_LIBS="-ldbus-1"
250 fi
251 export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
252 export LIBFFI_LIBS="-lffi"
253 fi
254
255 local myconf
256
257 case "${CHOST}" in
258 *-mingw*) myconf="${myconf} --with-threads=win32" ;;
259 *) myconf="${myconf} --with-threads=posix" ;;
260 esac
261
262 # Building with --disable-debug highly unrecommended. It will build glib in
263 # an unusable form as it disables some commonly used API. Please do not
264 # convert this to the use_enable form, as it results in a broken build.
265 use debug && myconf="--enable-debug"
266
267 # Only used by the gresource bin
268 multilib_is_native_abi || myconf="${myconf} --disable-libelf"
269
270 # FIXME: change to "$(use_enable selinux)" when libselinux is multilibbed, bug #480960
271 if multilib_is_native_abi; then
272 myconf="${myconf} $(use_enable selinux)"
273 else
274 myconf="${myconf} --disable-selinux"
275 fi
276
277 # Always use internal libpcre, bug #254659
278 ECONF_SOURCE="${S}" econf ${myconf} \
279 $(use_enable xattr) \
280 $(use_enable fam) \
281 $(use_enable selinux) \
282 $(use_enable static-libs static) \
283 $(use_enable systemtap dtrace) \
284 $(use_enable systemtap systemtap) \
285 --disable-compile-warnings \
286 --enable-man \
287 --with-pcre=internal \
288 --with-xml-catalog="${EPREFIX}/etc/xml/catalog"
289 }
290
291 multilib_src_install_all() {
292 einstalldocs
293
294 if use utils ; then
295 python_replicate_script "${ED}"/usr/bin/gtester-report
296 else
297 rm "${ED}usr/bin/gtester-report"
298 rm "${ED}usr/share/man/man1/gtester-report.1"
299 fi
300
301 # Do not install charset.alias even if generated, leave it to libiconv
302 rm -f "${ED}/usr/lib/charset.alias"
303
304 # Don't install gdb python macros, bug 291328
305 rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
306
307 # Completely useless with or without USE static-libs, people need to use
308 # pkg-config
309 prune_libtool_files --modules
310 }
311
312 multilib_src_test() {
313 gnome2_environment_reset
314
315 unset DBUS_SESSION_BUS_ADDRESS
316 export XDG_CONFIG_DIRS=/etc/xdg
317 export XDG_DATA_DIRS=/usr/local/share:/usr/share
318 export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
319 unset GSETTINGS_BACKEND # bug 352451
320 export LC_TIME=C # bug #411967
321 python_export_best
322
323 # Related test is a bit nitpicking
324 mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
325 chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
326
327 # Hardened: gdb needs this, bug #338891
328 if host-is-pax ; then
329 pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
330 || die "Hardened adjustment failed"
331 fi
332
333 # Need X for dbus-launch session X11 initialization
334 Xemake check
335 }
336
337 pkg_postinst() {
338 if has_version '<x11-libs/gtk+-3.0.12:3'; then
339 # To have a clear upgrade path for gtk+-3.0.x users, have to resort to
340 # a warning instead of a blocker
341 ewarn
342 ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
343 ewarn "You should upgrade to a newer version of gtk+:3 immediately."
344 fi
345 }