1 |
commit: 25392f35b08f67c3cbd2010b28c6b5576d88cce5 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 30 20:01:25 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 30 20:36:59 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25392f35 |
7 |
|
8 |
dev-libs/glib: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
dev-libs/glib/Manifest | 1 - |
14 |
dev-libs/glib/glib-2.58.2.ebuild | 313 --------------------------------------- |
15 |
2 files changed, 314 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest |
18 |
index 8bef3f8d337..9f539cd8493 100644 |
19 |
--- a/dev-libs/glib/Manifest |
20 |
+++ b/dev-libs/glib/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
DIST glib-2.56.4.tar.xz 7029768 BLAKE2B 21cf840128e468151eeac55f0323f8f643973422b70bb65655e24c0a6b2f7ee72d5ae879bfae73df84fa2281fc425cc98328597910ba8fd99d7a52024e1b3ab6 SHA512 280a46c2af13283a08c15ff0b4f5492659c2884521930600ad45310ed181c44a878ad8f9b36bae68ed6e7d92db6f1630f7bf015148c513dc317d25807f13abb0 |
23 |
-DIST glib-2.58.2.tar.xz 4862612 BLAKE2B e94d3dfc5d4b6d100c2425fda34c90fdf643fdb71b8bd65df691e34d11bfaf79fdc4c844eb215df24b0f680991fb0d0c08c3bb3dea61f5157ccd8bec200e2059 SHA512 4017ae308f2ef6313abbff2eb9b21ec6f8fa38935007491ca0cb4d1ffac6fedab6f50e911ac088995d6212323ba1767399f18529a2620d60378ecade193b4b1a |
24 |
DIST glib-2.58.3.tar.xz 4863648 BLAKE2B 4269bd6e80869f39d567917438f750561debb1b45d40ecea487d2e76e2468e07dc8d80a23678699f7b8f7778c2ed9d29e866ae5e33770f51ed00709dd5fe97eb SHA512 1e1cb5b607367dcbadb95563d463e81702cf396b28f1173f6d933707f4f3d5595a70225423e918807a05994a24f16fa3ac87d2ec67e4b670244ea99836634cce |
25 |
DIST pkg-config-0.28.tar.gz 1931203 BLAKE2B bafdd4e838623965c6bd454421ddd9051fc43fc29948e1615b49fef463c3c3a18807aabe6416f96cfdf58d6b1c9e114d77f97bd985facee7c14284a8a64a768b SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 |
26 |
|
27 |
diff --git a/dev-libs/glib/glib-2.58.2.ebuild b/dev-libs/glib/glib-2.58.2.ebuild |
28 |
deleted file mode 100644 |
29 |
index e8e80b9e3e4..00000000000 |
30 |
--- a/dev-libs/glib/glib-2.58.2.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,313 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
38 |
-GNOME2_EAUTORECONF=yes |
39 |
- |
40 |
-inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \ |
41 |
- multilib multilib-minimal pax-utils python-any-r1 toolchain-funcs virtualx |
42 |
- |
43 |
-# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
44 |
-# adding new dependencies end up making stage3 to grow. Every addition needs |
45 |
-# then to be think very closely. |
46 |
- |
47 |
-DESCRIPTION="The GLib library of C routines" |
48 |
-HOMEPAGE="https://www.gtk.org/" |
49 |
-SRC_URI="${SRC_URI} |
50 |
- https://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
51 |
- |
52 |
-LICENSE="LGPL-2.1+" |
53 |
-SLOT="2" |
54 |
-IUSE="dbus debug fam gtk-doc kernel_linux +mime selinux static-libs systemtap test utils xattr" |
55 |
- |
56 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
57 |
- |
58 |
-# Added util-linux multilib dependency to have libmount support (which |
59 |
-# is always turned on on linux systems, unless explicitly disabled, but |
60 |
-# this ebuild does not do that anyway) (bug #599586) |
61 |
- |
62 |
-RDEPEND=" |
63 |
- !<dev-util/gdbus-codegen-${PV} |
64 |
- >=dev-libs/libpcre-8.31:3[${MULTILIB_USEDEP},static-libs?] |
65 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
66 |
- >=virtual/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] |
67 |
- >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] |
68 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
69 |
- kernel_linux? ( >=sys-apps/util-linux-2.23[${MULTILIB_USEDEP}] ) |
70 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
71 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
72 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
73 |
- utils? ( |
74 |
- >=dev-util/gdbus-codegen-${PV} |
75 |
- virtual/libelf:0= |
76 |
- ) |
77 |
-" |
78 |
-DEPEND="${RDEPEND} |
79 |
- app-text/docbook-xml-dtd:4.1.2 |
80 |
- app-text/docbook-xsl-stylesheets |
81 |
- >=dev-libs/libxslt-1.0 |
82 |
- >=sys-devel/gettext-0.11 |
83 |
- gtk-doc? ( >=dev-util/gtk-doc-1.20 ) |
84 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
85 |
- ${PYTHON_DEPS} |
86 |
- test? ( |
87 |
- sys-devel/gdb |
88 |
- >=dev-util/gdbus-codegen-${PV} |
89 |
- >=sys-apps/dbus-1.2.14 ) |
90 |
-" |
91 |
-# configure.ac has gtk-doc-am stuff behind m4_ifdef, so we don't need a gtk-doc-am build dep |
92 |
- |
93 |
-# Migration of glib-genmarshal, glib-mkenums and gtester-report to a separate |
94 |
-# python depending package, which can be buildtime depended in packages that |
95 |
-# need these tools, without pulling in python at runtime. |
96 |
-RDEPEND="${RDEPEND} |
97 |
- >=dev-util/glib-utils-${PV}" |
98 |
-PDEPEND=" |
99 |
- dbus? ( gnome-base/dconf ) |
100 |
- mime? ( x11-misc/shared-mime-info ) |
101 |
-" |
102 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
103 |
-# dconf is needed to be able to save settings, bug #498436 |
104 |
- |
105 |
-MULTILIB_CHOST_TOOLS=( |
106 |
- /usr/bin/gio-querymodules$(get_exeext) |
107 |
-) |
108 |
- |
109 |
-pkg_setup() { |
110 |
- if use kernel_linux ; then |
111 |
- CONFIG_CHECK="~INOTIFY_USER" |
112 |
- if use test ; then |
113 |
- CONFIG_CHECK="~IPV6" |
114 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
115 |
- fi |
116 |
- linux-info_pkg_setup |
117 |
- fi |
118 |
- python-any-r1_pkg_setup |
119 |
-} |
120 |
- |
121 |
-src_prepare() { |
122 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
123 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
124 |
- |
125 |
- if use test; then |
126 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
127 |
- if ! has_version dev-util/desktop-file-utils ; then |
128 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
129 |
- ewarn "think on installing it to get these tests run." |
130 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
131 |
- sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die |
132 |
- fi |
133 |
- |
134 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
135 |
- # other), falling back to xterm if one doesn't exist |
136 |
- #if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
137 |
- # ewarn "Some tests will be skipped due to missing terminal program" |
138 |
- # These tests seem to sometimes fail even with a terminal; skip for now and reevulate with meson |
139 |
- # Also try https://gitlab.gnome.org/GNOME/glib/issues/1601 once ready for backport (or in a bump) and file new issue if still fails |
140 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
141 |
- # desktop-app-info/launch* might fail similarly |
142 |
- sed -i -e "/desktop-app-info\/launch-as-manager/d" gio/tests/desktop-app-info.c || die |
143 |
- #fi |
144 |
- |
145 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=722604 |
146 |
- sed -i -e "/timer\/stop/d" glib/tests/timer.c || die |
147 |
- sed -i -e "/timer\/basic/d" glib/tests/timer.c || die |
148 |
- |
149 |
- ewarn "Tests for search-utils have been skipped" |
150 |
- sed -i -e "/search-utils/d" glib/tests/Makefile.am || die |
151 |
- else |
152 |
- # Don't build tests, also prevents extra deps, bug #512022 |
153 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
154 |
- fi |
155 |
- |
156 |
- # gdbus-codegen is a separate package |
157 |
- eapply "${FILESDIR}"/${PN}-2.58.2-external-gdbus-codegen.patch |
158 |
- |
159 |
- # https://gitlab.gnome.org/GNOME/glib/issues/1626 |
160 |
- eapply "${FILESDIR}"/${P}-gvariant-test-fix.patch |
161 |
- |
162 |
- # Tarball doesn't come with gtk-doc.make and we can't unconditionally depend on dev-util/gtk-doc due |
163 |
- # to circular deps during bootstramp. If actually not building gtk-doc, an almost empty file will do |
164 |
- # fine as well - this is also what upstream autogen.sh does if gtkdocize is not found. If gtk-doc is |
165 |
- # installed, eautoreconf will call gtkdocize, which overwrites the empty gtk-doc.make with a full copy. |
166 |
- cat > gtk-doc.make << EOF |
167 |
-EXTRA_DIST = |
168 |
-CLEANFILES = |
169 |
-EOF |
170 |
- |
171 |
- gnome2_src_prepare |
172 |
- epunt_cxx |
173 |
-} |
174 |
- |
175 |
-multilib_src_configure() { |
176 |
- # Avoid circular depend with dev-util/pkgconfig and |
177 |
- # native builds (cross-compiles won't need pkg-config |
178 |
- # in the target ROOT to work here) |
179 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
180 |
- if has_version sys-apps/dbus; then |
181 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
182 |
- export DBUS1_LIBS="-ldbus-1" |
183 |
- fi |
184 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
185 |
- export LIBFFI_LIBS="-lffi" |
186 |
- export PCRE_CFLAGS=" " # test -n "$PCRE_CFLAGS" needs to pass |
187 |
- export PCRE_LIBS="-lpcre" |
188 |
- fi |
189 |
- |
190 |
- # These configure tests don't work when cross-compiling. |
191 |
- if tc-is-cross-compiler ; then |
192 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
193 |
- case ${CHOST} in |
194 |
- hppa*|metag*) export glib_cv_stack_grows=yes ;; |
195 |
- *) export glib_cv_stack_grows=no ;; |
196 |
- esac |
197 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
198 |
- export glib_cv_uscore=no |
199 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
200 |
- export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
201 |
- fi |
202 |
- |
203 |
- local myconf |
204 |
- |
205 |
- case "${CHOST}" in |
206 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
207 |
- *) myconf="${myconf} --with-threads=posix" ;; |
208 |
- esac |
209 |
- |
210 |
- # libelf used only by the gresource bin |
211 |
- ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
212 |
- $(usex debug --enable-debug=yes ' ') \ |
213 |
- $(use_enable xattr) \ |
214 |
- $(use_enable fam) \ |
215 |
- $(multilib_native_use_enable gtk-doc) \ |
216 |
- $(use_enable kernel_linux libmount) \ |
217 |
- $(use_enable selinux) \ |
218 |
- $(use_enable static-libs static) \ |
219 |
- $(use_enable systemtap dtrace) \ |
220 |
- $(use_enable systemtap systemtap) \ |
221 |
- $(multilib_native_use_enable utils libelf) \ |
222 |
- --with-python=${EPYTHON} \ |
223 |
- --disable-compile-warnings \ |
224 |
- --enable-man \ |
225 |
- --with-pcre=system \ |
226 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
227 |
- |
228 |
- if multilib_is_native_abi; then |
229 |
- local d |
230 |
- for d in glib gio gobject; do |
231 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
232 |
- done |
233 |
- fi |
234 |
-} |
235 |
- |
236 |
-multilib_src_test() { |
237 |
- export XDG_CONFIG_DIRS=/etc/xdg |
238 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
239 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
240 |
- export LC_TIME=C # bug #411967 |
241 |
- unset GSETTINGS_BACKEND # bug #596380 |
242 |
- python_setup |
243 |
- |
244 |
- # Related test is a bit nitpicking |
245 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
246 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
247 |
- |
248 |
- # Hardened: gdb needs this, bug #338891 |
249 |
- if host-is-pax ; then |
250 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
251 |
- || die "Hardened adjustment failed" |
252 |
- fi |
253 |
- |
254 |
- # Need X for dbus-launch session X11 initialization |
255 |
- virtx emake check |
256 |
-} |
257 |
- |
258 |
-multilib_src_install() { |
259 |
- emake DESTDIR="${D}" completiondir="$(get_bashcompdir)" install |
260 |
- keepdir /usr/$(get_libdir)/gio/modules |
261 |
-} |
262 |
- |
263 |
-multilib_src_install_all() { |
264 |
- einstalldocs |
265 |
- |
266 |
- # These are installed by dev-util/glib-utils |
267 |
- # TODO: With patching we might be able to get rid of the python-any deps and removals, and test depend on glib-utils instead; revisit with meson |
268 |
- rm "${ED}usr/bin/glib-genmarshal" || die |
269 |
- rm "${ED}usr/share/man/man1/glib-genmarshal.1" || die |
270 |
- rm "${ED}usr/bin/glib-mkenums" || die |
271 |
- rm "${ED}usr/share/man/man1/glib-mkenums.1" || die |
272 |
- rm "${ED}usr/bin/gtester-report" || die |
273 |
- rm "${ED}usr/share/man/man1/gtester-report.1" || die |
274 |
- |
275 |
- # Do not install charset.alias even if generated, leave it to libiconv |
276 |
- rm -f "${ED}/usr/$(get_libdir)/charset.alias" |
277 |
- |
278 |
- # Don't install gdb python macros, bug 291328 |
279 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
280 |
- |
281 |
- # Completely useless with or without USE static-libs, people need to use pkg-config |
282 |
- find "${ED}" -name '*.la' -delete || die |
283 |
-} |
284 |
- |
285 |
-pkg_preinst() { |
286 |
- gnome2_pkg_preinst |
287 |
- |
288 |
- # Make gschemas.compiled belong to glib alone |
289 |
- local cache="usr/share/glib-2.0/schemas/gschemas.compiled" |
290 |
- |
291 |
- if [[ -e ${EROOT}${cache} ]]; then |
292 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
293 |
- else |
294 |
- touch "${ED}"/${cache} || die |
295 |
- fi |
296 |
- |
297 |
- multilib_pkg_preinst() { |
298 |
- # Make giomodule.cache belong to glib alone |
299 |
- local cache="usr/$(get_libdir)/gio/modules/giomodule.cache" |
300 |
- |
301 |
- if [[ -e ${EROOT}${cache} ]]; then |
302 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
303 |
- else |
304 |
- touch "${ED}"/${cache} || die |
305 |
- fi |
306 |
- } |
307 |
- |
308 |
- # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache |
309 |
- # file due to inability to create it and GIO might not look at any of the modules there |
310 |
- if ! tc-is-cross-compiler ; then |
311 |
- multilib_foreach_abi multilib_pkg_preinst |
312 |
- fi |
313 |
-} |
314 |
- |
315 |
-pkg_postinst() { |
316 |
- # force (re)generation of gschemas.compiled |
317 |
- GNOME2_ECLASS_GLIB_SCHEMAS="force" |
318 |
- |
319 |
- gnome2_pkg_postinst |
320 |
- |
321 |
- multilib_pkg_postinst() { |
322 |
- gnome2_giomodule_cache_update \ |
323 |
- || die "Update GIO modules cache failed (for ${ABI})" |
324 |
- } |
325 |
- if ! tc-is-cross-compiler ; then |
326 |
- multilib_foreach_abi multilib_pkg_postinst |
327 |
- else |
328 |
- ewarn "Updating of GIO modules cache skipped due to cross-compilation." |
329 |
- ewarn "You might want to run gio-querymodules manually on the target for" |
330 |
- ewarn "your final image for performance reasons and re-run it when packages" |
331 |
- ewarn "installing GIO modules get upgraded or added to the image." |
332 |
- fi |
333 |
-} |
334 |
- |
335 |
-pkg_postrm() { |
336 |
- gnome2_pkg_postrm |
337 |
- |
338 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
339 |
- multilib_pkg_postrm() { |
340 |
- rm -f "${EROOT}"usr/$(get_libdir)/gio/modules/giomodule.cache |
341 |
- } |
342 |
- multilib_foreach_abi multilib_pkg_postrm |
343 |
- rm -f "${EROOT}"usr/share/glib-2.0/schemas/gschemas.compiled |
344 |
- fi |
345 |
-} |