Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/glib: glib-2.42.2.ebuild ChangeLog
Date: Thu, 26 Feb 2015 19:25:01
Message-Id: 20150226192449.C6471129D0@oystercatcher.gentoo.org
1 pacho 15/02/26 19:24:49
2
3 Modified: ChangeLog
4 Added: glib-2.42.2.ebuild
5 Log:
6 Version bump, drop old
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.640 dev-libs/glib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.640&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.640&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.639&r2=1.640
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v
20 retrieving revision 1.639
21 retrieving revision 1.640
22 diff -u -r1.639 -r1.640
23 --- ChangeLog 11 Feb 2015 04:20:44 -0000 1.639
24 +++ ChangeLog 26 Feb 2015 19:24:49 -0000 1.640
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/glib
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.639 2015/02/11 04:20:44 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.640 2015/02/26 19:24:49 pacho Exp $
30 +
31 +*glib-2.42.2 (26 Feb 2015)
32 +
33 + 26 Feb 2015; Pacho Ramos <pacho@g.o> +glib-2.42.2.ebuild:
34 + Version bump, drop old
35
36 11 Feb 2015; Mike Frysinger <vapier@g.o> glib-2.40.2.ebuild:
37 Mark arm64/m68k/s390/sh stable.
38
39
40
41 1.1 dev-libs/glib/glib-2.42.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.42.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.42.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: glib-2.42.2.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.42.2.ebuild,v 1.1 2015/02/26 19:24:49 pacho Exp $
51
52 # Until bug #537330 glib is a reverse dependency of pkgconfig and, then
53 # adding new dependencies end up making stage3 to grow. Every addition needs
54 # then to be think very closely.
55
56 EAPI="5"
57 PYTHON_COMPAT=( python2_7 )
58 # Building with --disable-debug highly unrecommended. It will build glib in
59 # an unusable form as it disables some commonly used API. Please do not
60 # convert this to the use_enable form, as it results in a broken build.
61 GCONF_DEBUG="yes"
62 # Completely useless with or without USE static-libs, people need to use
63 # pkg-config
64 GNOME2_LA_PUNT="yes"
65
66 inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \
67 pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal
68
69 DESCRIPTION="The GLib library of C routines"
70 HOMEPAGE="http://www.gtk.org/"
71 SRC_URI="${SRC_URI}
72 http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf
73
74 LICENSE="LGPL-2+"
75 SLOT="2"
76 IUSE="dbus fam kernel_linux +mime selinux static-libs systemtap test utils xattr"
77 REQUIRED_USE="
78 utils? ( ${PYTHON_REQUIRED_USE} )
79 test? ( ${PYTHON_REQUIRED_USE} )
80 "
81
82 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
83
84 RDEPEND="
85 !<dev-util/gdbus-codegen-${PV}
86 >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
87 >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}]
88 >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
89 || (
90 >=dev-libs/elfutils-0.142
91 >=dev-libs/libelf-0.8.12
92 >=sys-freebsd/freebsd-lib-9.2_rc1
93 )
94 selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] )
95 xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] )
96 fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] )
97 utils? (
98 ${PYTHON_DEPS}
99 >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] )
100 abi_x86_32? (
101 !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
102 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
103 )
104 "
105 DEPEND="${RDEPEND}
106 app-text/docbook-xml-dtd:4.1.2
107 >=dev-libs/libxslt-1.0
108 >=sys-devel/gettext-0.11
109 >=dev-util/gtk-doc-am-1.20
110 systemtap? ( >=dev-util/systemtap-1.3 )
111 test? (
112 sys-devel/gdb
113 ${PYTHON_DEPS}
114 >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}]
115 >=sys-apps/dbus-1.2.14 )
116 !<dev-util/gtk-doc-1.15-r2
117 "
118 # gobject-introspection blocker to ensure people don't mix
119 # different g-i and glib major versions
120
121 PDEPEND="!<gnome-base/gvfs-1.6.4-r990
122 dbus? ( gnome-base/dconf )
123 mime? ( x11-misc/shared-mime-info )
124 "
125 # shared-mime-info needed for gio/xdgmime, bug #409481
126 # dconf is needed to be able to save settings, bug #498436
127 # Earlier versions of gvfs do not work with glib
128
129 pkg_setup() {
130 if use kernel_linux ; then
131 CONFIG_CHECK="~INOTIFY_USER"
132 if use test; then
133 CONFIG_CHECK="~IPV6"
134 WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them."
135 export IPV6_DISABLED="yes"
136 fi
137 linux-info_pkg_setup
138 fi
139 }
140
141 src_prepare() {
142 # Prevent build failure in stage3 where pkgconfig is not available, bug #481056
143 mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die
144
145 if use test; then
146 # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163
147 if ! has_version dev-util/desktop-file-utils ; then
148 ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
149 ewarn "think on installing it to get these tests run."
150 sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
151 sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
152 sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
153 sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
154 fi
155
156 # gdesktopappinfo requires existing terminal (gnome-terminal or any
157 # other), falling back to xterm if one doesn't exist
158 if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then
159 ewarn "Some tests will be skipped due to missing terminal program"
160 sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die
161 fi
162
163 # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853
164 if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then
165 ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3"
166 ewarn "not being present on your system, think on installing them to get these tests run."
167 sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
168 sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
169 sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
170 sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
171 sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
172 sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die
173 sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
174 # needed to prevent gdbus-threading from asserting
175 ln -sfn $(type -P true) gio/tests/gdbus-testserver.py
176 fi
177
178 # Some tests need ipv6, upstream bug #667468
179 if [[ -n "${IPV6_DISABLED}" ]]; then
180 sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die
181 sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die
182 sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die
183 fi
184
185 # thread test fails, upstream bug #679306
186 # FIXME: we need to check if it's still failing as upstream thinks something
187 # is wrong in our setups
188 #epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch"
189
190 # This test is prone to fail, bug #504024, upstream bug #723719
191 sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die
192 else
193 # Don't build tests, also prevents extra deps, bug #512022
194 sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die
195 fi
196
197 # gdbus-codegen is a separate package
198 epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch"
199
200 # leave python shebang alone
201 sed -e '/${PYTHON}/d' \
202 -i glib/Makefile.{am,in} || die
203
204 # Gentoo handles completions in a different directory
205 sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \
206 gio/Makefile.am || die
207
208 epatch_user
209
210 # Also needed to prevent cross-compile failures, see bug #267603
211 eautoreconf
212
213 gnome2_src_prepare
214
215 epunt_cxx
216 }
217
218 multilib_src_configure() {
219 # Avoid circular depend with dev-util/pkgconfig and
220 # native builds (cross-compiles won't need pkg-config
221 # in the target ROOT to work here)
222 if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then
223 if has_version sys-apps/dbus; then
224 export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
225 export DBUS1_LIBS="-ldbus-1"
226 fi
227 export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
228 export LIBFFI_LIBS="-lffi"
229 fi
230
231 local myconf
232
233 case "${CHOST}" in
234 *-mingw*) myconf="${myconf} --with-threads=win32" ;;
235 *) myconf="${myconf} --with-threads=posix" ;;
236 esac
237
238 # Only used by the gresource bin
239 multilib_is_native_abi || myconf="${myconf} --disable-libelf"
240
241 # FIXME: Always use internal libpcre, bug #254659
242 # (maybe consider going back to system lib
243 ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \
244 $(use_enable xattr) \
245 $(use_enable fam) \
246 $(use_enable selinux) \
247 $(use_enable static-libs static) \
248 $(use_enable systemtap dtrace) \
249 $(use_enable systemtap systemtap) \
250 --disable-compile-warnings \
251 --enable-man \
252 --with-pcre=internal \
253 --with-xml-catalog="${EPREFIX}/etc/xml/catalog"
254
255 if multilib_is_native_abi; then
256 local d
257 for d in glib gio gobject; do
258 ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
259 done
260 fi
261 }
262
263 multilib_src_test() {
264 unset DBUS_SESSION_BUS_ADDRESS
265 export XDG_CONFIG_DIRS=/etc/xdg
266 export XDG_DATA_DIRS=/usr/local/share:/usr/share
267 export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
268 unset GSETTINGS_BACKEND # bug 352451
269 export LC_TIME=C # bug #411967
270 python_export_best
271
272 # Related test is a bit nitpicking
273 mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
274 chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
275
276 # Hardened: gdb needs this, bug #338891
277 if host-is-pax ; then
278 pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \
279 || die "Hardened adjustment failed"
280 fi
281
282 # Need X for dbus-launch session X11 initialization
283 Xemake check
284 }
285
286 multilib_src_install() {
287 gnome2_src_install
288 }
289
290 multilib_src_install_all() {
291 DOCS="AUTHORS ChangeLog* NEWS* README"
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
308 pkg_postinst() {
309 gnome2_pkg_postinst
310 if has_version '<x11-libs/gtk+-3.0.12:3'; then
311 # To have a clear upgrade path for gtk+-3.0.x users, have to resort to
312 # a warning instead of a blocker
313 ewarn
314 ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
315 ewarn "You should upgrade to a newer version of gtk+:3 immediately."
316 fi
317 }