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