1 |
commit: ab4518e2e6285248b51674cff0987eb0ca86fd5d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 16 23:49:14 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 16 23:50:35 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab4518e2 |
7 |
|
8 |
dev-libs/glib: drop 2.76.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/glib/glib-2.76.0.ebuild | 283 --------------------------------------- |
13 |
1 file changed, 283 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/glib/glib-2.76.0.ebuild b/dev-libs/glib/glib-2.76.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index 11eedb4e806c..000000000000 |
18 |
--- a/dev-libs/glib/glib-2.76.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,283 +0,0 @@ |
21 |
-# Copyright 1999-2023 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
-PYTHON_REQ_USE="xml(+)" |
26 |
-PYTHON_COMPAT=( python3_{9..11} ) |
27 |
- |
28 |
-inherit gnome.org gnome2-utils linux-info meson-multilib multilib python-any-r1 toolchain-funcs xdg |
29 |
- |
30 |
-DESCRIPTION="The GLib library of C routines" |
31 |
-HOMEPAGE="https://www.gtk.org/" |
32 |
- |
33 |
-LICENSE="LGPL-2.1+" |
34 |
-SLOT="2" |
35 |
-IUSE="dbus debug +elf gtk-doc +mime selinux static-libs sysprof systemtap test utils xattr" |
36 |
-RESTRICT="!test? ( test )" |
37 |
-REQUIRED_USE="gtk-doc? ( test )" # Bug #777636 |
38 |
- |
39 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
40 |
- |
41 |
-# * elfutils (via libelf) does not build on Windows. gresources are not embedded |
42 |
-# within ELF binaries on that platform anyway and inspecting ELF binaries from |
43 |
-# other platforms is not that useful so exclude the dependency in this case. |
44 |
-# * Technically static-libs is needed on zlib, util-linux and perhaps more, but |
45 |
-# these are used by GIO, which glib[static-libs] consumers don't really seem |
46 |
-# to need at all, thus not imposing the deps for now and once some consumers |
47 |
-# are actually found to static link libgio-2.0.a, we can revisit and either add |
48 |
-# them or just put the (build) deps in that rare consumer instead of recursive |
49 |
-# RDEPEND here (due to lack of recursive DEPEND). |
50 |
-RDEPEND=" |
51 |
- !<dev-util/gdbus-codegen-${PV} |
52 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
53 |
- >=dev-libs/libpcre2-10.32:0=[${MULTILIB_USEDEP},unicode(+),static-libs?] |
54 |
- >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] |
55 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
56 |
- >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] |
57 |
- kernel_linux? ( >=sys-apps/util-linux-2.23[${MULTILIB_USEDEP}] ) |
58 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
59 |
- xattr? ( !elibc_glibc? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) ) |
60 |
- elf? ( virtual/libelf:0= ) |
61 |
- sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] ) |
62 |
-" |
63 |
-DEPEND="${RDEPEND}" |
64 |
-# libxml2 used for optional tests that get automatically skipped |
65 |
-BDEPEND=" |
66 |
- app-text/docbook-xsl-stylesheets |
67 |
- dev-libs/libxslt |
68 |
- >=sys-devel/gettext-0.19.8 |
69 |
- gtk-doc? ( >=dev-util/gtk-doc-1.33 |
70 |
- app-text/docbook-xml-dtd:4.2 |
71 |
- app-text/docbook-xml-dtd:4.5 ) |
72 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
73 |
- ${PYTHON_DEPS} |
74 |
- test? ( >=sys-apps/dbus-1.2.14 ) |
75 |
- virtual/pkgconfig |
76 |
-" |
77 |
-# TODO: >=dev-util/gdbus-codegen-${PV} test dep once we modify gio/tests/meson.build to use external gdbus-codegen |
78 |
- |
79 |
-PDEPEND=" |
80 |
- dbus? ( gnome-base/dconf ) |
81 |
- mime? ( x11-misc/shared-mime-info ) |
82 |
-" |
83 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
84 |
-# dconf is needed to be able to save settings, bug #498436 |
85 |
- |
86 |
-MULTILIB_CHOST_TOOLS=( |
87 |
- /usr/bin/gio-querymodules$(get_exeext) |
88 |
-) |
89 |
- |
90 |
-PATCHES=( |
91 |
- "${FILESDIR}"/${PN}-2.64.1-mark-gdbus-server-auth-test-flaky.patch |
92 |
-) |
93 |
- |
94 |
-pkg_setup() { |
95 |
- if use kernel_linux ; then |
96 |
- CONFIG_CHECK="~INOTIFY_USER" |
97 |
- if use test ; then |
98 |
- CONFIG_CHECK="~IPV6" |
99 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
100 |
- fi |
101 |
- linux-info_pkg_setup |
102 |
- fi |
103 |
- python-any-r1_pkg_setup |
104 |
-} |
105 |
- |
106 |
-src_prepare() { |
107 |
- if use test; then |
108 |
- # TODO: Review the test exclusions, especially now with meson |
109 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
110 |
- if ! has_version dev-util/desktop-file-utils ; then |
111 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
112 |
- ewarn "think on installing it to get these tests run." |
113 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
114 |
- sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die |
115 |
- fi |
116 |
- |
117 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
118 |
- # other), falling back to xterm if one doesn't exist |
119 |
- #if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
120 |
- # ewarn "Some tests will be skipped due to missing terminal program" |
121 |
- # These tests seem to sometimes fail even with a terminal; skip for now and reevulate with meson |
122 |
- # 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 |
123 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
124 |
- # desktop-app-info/launch* might fail similarly |
125 |
- sed -i -e "/desktop-app-info\/launch-as-manager/d" gio/tests/desktop-app-info.c || die |
126 |
- #fi |
127 |
- |
128 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=722604 |
129 |
- sed -i -e "/timer\/stop/d" glib/tests/timer.c || die |
130 |
- sed -i -e "/timer\/basic/d" glib/tests/timer.c || die |
131 |
- |
132 |
- ewarn "Tests for search-utils have been skipped" |
133 |
- sed -i -e "/search-utils/d" glib/tests/meson.build || die |
134 |
- |
135 |
- # Play nice with network-sandbox, but this approach would defeat the purpose of the test |
136 |
- #sed -i -e "s/localhost/127.0.0.1/g" gio/tests/gsocketclient-slow.c || die |
137 |
- else |
138 |
- # Don't build tests, also prevents extra deps, bug #512022 |
139 |
- sed -i -e '/subdir.*tests/d' {.,gio,glib}/meson.build || die |
140 |
- fi |
141 |
- |
142 |
- # Don't build fuzzing binaries - not used |
143 |
- sed -i -e '/subdir.*fuzzing/d' meson.build || die |
144 |
- |
145 |
- # gdbus-codegen is a separate package |
146 |
- sed -i -e '/install_dir/d' gio/gdbus-2.0/codegen/meson.build || die |
147 |
- |
148 |
- # Same kind of meson-0.50 issue with some installed-tests files; will likely be fixed upstream soon |
149 |
- sed -i -e '/install_dir/d' gio/tests/meson.build || die |
150 |
- |
151 |
- cat > "${T}/glib-test-ld-wrapper" <<-EOF |
152 |
- #!/usr/bin/env sh |
153 |
- exec \${LD:-ld} "\$@" |
154 |
- EOF |
155 |
- chmod a+x "${T}/glib-test-ld-wrapper" || die |
156 |
- sed -i -e "s|'ld'|'${T}/glib-test-ld-wrapper'|g" gio/tests/meson.build || die |
157 |
- |
158 |
- default |
159 |
- gnome2_environment_reset |
160 |
- # TODO: python_name sedding for correct python shebang? Might be relevant mainly for glib-utils only |
161 |
-} |
162 |
- |
163 |
-multilib_src_configure() { |
164 |
- # TODO: figure a way to pass appropriate values for all cross properties that glib uses (search for get_cross_property) |
165 |
- #if tc-is-cross-compiler ; then |
166 |
- # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
167 |
- # TODO-meson: This should be in meson cross file as 'growing_stack' property; and more, look at get_cross_property |
168 |
- #case ${CHOST} in |
169 |
- #hppa*|metag*) export glib_cv_stack_grows=yes ;; |
170 |
- #*) export glib_cv_stack_grows=no ;; |
171 |
- #esac |
172 |
- #fi |
173 |
- |
174 |
- local emesonargs=( |
175 |
- --buildtype $(usex debug debug plain) |
176 |
- -Ddefault_library=$(usex static-libs both shared) |
177 |
- -Druntime_dir="${EPREFIX}"/run |
178 |
- $(meson_feature selinux) |
179 |
- $(meson_use xattr) |
180 |
- -Dlibmount=enabled # only used if host_system == 'linux' |
181 |
- -Dman=true |
182 |
- $(meson_use systemtap dtrace) |
183 |
- $(meson_use systemtap) |
184 |
- $(meson_feature sysprof) |
185 |
- $(meson_native_use_bool gtk-doc gtk_doc) |
186 |
- $(meson_use test tests) |
187 |
- -Dinstalled_tests=false |
188 |
- -Dnls=enabled |
189 |
- -Doss_fuzz=disabled |
190 |
- $(meson_native_use_feature elf libelf) |
191 |
- -Dmultiarch=false |
192 |
- ) |
193 |
- meson_src_configure |
194 |
-} |
195 |
- |
196 |
-multilib_src_test() { |
197 |
- export XDG_CONFIG_DIRS=/etc/xdg |
198 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
199 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
200 |
- export LC_TIME=C # bug #411967 |
201 |
- export TZ=UTC |
202 |
- unset GSETTINGS_BACKEND # bug #596380 |
203 |
- python_setup |
204 |
- |
205 |
- # https://bugs.gentoo.org/839807 |
206 |
- local -x SANDBOX_PREDICT=${SANDBOX_PREDICT} |
207 |
- addpredict /usr/b |
208 |
- |
209 |
- # Related test is a bit nitpicking |
210 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
211 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
212 |
- |
213 |
- meson_src_test --timeout-multiplier 2 --no-suite flaky |
214 |
-} |
215 |
- |
216 |
-multilib_src_install() { |
217 |
- meson_src_install |
218 |
- keepdir /usr/$(get_libdir)/gio/modules |
219 |
-} |
220 |
- |
221 |
-multilib_src_install_all() { |
222 |
- # These are installed by dev-util/glib-utils |
223 |
- # 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 now with meson |
224 |
- rm "${ED}/usr/bin/glib-genmarshal" || die |
225 |
- rm "${ED}/usr/share/man/man1/glib-genmarshal.1" || die |
226 |
- rm "${ED}/usr/bin/glib-mkenums" || die |
227 |
- rm "${ED}/usr/share/man/man1/glib-mkenums.1" || die |
228 |
- rm "${ED}/usr/bin/gtester-report" || die |
229 |
- rm "${ED}/usr/share/man/man1/gtester-report.1" || die |
230 |
- # gdbus-codegen manpage installed by dev-util/gdbus-codegen |
231 |
- rm "${ED}/usr/share/man/man1/gdbus-codegen.1" || die |
232 |
-} |
233 |
- |
234 |
-pkg_preinst() { |
235 |
- xdg_pkg_preinst |
236 |
- |
237 |
- # Make gschemas.compiled belong to glib alone |
238 |
- local cache="/usr/share/glib-2.0/schemas/gschemas.compiled" |
239 |
- |
240 |
- if [[ -e ${EROOT}${cache} ]]; then |
241 |
- cp "${EROOT}"${cache} "${ED}"/${cache} || die |
242 |
- else |
243 |
- touch "${ED}"${cache} || die |
244 |
- fi |
245 |
- |
246 |
- multilib_pkg_preinst() { |
247 |
- # Make giomodule.cache belong to glib alone |
248 |
- local cache="/usr/$(get_libdir)/gio/modules/giomodule.cache" |
249 |
- |
250 |
- if [[ -e ${EROOT}${cache} ]]; then |
251 |
- cp "${EROOT}"${cache} "${ED}"${cache} || die |
252 |
- else |
253 |
- touch "${ED}"${cache} || die |
254 |
- fi |
255 |
- } |
256 |
- |
257 |
- # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache |
258 |
- # file due to inability to create it and GIO might not look at any of the modules there |
259 |
- if ! tc-is-cross-compiler ; then |
260 |
- multilib_foreach_abi multilib_pkg_preinst |
261 |
- fi |
262 |
-} |
263 |
- |
264 |
-pkg_postinst() { |
265 |
- xdg_pkg_postinst |
266 |
- # glib installs no schemas itself, but we force update for fresh install in case |
267 |
- # something has dropped in a schemas file without direct glib dep; and for upgrades |
268 |
- # in case the compiled schema format could have changed |
269 |
- gnome2_schemas_update |
270 |
- |
271 |
- multilib_pkg_postinst() { |
272 |
- gnome2_giomodule_cache_update \ |
273 |
- || die "Update GIO modules cache failed (for ${ABI})" |
274 |
- } |
275 |
- if ! tc-is-cross-compiler ; then |
276 |
- multilib_foreach_abi multilib_pkg_postinst |
277 |
- else |
278 |
- ewarn "Updating of GIO modules cache skipped due to cross-compilation." |
279 |
- ewarn "You might want to run gio-querymodules manually on the target for" |
280 |
- ewarn "your final image for performance reasons and re-run it when packages" |
281 |
- ewarn "installing GIO modules get upgraded or added to the image." |
282 |
- fi |
283 |
- |
284 |
- for v in ${REPLACING_VERSIONS}; do |
285 |
- if ver_test "$v" "-lt" "2.63.6"; then |
286 |
- ewarn "glib no longer installs the gio-launch-desktop binary. You may need" |
287 |
- ewarn "to restart your session for \"Open With\" dialogs to work." |
288 |
- fi |
289 |
- done |
290 |
-} |
291 |
- |
292 |
-pkg_postrm() { |
293 |
- xdg_pkg_postrm |
294 |
- gnome2_schemas_update |
295 |
- |
296 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
297 |
- multilib_pkg_postrm() { |
298 |
- rm -f "${EROOT}"/usr/$(get_libdir)/gio/modules/giomodule.cache |
299 |
- } |
300 |
- multilib_foreach_abi multilib_pkg_postrm |
301 |
- rm -f "${EROOT}"/usr/share/glib-2.0/schemas/gschemas.compiled |
302 |
- fi |
303 |
-} |