1 |
commit: 31c164fcedb53230fcf0246ef7d5a1234431cfe8 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 3 01:09:45 2014 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 3 01:09:45 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=31c164fc |
7 |
|
8 |
dev-libs/glib: removed since in tree works with patched build-docbook-catalog |
9 |
|
10 |
Package-Manager: portage-2.2.8-r2 |
11 |
Manifest-Sign-Key: 0xF52D4BBA |
12 |
|
13 |
--- |
14 |
dev-libs/glib/files/glib-2.12.12-fbsd.patch | 35 --- |
15 |
.../files/glib-2.31.x-external-gdbus-codegen.patch | 99 -------- |
16 |
.../glib/files/glib-2.32.4-CVE-2012-3524.patch | 247 ------------------ |
17 |
.../files/glib-2.32.4-always-include-fcntl.h-patch | 15 -- |
18 |
dev-libs/glib/files/glib-2.32.4-bashcomp.patch | 27 -- |
19 |
.../files/glib-2.34.0-testsuite-skip-thread4.patch | 44 ---- |
20 |
.../glib/files/glib-2.34.3-automake-1.13.patch | 23 -- |
21 |
.../files/glib-2.35.x-external-gdbus-codegen.patch | 111 -------- |
22 |
dev-libs/glib/files/glib-2.36.4-znodelete.patch | 65 ----- |
23 |
.../files/glib-2.37.x-external-gdbus-codegen.patch | 111 -------- |
24 |
dev-libs/glib/files/glib-2.38.2-configure.patch | 24 -- |
25 |
dev-libs/glib/files/glib-2.38.2-sigaction.patch | 23 -- |
26 |
.../files/glib-2.40.0-external-gdbus-codegen.patch | 95 ------- |
27 |
dev-libs/glib/glib-2.36.4-r99.ebuild | 274 -------------------- |
28 |
dev-libs/glib/glib-2.38.2-r99.ebuild | 274 -------------------- |
29 |
dev-libs/glib/glib-2.40.0-r99.ebuild | 280 --------------------- |
30 |
dev-libs/glib/metadata.xml | 14 -- |
31 |
17 files changed, 1761 deletions(-) |
32 |
|
33 |
diff --git a/dev-libs/glib/files/glib-2.12.12-fbsd.patch b/dev-libs/glib/files/glib-2.12.12-fbsd.patch |
34 |
deleted file mode 100644 |
35 |
index 5aca695..0000000 |
36 |
--- a/dev-libs/glib/files/glib-2.12.12-fbsd.patch |
37 |
+++ /dev/null |
38 |
@@ -1,35 +0,0 @@ |
39 |
-From deeb71226d4ab465d48805d899ec88eb836a6966 Mon Sep 17 00:00:00 2001 |
40 |
-From: Daniel Gryniewicz <dang@g.o> |
41 |
-Date: Sun, 24 Nov 2013 19:46:13 +0100 |
42 |
-Subject: [PATCH 1/4] Fix gmodule issue on FreeBSD |
43 |
- |
44 |
-Gentoo bug #184301, Gnome bug #107626. |
45 |
---- |
46 |
- gmodule/gmodule-dl.c | 4 ++++ |
47 |
- 1 file changed, 4 insertions(+) |
48 |
- |
49 |
-diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c |
50 |
-index a606f17..57fc41b 100644 |
51 |
---- a/gmodule/gmodule-dl.c |
52 |
-+++ b/gmodule/gmodule-dl.c |
53 |
-@@ -107,6 +107,7 @@ _g_module_open (const gchar *file_name, |
54 |
- static gpointer |
55 |
- _g_module_self (void) |
56 |
- { |
57 |
-+#ifndef __FreeBSD__ |
58 |
- gpointer handle; |
59 |
- |
60 |
- /* to query symbols from the program itself, special link options |
61 |
-@@ -122,6 +123,9 @@ _g_module_self (void) |
62 |
- g_module_set_error (fetch_dlerror (TRUE)); |
63 |
- |
64 |
- return handle; |
65 |
-+#else |
66 |
-+ return RTLD_DEFAULT; |
67 |
-+#endif |
68 |
- } |
69 |
- |
70 |
- static void |
71 |
--- |
72 |
-1.8.3.2 |
73 |
- |
74 |
|
75 |
diff --git a/dev-libs/glib/files/glib-2.31.x-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.31.x-external-gdbus-codegen.patch |
76 |
deleted file mode 100644 |
77 |
index df1378e..0000000 |
78 |
--- a/dev-libs/glib/files/glib-2.31.x-external-gdbus-codegen.patch |
79 |
+++ /dev/null |
80 |
@@ -1,99 +0,0 @@ |
81 |
-From 732f04b55f59b8107a7fbe317317edb5f184ea8f Mon Sep 17 00:00:00 2001 |
82 |
-From: Priit Laes <plaes@×××××.org> |
83 |
-Date: Fri, 3 Feb 2012 09:08:28 +0200 |
84 |
-Subject: [PATCH] Split out gdbus codegen |
85 |
- |
86 |
---- |
87 |
- configure.ac | 4 +--- |
88 |
- docs/reference/gio/Makefile.am | 3 +-- |
89 |
- gio/Makefile.am | 2 +- |
90 |
- gio/tests/Makefile.am | 6 ++---- |
91 |
- gio/tests/gdbus-object-manager-example/Makefile.am | 6 ++---- |
92 |
- 5 files changed, 7 insertions(+), 14 deletions(-) |
93 |
- |
94 |
-diff --git a/configure.ac b/configure.ac |
95 |
-index 4cf04a1..0bb18c8 100644 |
96 |
---- a/configure.ac |
97 |
-+++ b/configure.ac |
98 |
-@@ -356,7 +356,7 @@ fi |
99 |
- AC_SUBST(PERL_PATH) |
100 |
- |
101 |
- # Need suitable python path for greport |
102 |
--AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
103 |
-+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
104 |
- |
105 |
- |
106 |
- dnl *********************** |
107 |
-@@ -3525,8 +3525,6 @@ gobject/glib-mkenums |
108 |
- gobject/tests/Makefile |
109 |
- gthread/Makefile |
110 |
- gio/Makefile |
111 |
--gio/gdbus-2.0/codegen/Makefile |
112 |
--gio/gdbus-2.0/codegen/config.py |
113 |
- gio/xdgmime/Makefile |
114 |
- gio/inotify/Makefile |
115 |
- gio/fen/Makefile |
116 |
-diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am |
117 |
-index 535aa26..5027dd5 100644 |
118 |
---- a/docs/reference/gio/Makefile.am |
119 |
-+++ b/docs/reference/gio/Makefile.am |
120 |
-@@ -144,8 +144,7 @@ man_MANS = \ |
121 |
- glib-compile-resources.1 \ |
122 |
- gsettings.1 \ |
123 |
- gresource.1 \ |
124 |
-- gdbus.1 \ |
125 |
-- gdbus-codegen.1 |
126 |
-+ gdbus.1 |
127 |
- |
128 |
- if ENABLE_MAN |
129 |
- |
130 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
131 |
-index 67eeae6..277931b 100644 |
132 |
---- a/gio/Makefile.am |
133 |
-+++ b/gio/Makefile.am |
134 |
-@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl |
135 |
- |
136 |
- NULL = |
137 |
- |
138 |
--SUBDIRS = gdbus-2.0/codegen |
139 |
-+SUBDIRS = |
140 |
- |
141 |
- if OS_UNIX |
142 |
- SUBDIRS += xdgmime |
143 |
-diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
144 |
-index e987fd1..66af8cf 100644 |
145 |
---- a/gio/tests/Makefile.am |
146 |
-+++ b/gio/tests/Makefile.am |
147 |
-@@ -275,10 +275,8 @@ gdbus_close_pending_SOURCES = gdbus-close-pending.c gdbus-sessionbus.c gdbus-ses |
148 |
- gdbus_close_pending_LDADD = $(progs_ldadd) |
149 |
- |
150 |
- if OS_UNIX |
151 |
--gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
152 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
153 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
154 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
155 |
-+gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile |
156 |
-+ $(AM_V_GEN) gdbus-codegen \ |
157 |
- --interface-prefix org.project. \ |
158 |
- --generate-c-code gdbus-test-codegen-generated \ |
159 |
- --c-generate-object-manager \ |
160 |
-diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am |
161 |
-index 9861d0e..9ca6eb9 100644 |
162 |
---- a/gio/tests/gdbus-object-manager-example/Makefile.am |
163 |
-+++ b/gio/tests/gdbus-object-manager-example/Makefile.am |
164 |
-@@ -21,10 +21,8 @@ GDBUS_GENERATED = \ |
165 |
- gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ |
166 |
- $(NULL) |
167 |
- |
168 |
--$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
169 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
170 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
171 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
172 |
-+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile |
173 |
-+ $(AM_V_GEN) gdbus-codegen \ |
174 |
- --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ |
175 |
- --c-namespace Example \ |
176 |
- --c-generate-object-manager \ |
177 |
--- |
178 |
-1.7.8.4 |
179 |
- |
180 |
|
181 |
diff --git a/dev-libs/glib/files/glib-2.32.4-CVE-2012-3524.patch b/dev-libs/glib/files/glib-2.32.4-CVE-2012-3524.patch |
182 |
deleted file mode 100644 |
183 |
index 92e6c81..0000000 |
184 |
--- a/dev-libs/glib/files/glib-2.32.4-CVE-2012-3524.patch |
185 |
+++ /dev/null |
186 |
@@ -1,247 +0,0 @@ |
187 |
-From 4c2928a54482913cf236bff0e66650a8f47e17ea Mon Sep 17 00:00:00 2001 |
188 |
-From: Colin Walters <walters@××××××.org> |
189 |
-Date: Wed, 22 Aug 2012 18:26:11 +0000 |
190 |
-Subject: CVE-2012-3524: Hardening for being run in a setuid environment |
191 |
- |
192 |
-Some programs attempt to use libglib (or even libgio) when setuid. |
193 |
-For a long time, GTK+ simply aborted if launched in this |
194 |
-configuration, but we never had a real policy for GLib. |
195 |
- |
196 |
-I'm not sure whether we should advertise such support. However, given |
197 |
-that there are real-world programs that do this currently, we can make |
198 |
-them safer with not too much effort. |
199 |
- |
200 |
-Better to fix a problem caused by an interaction between two |
201 |
-components in *both* places if possible. |
202 |
- |
203 |
-This patch adds a private function g_check_setuid() which is used to |
204 |
-first ensure we don't run an external dbus-launch binary if |
205 |
-DBUS_SESSION_BUS_ADDRESS isn't set. |
206 |
- |
207 |
-Second, we also ensure the local VFS is used in this case. The |
208 |
-gdaemonvfs extension point will end up talking to the session bus |
209 |
-which is typically undesirable in a setuid context. |
210 |
- |
211 |
-Implementing g_check_setuid() is interesting - whether or not we're |
212 |
-running in a privilege-escalated path is operating system specific. |
213 |
-Note that GTK+'s code to check euid versus uid worked historically on |
214 |
-Unix, more modern systems have filesystem capabilities and SELinux |
215 |
-domain transitions, neither of which are captured by the uid |
216 |
-comparison. |
217 |
- |
218 |
-On Linux/glibc, the way this works is that the kernel sets an |
219 |
-AT_SECURE flag in the ELF auxiliary vector, and glibc looks for it on |
220 |
-startup. If found, then glibc sets a public-but-undocumented |
221 |
-__libc_enable_secure variable which we can use. Unfortunately, while |
222 |
-it *previously* worked to check this variable, a combination of newer |
223 |
-binutils and RPM break it: |
224 |
-http://www.openwall.com/lists/owl-dev/2012/08/14/1 |
225 |
- |
226 |
-So for now on Linux/glibc, we fall back to the historical Unix version |
227 |
-until we get glibc fixed. |
228 |
- |
229 |
-On some BSD variants, there is a issetugid() function. On other Unix |
230 |
-variants, we fall back to what GTK+ has been doing. |
231 |
- |
232 |
-Reported-By: Sebastian Krahmer <krahmer@××××.de> |
233 |
-Signed-off-by: Colin Walters <walters@××××××.org> |
234 |
---- |
235 |
-diff --git a/configure.ac b/configure.ac |
236 |
-index 584df1d..67ea1a9 100644 |
237 |
---- a/configure.ac |
238 |
-+++ b/configure.ac |
239 |
-@@ -583,9 +583,20 @@ AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;], |
240 |
- # Checks for library functions. |
241 |
- AC_FUNC_VPRINTF |
242 |
- AC_FUNC_ALLOCA |
243 |
--AC_CHECK_FUNCS(mmap posix_memalign memalign valloc fsync pipe2) |
244 |
-+AC_CHECK_FUNCS(mmap posix_memalign memalign valloc fsync pipe2 issetugid) |
245 |
- AC_CHECK_FUNCS(atexit on_exit timegm gmtime_r) |
246 |
- |
247 |
-+AC_CACHE_CHECK([for __libc_enable_secure], glib_cv_have_libc_enable_secure, |
248 |
-+ [AC_TRY_LINK([#include <unistd.h> |
249 |
-+ extern int __libc_enable_secure;], |
250 |
-+ [return __libc_enable_secure;], |
251 |
-+ glib_cv_have_libc_enable_secure=yes, |
252 |
-+ glib_cv_have_libc_enable_secure=no)]) |
253 |
-+AS_IF([test x$glib_cv_have_libc_enable_secure = xyes], [ |
254 |
-+ AC_DEFINE(HAVE_LIBC_ENABLE_SECURE, 1, |
255 |
-+ [Define if you have the __libc_enable_secure variable (GNU libc, eglibc)]) |
256 |
-+]) |
257 |
-+ |
258 |
- AC_CHECK_SIZEOF(char) |
259 |
- AC_CHECK_SIZEOF(short) |
260 |
- AC_CHECK_SIZEOF(long) |
261 |
-@@ -984,7 +995,7 @@ AC_MSG_RESULT(unsigned $glib_size_type) |
262 |
- |
263 |
- # Check for some functions |
264 |
- AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem) |
265 |
--AC_CHECK_FUNCS(chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid) |
266 |
-+AC_CHECK_FUNCS(chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid getresuid) |
267 |
- AC_CHECK_FUNCS(getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat) |
268 |
- # Check for high-resolution sleep functions |
269 |
- AC_CHECK_FUNCS(splice) |
270 |
-diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c |
271 |
-index 4aa13b9..96b6343 100644 |
272 |
---- a/gio/gdbusaddress.c |
273 |
-+++ b/gio/gdbusaddress.c |
274 |
-@@ -37,6 +37,7 @@ |
275 |
- #include "giostream.h" |
276 |
- #include "gasyncresult.h" |
277 |
- #include "gsimpleasyncresult.h" |
278 |
-+#include "glib-private.h" |
279 |
- #include "gdbusprivate.h" |
280 |
- #include "giomodule-priv.h" |
281 |
- #include "gdbusdaemon.h" |
282 |
-@@ -1023,6 +1024,14 @@ get_session_address_dbus_launch (GError **error) |
283 |
- restore_dbus_verbose = FALSE; |
284 |
- old_dbus_verbose = NULL; |
285 |
- |
286 |
-+ /* Don't run binaries as root if we're setuid. */ |
287 |
-+ if (GLIB_PRIVATE_CALL (g_check_setuid) ()) |
288 |
-+ { |
289 |
-+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, |
290 |
-+ _("Cannot spawn a message bus when setuid")); |
291 |
-+ goto out; |
292 |
-+ } |
293 |
-+ |
294 |
- machine_id = _g_dbus_get_machine_id (error); |
295 |
- if (machine_id == NULL) |
296 |
- { |
297 |
-diff --git a/gio/gvfs.c b/gio/gvfs.c |
298 |
-index dda8afb..9afbcec 100644 |
299 |
---- a/gio/gvfs.c |
300 |
-+++ b/gio/gvfs.c |
301 |
-@@ -23,6 +23,7 @@ |
302 |
- #include "config.h" |
303 |
- #include <string.h> |
304 |
- #include "gvfs.h" |
305 |
-+#include "glib-private.h" |
306 |
- #include "glocalvfs.h" |
307 |
- #include "gresourcefile.h" |
308 |
- #include "giomodule-priv.h" |
309 |
-@@ -191,6 +192,8 @@ g_vfs_parse_name (GVfs *vfs, |
310 |
- GVfs * |
311 |
- g_vfs_get_default (void) |
312 |
- { |
313 |
-+ if (GLIB_PRIVATE_CALL (g_check_setuid) ()) |
314 |
-+ return g_vfs_get_local (); |
315 |
- return _g_io_module_get_default (G_VFS_EXTENSION_POINT_NAME, |
316 |
- "GIO_USE_VFS", |
317 |
- (GIOModuleVerifyFunc)g_vfs_is_active); |
318 |
-diff --git a/glib/genviron.c b/glib/genviron.c |
319 |
-index 59a8bbe..9525cf0 100644 |
320 |
---- a/glib/genviron.c |
321 |
-+++ b/glib/genviron.c |
322 |
-@@ -40,6 +40,7 @@ |
323 |
- #include <windows.h> |
324 |
- #endif |
325 |
- |
326 |
-+#include "glib-private.h" |
327 |
- #include "gmem.h" |
328 |
- #include "gmessages.h" |
329 |
- #include "gstrfuncs.h" |
330 |
-diff --git a/glib/glib-private.c b/glib/glib-private.c |
331 |
-index 3946e77..3506782 100644 |
332 |
---- a/glib/glib-private.c |
333 |
-+++ b/glib/glib-private.c |
334 |
-@@ -38,7 +38,9 @@ glib__private__ (void) |
335 |
- g_wakeup_signal, |
336 |
- g_wakeup_acknowledge, |
337 |
- |
338 |
-- g_get_worker_context |
339 |
-+ g_get_worker_context, |
340 |
-+ |
341 |
-+ g_check_setuid |
342 |
- }; |
343 |
- |
344 |
- return &table; |
345 |
-diff --git a/glib/glib-private.h b/glib/glib-private.h |
346 |
-index fde0be8..87da6f3 100644 |
347 |
---- a/glib/glib-private.h |
348 |
-+++ b/glib/glib-private.h |
349 |
-@@ -25,6 +25,8 @@ |
350 |
- |
351 |
- G_GNUC_INTERNAL |
352 |
- GMainContext * g_get_worker_context (void); |
353 |
-+G_GNUC_INTERNAL |
354 |
-+gboolean g_check_setuid (void); |
355 |
- |
356 |
- #define GLIB_PRIVATE_CALL(symbol) (glib__private__()->symbol) |
357 |
- |
358 |
-@@ -40,6 +42,8 @@ typedef struct { |
359 |
- /* See gmain.c */ |
360 |
- GMainContext * (* g_get_worker_context) (void); |
361 |
- /* Add other private functions here, initialize them in glib-private.c */ |
362 |
-+ |
363 |
-+ gboolean (* g_check_setuid) (void); |
364 |
- } GLibPrivateVTable; |
365 |
- |
366 |
- GLibPrivateVTable *glib__private__ (void); |
367 |
-diff --git a/glib/gutils.c b/glib/gutils.c |
368 |
-index 38b5e44..f8a38d1 100644 |
369 |
---- a/glib/gutils.c |
370 |
-+++ b/glib/gutils.c |
371 |
-@@ -2409,3 +2409,60 @@ g_get_tmp_dir (void) |
372 |
- } |
373 |
- |
374 |
- #endif |
375 |
-+ |
376 |
-+/* Private API: |
377 |
-+ * |
378 |
-+ * Returns %TRUE if the current process was executed as setuid (or an |
379 |
-+ * equivalent __libc_enable_secure is available). See: |
380 |
-+ * http://osdir.com/ml/linux.lfs.hardened/2007-04/msg00032.html |
381 |
-+ */ |
382 |
-+gboolean |
383 |
-+g_check_setuid (void) |
384 |
-+{ |
385 |
-+ /* TODO: get __libc_enable_secure exported from glibc. |
386 |
-+ * See http://www.openwall.com/lists/owl-dev/2012/08/14/1 |
387 |
-+ */ |
388 |
-+#if 0 && defined(HAVE_LIBC_ENABLE_SECURE) |
389 |
-+ { |
390 |
-+ /* See glibc/include/unistd.h */ |
391 |
-+ extern int __libc_enable_secure; |
392 |
-+ return __libc_enable_secure; |
393 |
-+ } |
394 |
-+#elif defined(HAVE_ISSETUGID) |
395 |
-+ /* BSD: http://www.freebsd.org/cgi/man.cgi?query=issetugid&sektion=2 */ |
396 |
-+ return issetugid (); |
397 |
-+#elif defined(G_OS_UNIX) |
398 |
-+ uid_t ruid, euid, suid; /* Real, effective and saved user ID's */ |
399 |
-+ gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */ |
400 |
-+ |
401 |
-+ static gsize check_setuid_initialised; |
402 |
-+ static gboolean is_setuid; |
403 |
-+ |
404 |
-+ if (g_once_init_enter (&check_setuid_initialised)) |
405 |
-+ { |
406 |
-+#ifdef HAVE_GETRESUID |
407 |
-+ /* These aren't in the header files, so we prototype them here. |
408 |
-+ */ |
409 |
-+ int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); |
410 |
-+ int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); |
411 |
-+ |
412 |
-+ if (getresuid (&ruid, &euid, &suid) != 0 || |
413 |
-+ getresgid (&rgid, &egid, &sgid) != 0) |
414 |
-+#endif /* HAVE_GETRESUID */ |
415 |
-+ { |
416 |
-+ suid = ruid = getuid (); |
417 |
-+ sgid = rgid = getgid (); |
418 |
-+ euid = geteuid (); |
419 |
-+ egid = getegid (); |
420 |
-+ } |
421 |
-+ |
422 |
-+ is_setuid = (ruid != euid || ruid != suid || |
423 |
-+ rgid != egid || rgid != sgid); |
424 |
-+ |
425 |
-+ g_once_init_leave (&check_setuid_initialised, 1); |
426 |
-+ } |
427 |
-+ return is_setuid; |
428 |
-+#else |
429 |
-+ return FALSE; |
430 |
-+#endif |
431 |
-+} |
432 |
--- |
433 |
-cgit v0.9.0.2 |
434 |
|
435 |
diff --git a/dev-libs/glib/files/glib-2.32.4-always-include-fcntl.h-patch b/dev-libs/glib/files/glib-2.32.4-always-include-fcntl.h-patch |
436 |
deleted file mode 100644 |
437 |
index dcac735..0000000 |
438 |
--- a/dev-libs/glib/files/glib-2.32.4-always-include-fcntl.h-patch |
439 |
+++ /dev/null |
440 |
@@ -1,15 +0,0 @@ |
441 |
-diff -Naur glib-2.32.4.orig/gio/gfile.c glib-2.32.4/gio/gfile.c |
442 |
---- glib-2.32.4.orig/gio/gfile.c 2012-07-14 19:16:55.000000000 +0000 |
443 |
-+++ glib-2.32.4/gio/gfile.c 2013-07-06 22:01:12.564092562 +0000 |
444 |
-@@ -26,10 +26,10 @@ |
445 |
- #ifdef HAVE_SPLICE |
446 |
- #include <sys/stat.h> |
447 |
- #include <unistd.h> |
448 |
--#include <fcntl.h> |
449 |
- #include <errno.h> |
450 |
- #endif |
451 |
- #include <string.h> |
452 |
-+#include <fcntl.h> |
453 |
- #include <sys/types.h> |
454 |
- #ifdef HAVE_PWD_H |
455 |
- #include <pwd.h> |
456 |
|
457 |
diff --git a/dev-libs/glib/files/glib-2.32.4-bashcomp.patch b/dev-libs/glib/files/glib-2.32.4-bashcomp.patch |
458 |
deleted file mode 100644 |
459 |
index 33abffc..0000000 |
460 |
--- a/dev-libs/glib/files/glib-2.32.4-bashcomp.patch |
461 |
+++ /dev/null |
462 |
@@ -1,27 +0,0 @@ |
463 |
-From 6d032421b4871105e1f37bb75a5ec7b012f19f61 Mon Sep 17 00:00:00 2001 |
464 |
-From: Alexandre Rostovtsev <tetromino@g.o> |
465 |
-Date: Sun, 15 Jul 2012 22:30:07 -0400 |
466 |
-Subject: [PATCH] gio: use /usr/share/bash-completion for bashcomp |
467 |
- |
468 |
-In Gentoo, we use /usr/share/bash-completion, not |
469 |
-/usr/share/bash-completion/completions. |
470 |
---- |
471 |
- gio/Makefile.am | 2 +- |
472 |
- 1 files changed, 1 insertions(+), 1 deletions(-) |
473 |
- |
474 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
475 |
-index 704367c..bee9dc6 100644 |
476 |
---- a/gio/Makefile.am |
477 |
-+++ b/gio/Makefile.am |
478 |
-@@ -715,7 +715,7 @@ gdbus_LDADD = libgio-2.0.la \ |
479 |
- $(top_builddir)/glib/libglib-2.0.la \ |
480 |
- $(top_builddir)/gobject/libgobject-2.0.la |
481 |
- |
482 |
--completiondir = $(datadir)/bash-completion/completions |
483 |
-+completiondir = $(datadir)/bash-completion |
484 |
- completion_DATA = \ |
485 |
- completion/gdbus \ |
486 |
- completion/gsettings \ |
487 |
--- |
488 |
-1.7.8.6 |
489 |
- |
490 |
|
491 |
diff --git a/dev-libs/glib/files/glib-2.34.0-testsuite-skip-thread4.patch b/dev-libs/glib/files/glib-2.34.0-testsuite-skip-thread4.patch |
492 |
deleted file mode 100644 |
493 |
index 584b56f..0000000 |
494 |
--- a/dev-libs/glib/files/glib-2.34.0-testsuite-skip-thread4.patch |
495 |
+++ /dev/null |
496 |
@@ -1,44 +0,0 @@ |
497 |
-From 4881b5d303512208b55f5bf78b91cd6a85e5034c Mon Sep 17 00:00:00 2001 |
498 |
-From: Priit Laes <plaes@×××××.org> |
499 |
-Date: Tue, 3 Jul 2012 11:21:56 +0300 |
500 |
-Subject: [PATCH 2/4] Gentoo: skip over thread/thread4 test failure |
501 |
- |
502 |
-https://bugzilla.gnome.org/show_bug.cgi?id=679306 |
503 |
---- |
504 |
- glib/tests/thread.c | 5 +++++ |
505 |
- 1 file changed, 5 insertions(+) |
506 |
- |
507 |
-diff --git a/glib/tests/thread.c b/glib/tests/thread.c |
508 |
-index 539782e..179ec06 100644 |
509 |
---- a/glib/tests/thread.c |
510 |
-+++ b/glib/tests/thread.c |
511 |
-@@ -124,6 +124,8 @@ test_thread3 (void) |
512 |
- g_assert_cmpint (GPOINTER_TO_INT(result), ==, 9); |
513 |
- } |
514 |
- |
515 |
-+#if 0 |
516 |
-+// https://bugzilla.gnome.org/show_bug.cgi?id=679306 |
517 |
- /* test that thread creation fails as expected, |
518 |
- * by setting RLIMIT_NPROC ridiculously low |
519 |
- */ |
520 |
-@@ -158,6 +160,7 @@ test_thread4 (void) |
521 |
- g_error ("resetting RLIMIT_NPROC failed: %s\n", g_strerror (ret)); |
522 |
- #endif |
523 |
- } |
524 |
-+#endif |
525 |
- |
526 |
- static void |
527 |
- test_thread5 (void) |
528 |
-@@ -203,7 +206,9 @@ main (int argc, char *argv[]) |
529 |
- g_test_add_func ("/thread/thread1", test_thread1); |
530 |
- g_test_add_func ("/thread/thread2", test_thread2); |
531 |
- g_test_add_func ("/thread/thread3", test_thread3); |
532 |
-+#if 0 |
533 |
- g_test_add_func ("/thread/thread4", test_thread4); |
534 |
-+#endif |
535 |
- g_test_add_func ("/thread/thread5", test_thread5); |
536 |
- g_test_add_func ("/thread/thread6", test_thread6); |
537 |
- |
538 |
--- |
539 |
-1.8.3.2 |
540 |
- |
541 |
|
542 |
diff --git a/dev-libs/glib/files/glib-2.34.3-automake-1.13.patch b/dev-libs/glib/files/glib-2.34.3-automake-1.13.patch |
543 |
deleted file mode 100644 |
544 |
index 5f4e7b6..0000000 |
545 |
--- a/dev-libs/glib/files/glib-2.34.3-automake-1.13.patch |
546 |
+++ /dev/null |
547 |
@@ -1,23 +0,0 @@ |
548 |
-Replace macros deprecated in automake-1.13; fixed upstream in glib-2.36 |
549 |
- |
550 |
-diff --git a/configure.ac b/configure.ac |
551 |
-index a3567b3..3e3d697 100644 |
552 |
---- a/configure.ac |
553 |
-+++ b/configure.ac |
554 |
-@@ -56,7 +56,7 @@ m4_define([glib_debug_default], |
555 |
- AC_INIT(glib, [glib_version], |
556 |
- [http://bugzilla.gnome.org/enter_bug.cgi?product=glib]) |
557 |
- |
558 |
--AC_CONFIG_HEADER([config.h]) |
559 |
-+AC_CONFIG_HEADERS([config.h]) |
560 |
- AC_CONFIG_SRCDIR([glib/glib.h]) |
561 |
- AC_CONFIG_MACRO_DIR([m4macros]) |
562 |
- |
563 |
-@@ -291,7 +291,6 @@ AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=) |
564 |
- AM_CONDITIONAL(HAVE_CXX, [test "$CXX" != ""]) |
565 |
- AC_LANG_RESTORE |
566 |
- |
567 |
--AM_PROG_CC_STDC |
568 |
- AM_PROG_CC_C_O |
569 |
- AC_PROG_INSTALL |
570 |
- |
571 |
|
572 |
diff --git a/dev-libs/glib/files/glib-2.35.x-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.35.x-external-gdbus-codegen.patch |
573 |
deleted file mode 100644 |
574 |
index b3a0ede..0000000 |
575 |
--- a/dev-libs/glib/files/glib-2.35.x-external-gdbus-codegen.patch |
576 |
+++ /dev/null |
577 |
@@ -1,111 +0,0 @@ |
578 |
-From 4a74adf19d7e46aef7c9ede87ffb0264193311dc Mon Sep 17 00:00:00 2001 |
579 |
-From: Priit Laes <plaes@×××××.org> |
580 |
-Date: Thu, 28 Feb 2013 08:28:01 +0200 |
581 |
-Subject: [PATCH] Split out gdbus codegen |
582 |
- |
583 |
---- |
584 |
- configure.ac | 17 ++++++++--------- |
585 |
- docs/reference/gio/Makefile.am | 3 +-- |
586 |
- gio/Makefile.am | 2 +- |
587 |
- gio/tests/Makefile.am | 6 ++---- |
588 |
- gio/tests/gdbus-object-manager-example/Makefile.am | 6 ++---- |
589 |
- 5 files changed, 14 insertions(+), 20 deletions(-) |
590 |
- |
591 |
-diff --git a/configure.ac b/configure.ac |
592 |
-index f734b7c..8076e7f 100644 |
593 |
---- a/configure.ac |
594 |
-+++ b/configure.ac |
595 |
-@@ -374,14 +374,14 @@ AC_SUBST(PERL_PATH) |
596 |
- # option to specify python interpreter to use; this just sets $PYTHON, so that |
597 |
- # we will fallback to reading $PYTHON if --with-python is not given, and |
598 |
- # python.m4 will get the expected input |
599 |
--AC_ARG_WITH(python, |
600 |
-- AS_HELP_STRING([--with-python=PATH], |
601 |
-- [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
602 |
-- [PYTHON="$withval"], []) |
603 |
--if test x"$PYTHON" = xyes; then |
604 |
-- AC_MSG_ERROR([--with-python option requires a path or program argument]) |
605 |
--fi |
606 |
--AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
607 |
-+# AC_ARG_WITH(python, |
608 |
-+# AS_HELP_STRING([--with-python=PATH], |
609 |
-+# [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
610 |
-+# [PYTHON="$withval"], []) |
611 |
-+# if test x"$PYTHON" = xyes; then |
612 |
-+# AC_MSG_ERROR([--with-python option requires a path or program argument]) |
613 |
-+# fi |
614 |
-+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
615 |
- |
616 |
- |
617 |
- dnl *********************** |
618 |
-@@ -3697,7 +3697,6 @@ gobject/glib-mkenums |
619 |
- gobject/tests/Makefile |
620 |
- gthread/Makefile |
621 |
- gio/Makefile |
622 |
--gio/gdbus-2.0/codegen/Makefile |
623 |
- gio/gdbus-2.0/codegen/config.py |
624 |
- gio/gnetworking.h |
625 |
- gio/xdgmime/Makefile |
626 |
-diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am |
627 |
-index 99606d3..067cd50 100644 |
628 |
---- a/docs/reference/gio/Makefile.am |
629 |
-+++ b/docs/reference/gio/Makefile.am |
630 |
-@@ -152,8 +152,7 @@ man_MANS += \ |
631 |
- glib-compile-resources.1 \ |
632 |
- gsettings.1 \ |
633 |
- gresource.1 \ |
634 |
-- gdbus.1 \ |
635 |
-- gdbus-codegen.1 |
636 |
-+ gdbus.1 |
637 |
- |
638 |
- XSLTPROC_FLAGS = \ |
639 |
- --nonet \ |
640 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
641 |
-index 94d7f59..c07d00d 100644 |
642 |
---- a/gio/Makefile.am |
643 |
-+++ b/gio/Makefile.am |
644 |
-@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl |
645 |
- |
646 |
- NULL = |
647 |
- |
648 |
--SUBDIRS = gdbus-2.0/codegen |
649 |
-+SUBDIRS = |
650 |
- |
651 |
- if OS_UNIX |
652 |
- SUBDIRS += xdgmime |
653 |
-diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
654 |
-index c8a4090..feece02 100644 |
655 |
---- a/gio/tests/Makefile.am |
656 |
-+++ b/gio/tests/Makefile.am |
657 |
-@@ -212,10 +212,8 @@ gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h |
658 |
- gdbus_close_pending_SOURCES = gdbus-close-pending.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c |
659 |
- |
660 |
- if OS_UNIX |
661 |
--gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
662 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
663 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
664 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
665 |
-+gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile |
666 |
-+ $(AM_V_GEN) gdbus-codegen \ |
667 |
- --interface-prefix org.project. \ |
668 |
- --generate-c-code gdbus-test-codegen-generated \ |
669 |
- --c-generate-object-manager \ |
670 |
-diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am |
671 |
-index 6875210..264c3c1 100644 |
672 |
---- a/gio/tests/gdbus-object-manager-example/Makefile.am |
673 |
-+++ b/gio/tests/gdbus-object-manager-example/Makefile.am |
674 |
-@@ -21,10 +21,8 @@ GDBUS_GENERATED = \ |
675 |
- gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ |
676 |
- $(NULL) |
677 |
- |
678 |
--$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
679 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
680 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
681 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
682 |
-+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile |
683 |
-+ $(AM_V_GEN) gdbus-codegen \ |
684 |
- --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ |
685 |
- --c-namespace Example \ |
686 |
- --c-generate-object-manager \ |
687 |
--- |
688 |
-1.8.1.2 |
689 |
|
690 |
diff --git a/dev-libs/glib/files/glib-2.36.4-znodelete.patch b/dev-libs/glib/files/glib-2.36.4-znodelete.patch |
691 |
deleted file mode 100644 |
692 |
index b936fbd..0000000 |
693 |
--- a/dev-libs/glib/files/glib-2.36.4-znodelete.patch |
694 |
+++ /dev/null |
695 |
@@ -1,65 +0,0 @@ |
696 |
-From 196ea5ab614e5357da48acf73a373f103e61ee0b Mon Sep 17 00:00:00 2001 |
697 |
-From: Alexandre Rostovtsev <tetromino@g.o> |
698 |
-Date: Mon, 2 Sep 2013 13:59:18 -0400 |
699 |
-Subject: [PATCH 4/4] gobject: try to link with -Wl,-z,nodelete |
700 |
- |
701 |
-Since the type system does not support reloading its data and assumes |
702 |
-that libgobject remains loaded for the lifetime of the process, we |
703 |
-should link libgobject with a flag indicating that it can't be unloaded. |
704 |
- |
705 |
-https://bugzilla.gnome.org/show_bug.cgi?id=707298 |
706 |
---- |
707 |
- configure.ac | 24 ++++++++++++++++++++++++ |
708 |
- gobject/Makefile.am | 1 + |
709 |
- 2 files changed, 25 insertions(+) |
710 |
- |
711 |
-diff --git a/configure.ac b/configure.ac |
712 |
-index 907c534..266c45d 100644 |
713 |
---- a/configure.ac |
714 |
-+++ b/configure.ac |
715 |
-@@ -3669,6 +3669,30 @@ fi |
716 |
- AC_SUBST(GLIB_LINK_FLAGS) |
717 |
- |
718 |
- dnl |
719 |
-+dnl Check for -z,nodelete linker flag: the type system assumes that |
720 |
-+dnl libgobject stays loaded for the lifetime of the process |
721 |
-+dnl |
722 |
-+ |
723 |
-+AC_ARG_ENABLE([znodelete], |
724 |
-+ [AS_HELP_STRING([--disable-znodelete], |
725 |
-+ [avoid linking with -z,nodelete])],, |
726 |
-+ [SAVED_LDFLAGS="${LDFLAGS}" |
727 |
-+ AC_MSG_CHECKING([for -z,nodelete linker flag]) |
728 |
-+ LDFLAGS=-Wl,-z,nodelete |
729 |
-+ AC_TRY_LINK([], [int main (void) { return 0; }], |
730 |
-+ AC_MSG_RESULT(yes) |
731 |
-+ enable_znodelete=yes, |
732 |
-+ AC_MSG_RESULT(no) |
733 |
-+ enable_znodelete=no) |
734 |
-+ LDFLAGS="${SAVED_LDFLAGS}"]) |
735 |
-+ |
736 |
-+if test "x${enable_znodelete}" = "xyes"; then |
737 |
-+ GOBJECT_LINK_FLAGS=-Wl,-z,nodelete |
738 |
-+fi |
739 |
-+ |
740 |
-+AC_SUBST(GOBJECT_LINK_FLAGS) |
741 |
-+ |
742 |
-+dnl |
743 |
- dnl Check for -fvisibility=hidden to determine if we can do GNU-style |
744 |
- dnl visibility attributes for symbol export control |
745 |
- dnl |
746 |
-diff --git a/gobject/Makefile.am b/gobject/Makefile.am |
747 |
-index 1509616..181ad7d 100644 |
748 |
---- a/gobject/Makefile.am |
749 |
-+++ b/gobject/Makefile.am |
750 |
-@@ -45,6 +45,7 @@ endif |
751 |
- |
752 |
- libgobjectincludedir = $(includedir)/glib-2.0/gobject |
753 |
- libgobject_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \ |
754 |
-+ $(GOBJECT_LINK_FLAGS) \ |
755 |
- $(gobject_win32_res_ldflag) \ |
756 |
- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ |
757 |
- -export-dynamic $(no_undefined) |
758 |
--- |
759 |
-1.8.3.2 |
760 |
- |
761 |
|
762 |
diff --git a/dev-libs/glib/files/glib-2.37.x-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.37.x-external-gdbus-codegen.patch |
763 |
deleted file mode 100644 |
764 |
index f87c146..0000000 |
765 |
--- a/dev-libs/glib/files/glib-2.37.x-external-gdbus-codegen.patch |
766 |
+++ /dev/null |
767 |
@@ -1,111 +0,0 @@ |
768 |
-From 81f037771e2992834961cb5db08aece53a02b8ae Mon Sep 17 00:00:00 2001 |
769 |
-From: Priit Laes <plaes@×××××.org> |
770 |
-Date: Thu, 28 Feb 2013 08:28:01 +0200 |
771 |
-Subject: [PATCH 3/4] Split out gdbus codegen |
772 |
- |
773 |
---- |
774 |
- configure.ac | 17 ++++++++--------- |
775 |
- docs/reference/gio/Makefile.am | 3 +-- |
776 |
- gio/Makefile.am | 2 +- |
777 |
- gio/tests/Makefile.am | 6 ++---- |
778 |
- gio/tests/gdbus-object-manager-example/Makefile.am | 6 ++---- |
779 |
- 5 files changed, 14 insertions(+), 20 deletions(-) |
780 |
- |
781 |
-diff --git a/configure.ac b/configure.ac |
782 |
-index 797cb92..907c534 100644 |
783 |
---- a/configure.ac |
784 |
-+++ b/configure.ac |
785 |
-@@ -378,14 +378,14 @@ AC_SUBST(PERL_PATH) |
786 |
- # option to specify python interpreter to use; this just sets $PYTHON, so that |
787 |
- # we will fallback to reading $PYTHON if --with-python is not given, and |
788 |
- # python.m4 will get the expected input |
789 |
--AC_ARG_WITH(python, |
790 |
-- AS_HELP_STRING([--with-python=PATH], |
791 |
-- [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
792 |
-- [PYTHON="$withval"], []) |
793 |
--if test x"$PYTHON" = xyes; then |
794 |
-- AC_MSG_ERROR([--with-python option requires a path or program argument]) |
795 |
--fi |
796 |
--AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
797 |
-+# AC_ARG_WITH(python, |
798 |
-+# AS_HELP_STRING([--with-python=PATH], |
799 |
-+# [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
800 |
-+# [PYTHON="$withval"], []) |
801 |
-+# if test x"$PYTHON" = xyes; then |
802 |
-+# AC_MSG_ERROR([--with-python option requires a path or program argument]) |
803 |
-+# fi |
804 |
-+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
805 |
- |
806 |
- |
807 |
- dnl *********************** |
808 |
-@@ -3784,7 +3784,6 @@ gobject/glib-mkenums |
809 |
- gobject/tests/Makefile |
810 |
- gthread/Makefile |
811 |
- gio/Makefile |
812 |
--gio/gdbus-2.0/codegen/Makefile |
813 |
- gio/gdbus-2.0/codegen/config.py |
814 |
- gio/gnetworking.h |
815 |
- gio/xdgmime/Makefile |
816 |
-diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am |
817 |
-index 112626b..8ddcdbc 100644 |
818 |
---- a/docs/reference/gio/Makefile.am |
819 |
-+++ b/docs/reference/gio/Makefile.am |
820 |
-@@ -151,8 +151,7 @@ man_MANS += \ |
821 |
- glib-compile-resources.1 \ |
822 |
- gsettings.1 \ |
823 |
- gresource.1 \ |
824 |
-- gdbus.1 \ |
825 |
-- gdbus-codegen.1 |
826 |
-+ gdbus.1 |
827 |
- |
828 |
- XSLTPROC_FLAGS = \ |
829 |
- --nonet \ |
830 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
831 |
-index 717419f..808b5dd 100644 |
832 |
---- a/gio/Makefile.am |
833 |
-+++ b/gio/Makefile.am |
834 |
-@@ -1,6 +1,6 @@ |
835 |
- include $(top_srcdir)/glib.mk |
836 |
- |
837 |
--SUBDIRS = gdbus-2.0/codegen |
838 |
-+SUBDIRS = |
839 |
- |
840 |
- if OS_UNIX |
841 |
- SUBDIRS += xdgmime |
842 |
-diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
843 |
-index 7224124..5c8baaa 100644 |
844 |
---- a/gio/tests/Makefile.am |
845 |
-+++ b/gio/tests/Makefile.am |
846 |
-@@ -359,10 +359,8 @@ gmenumodel_SOURCES = $(gdbus_sessionbus_sources) gmenumode |
847 |
- nodist_gdbus_test_codegen_SOURCES = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
848 |
- |
849 |
- gdbus-test-codegen.o: gdbus-test-codegen-generated.h |
850 |
--gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
851 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
852 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
853 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
854 |
-+gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c: test-codegen.xml Makefile |
855 |
-+ $(AM_V_GEN) gdbus-codegen \ |
856 |
- --interface-prefix org.project. \ |
857 |
- --generate-c-code gdbus-test-codegen-generated \ |
858 |
- --c-generate-object-manager \ |
859 |
-diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am |
860 |
-index d6d1412..62ef706 100644 |
861 |
---- a/gio/tests/gdbus-object-manager-example/Makefile.am |
862 |
-+++ b/gio/tests/gdbus-object-manager-example/Makefile.am |
863 |
-@@ -11,10 +11,8 @@ GDBUS_GENERATED = \ |
864 |
- gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ |
865 |
- $(NULL) |
866 |
- |
867 |
--$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
868 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
869 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
870 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
871 |
-+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile |
872 |
-+ $(AM_V_GEN) gdbus-codegen \ |
873 |
- --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ |
874 |
- --c-namespace Example \ |
875 |
- --c-generate-object-manager \ |
876 |
--- |
877 |
-1.8.3.2 |
878 |
- |
879 |
|
880 |
diff --git a/dev-libs/glib/files/glib-2.38.2-configure.patch b/dev-libs/glib/files/glib-2.38.2-configure.patch |
881 |
deleted file mode 100644 |
882 |
index 8f08ca0..0000000 |
883 |
--- a/dev-libs/glib/files/glib-2.38.2-configure.patch |
884 |
+++ /dev/null |
885 |
@@ -1,24 +0,0 @@ |
886 |
-From 838b49ead77c35d94fa16d48a6d7271bab082a71 Mon Sep 17 00:00:00 2001 |
887 |
-From: Patrick Welche <prlw1@××××××.uk> |
888 |
-Date: Thu, 07 Nov 2013 10:58:46 +0000 |
889 |
-Subject: configure: test(1) uses = to test for string equality |
890 |
- |
891 |
-https://bugzilla.gnome.org/show_bug.cgi?id=711600 |
892 |
---- |
893 |
-(limited to 'm4macros/glibtests.m4') |
894 |
- |
895 |
-diff --git a/m4macros/glibtests.m4 b/m4macros/glibtests.m4 |
896 |
-index 27e9024..7d5920a 100644 |
897 |
---- a/m4macros/glibtests.m4 |
898 |
-+++ b/m4macros/glibtests.m4 |
899 |
-@@ -21,7 +21,7 @@ AC_DEFUN([GLIB_TESTS], |
900 |
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-always-build-tests]) ;; |
901 |
- esac]) |
902 |
- AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS], test "$ENABLE_ALWAYS_BUILD_TESTS" = "1") |
903 |
-- if test "$ENABLE_INSTALLED_TESTS" == "1"; then |
904 |
-+ if test "$ENABLE_INSTALLED_TESTS" = "1"; then |
905 |
- AC_SUBST(installed_test_metadir, [${datadir}/installed-tests/]AC_PACKAGE_NAME) |
906 |
- AC_SUBST(installed_testdir, [${libexecdir}/installed-tests/]AC_PACKAGE_NAME) |
907 |
- fi |
908 |
--- |
909 |
-cgit v0.9.2 |
910 |
|
911 |
diff --git a/dev-libs/glib/files/glib-2.38.2-sigaction.patch b/dev-libs/glib/files/glib-2.38.2-sigaction.patch |
912 |
deleted file mode 100644 |
913 |
index f87e224..0000000 |
914 |
--- a/dev-libs/glib/files/glib-2.38.2-sigaction.patch |
915 |
+++ /dev/null |
916 |
@@ -1,23 +0,0 @@ |
917 |
-From 81d0ebe29ccd852e969acda7394969e3f13eb136 Mon Sep 17 00:00:00 2001 |
918 |
-From: Stef Walter <stefw@×××××.org> |
919 |
-Date: Thu, 31 Oct 2013 11:43:14 +0100 |
920 |
-Subject: [PATCH] gmain: Fix use of uninitialized memory in sigaction structure |
921 |
- |
922 |
-https://bugzilla.gnome.org/show_bug.cgi?id=711754 |
923 |
- |
924 |
- |
925 |
-diff --git a/glib/gmain.c b/glib/gmain.c |
926 |
-index 9c37bb2..608c1a5 100644 |
927 |
---- a/glib/gmain.c |
928 |
-+++ b/glib/gmain.c |
929 |
-@@ -4978,6 +4978,7 @@ unref_unix_signal_handler_unlocked (int signum) |
930 |
- if (unix_signal_refcount[signum] == 0) |
931 |
- { |
932 |
- struct sigaction action; |
933 |
-+ memset (&action, 0, sizeof (action)); |
934 |
- action.sa_handler = SIG_DFL; |
935 |
- sigemptyset (&action.sa_mask); |
936 |
- sigaction (signum, &action, NULL); |
937 |
--- |
938 |
-Gitg |
939 |
- |
940 |
|
941 |
diff --git a/dev-libs/glib/files/glib-2.40.0-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.40.0-external-gdbus-codegen.patch |
942 |
deleted file mode 100644 |
943 |
index 50a9370..0000000 |
944 |
--- a/dev-libs/glib/files/glib-2.40.0-external-gdbus-codegen.patch |
945 |
+++ /dev/null |
946 |
@@ -1,95 +0,0 @@ |
947 |
-diff --git a/configure.ac b/configure.ac |
948 |
-index a01e58d..59d4527 100644 |
949 |
---- a/configure.ac |
950 |
-+++ b/configure.ac |
951 |
-@@ -367,14 +367,14 @@ AC_SUBST(PERL_PATH) |
952 |
- # option to specify python interpreter to use; this just sets $PYTHON, so that |
953 |
- # we will fallback to reading $PYTHON if --with-python is not given, and |
954 |
- # python.m4 will get the expected input |
955 |
--AC_ARG_WITH(python, |
956 |
-- AS_HELP_STRING([--with-python=PATH], |
957 |
-- [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
958 |
-- [PYTHON="$withval"], []) |
959 |
--if test x"$PYTHON" = xyes; then |
960 |
-- AC_MSG_ERROR([--with-python option requires a path or program argument]) |
961 |
--fi |
962 |
--AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
963 |
-+# AC_ARG_WITH(python, |
964 |
-+# AS_HELP_STRING([--with-python=PATH], |
965 |
-+# [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), |
966 |
-+# [PYTHON="$withval"], []) |
967 |
-+# if test x"$PYTHON" = xyes; then |
968 |
-+# AC_MSG_ERROR([--with-python option requires a path or program argument]) |
969 |
-+# fi |
970 |
-+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") |
971 |
- |
972 |
- |
973 |
- dnl *********************** |
974 |
-@@ -3580,7 +3580,6 @@ gobject/glib-mkenums |
975 |
- gobject/tests/Makefile |
976 |
- gthread/Makefile |
977 |
- gio/Makefile |
978 |
--gio/gdbus-2.0/codegen/Makefile |
979 |
- gio/gdbus-2.0/codegen/config.py |
980 |
- gio/gnetworking.h |
981 |
- gio/xdgmime/Makefile |
982 |
-diff --git a/docs/reference/gio/Makefile.am b/docs/reference/gio/Makefile.am |
983 |
-index 47fdd38..c7eb136 100644 |
984 |
---- a/docs/reference/gio/Makefile.am |
985 |
-+++ b/docs/reference/gio/Makefile.am |
986 |
-@@ -157,8 +157,7 @@ man_MANS += \ |
987 |
- glib-compile-resources.1 \ |
988 |
- gsettings.1 \ |
989 |
- gresource.1 \ |
990 |
-- gdbus.1 \ |
991 |
-- gdbus-codegen.1 |
992 |
-+ gdbus.1 |
993 |
- |
994 |
- XSLTPROC_FLAGS = \ |
995 |
- --nonet \ |
996 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
997 |
-index e993e2f..025ad94 100644 |
998 |
---- a/gio/Makefile.am |
999 |
-+++ b/gio/Makefile.am |
1000 |
-@@ -1,6 +1,6 @@ |
1001 |
- include $(top_srcdir)/glib.mk |
1002 |
- |
1003 |
--SUBDIRS = gdbus-2.0/codegen |
1004 |
-+SUBDIRS = |
1005 |
- |
1006 |
- if OS_UNIX |
1007 |
- SUBDIRS += xdgmime |
1008 |
-diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am |
1009 |
-index 2c54e59..3cd3c5a 100644 |
1010 |
---- a/gio/tests/Makefile.am |
1011 |
-+++ b/gio/tests/Makefile.am |
1012 |
-@@ -437,10 +437,8 @@ gnotification_SOURCES = $(gdbus_sessionbus_sources) gnotifica |
1013 |
- |
1014 |
- BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h |
1015 |
- gdbus-test-codegen.o: gdbus-test-codegen-generated.h |
1016 |
--gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
1017 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
1018 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
1019 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
1020 |
-+gdbus-test-codegen-generated.h: test-codegen.xml Makefile |
1021 |
-+ $(AM_V_GEN) gdbus-codegen \ |
1022 |
- --interface-prefix org.project. \ |
1023 |
- --generate-c-code gdbus-test-codegen-generated \ |
1024 |
- --c-generate-object-manager \ |
1025 |
-diff --git a/gio/tests/gdbus-object-manager-example/Makefile.am b/gio/tests/gdbus-object-manager-example/Makefile.am |
1026 |
-index d6d1412..62ef706 100644 |
1027 |
---- a/gio/tests/gdbus-object-manager-example/Makefile.am |
1028 |
-+++ b/gio/tests/gdbus-object-manager-example/Makefile.am |
1029 |
-@@ -11,10 +11,8 @@ GDBUS_GENERATED = \ |
1030 |
- gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ |
1031 |
- $(NULL) |
1032 |
- |
1033 |
--$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen |
1034 |
-- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ |
1035 |
-- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ |
1036 |
-- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ |
1037 |
-+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile |
1038 |
-+ $(AM_V_GEN) gdbus-codegen \ |
1039 |
- --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ |
1040 |
- --c-namespace Example \ |
1041 |
- --c-generate-object-manager \ |
1042 |
|
1043 |
diff --git a/dev-libs/glib/glib-2.36.4-r99.ebuild b/dev-libs/glib/glib-2.36.4-r99.ebuild |
1044 |
deleted file mode 100644 |
1045 |
index 114ffca..0000000 |
1046 |
--- a/dev-libs/glib/glib-2.36.4-r99.ebuild |
1047 |
+++ /dev/null |
1048 |
@@ -1,274 +0,0 @@ |
1049 |
-# Copyright 1999-2013 Gentoo Foundation |
1050 |
-# Distributed under the terms of the GNU General Public License v2 |
1051 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.36.4-r1.ebuild,v 1.8 2013/12/08 17:57:40 pacho Exp $ |
1052 |
- |
1053 |
-EAPI="5" |
1054 |
-PYTHON_COMPAT=( python2_{6,7} ) |
1055 |
-# Avoid runtime dependency on python when USE=test |
1056 |
- |
1057 |
-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 |
1058 |
- |
1059 |
-DESCRIPTION="The GLib library of C routines" |
1060 |
-HOMEPAGE="http://www.gtk.org/" |
1061 |
-SRC_URI="${SRC_URI} |
1062 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
1063 |
- |
1064 |
-LICENSE="LGPL-2+" |
1065 |
-SLOT="2" |
1066 |
-IUSE="debug fam kernel_linux selinux static-libs systemtap test utils xattr" |
1067 |
-KEYWORDS="amd64 arm ~mips x86" |
1068 |
- |
1069 |
-# FIXME: want libselinux[${MULTILIB_USEDEP}] - bug #480960 |
1070 |
-RDEPEND=" |
1071 |
- virtual/libiconv[${MULTILIB_USEDEP}] |
1072 |
- virtual/libffi[${MULTILIB_USEDEP}] |
1073 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
1074 |
- || ( |
1075 |
- >=dev-libs/elfutils-0.142 |
1076 |
- >=dev-libs/libelf-0.8.12 |
1077 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
1078 |
- ) |
1079 |
- selinux? ( sys-libs/libselinux ) |
1080 |
- xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
1081 |
- fam? ( virtual/fam[${MULTILIB_USEDEP}] ) |
1082 |
- utils? ( |
1083 |
- ${PYTHON_DEPS} |
1084 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
1085 |
- abi_x86_32? ( |
1086 |
- !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
1087 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
1088 |
- ) |
1089 |
-" |
1090 |
-DEPEND="${RDEPEND} |
1091 |
- app-text/docbook-xml-dtd:4.1.2 |
1092 |
- >=dev-libs/libxslt-1.0 |
1093 |
- >=sys-devel/gettext-0.11 |
1094 |
- >=dev-util/gtk-doc-am-1.15 |
1095 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
1096 |
- test? ( |
1097 |
- sys-devel/gdb |
1098 |
- ${PYTHON_DEPS} |
1099 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
1100 |
- >=sys-apps/dbus-1.2.14 ) |
1101 |
- !<dev-libs/gobject-introspection-1.$(get_version_component_range 2) |
1102 |
- !<dev-util/gtk-doc-1.15-r2 |
1103 |
-" |
1104 |
-# gobject-introspection blocker to ensure people don't mix |
1105 |
-# different g-i and glib major versions |
1106 |
- |
1107 |
-PDEPEND="x11-misc/shared-mime-info |
1108 |
- !<gnome-base/gvfs-1.6.4-r990" |
1109 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
1110 |
-# Earlier versions of gvfs do not work with glib |
1111 |
- |
1112 |
-DOCS="AUTHORS ChangeLog* NEWS* README" |
1113 |
- |
1114 |
-pkg_setup() { |
1115 |
- if use kernel_linux ; then |
1116 |
- CONFIG_CHECK="~INOTIFY_USER" |
1117 |
- if use test; then |
1118 |
- CONFIG_CHECK="~IPV6" |
1119 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
1120 |
- export IPV6_DISABLED="yes" |
1121 |
- fi |
1122 |
- linux-info_pkg_setup |
1123 |
- fi |
1124 |
-} |
1125 |
- |
1126 |
-src_prepare() { |
1127 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
1128 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
1129 |
- |
1130 |
- # #488500 gets autogenerated, but get distributed with Linux-only header |
1131 |
- rm "${S}"/gio/gnetworking.h || die |
1132 |
- |
1133 |
- # Fix gmodule issues on fbsd; bug #184301, upstream bug #107626 |
1134 |
- epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch |
1135 |
- |
1136 |
- if use test; then |
1137 |
- # Do not try to remove files on live filesystem, upstream bug #619274 |
1138 |
- sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ |
1139 |
- -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" |
1140 |
- |
1141 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
1142 |
- if ! has_version dev-util/desktop-file-utils ; then |
1143 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
1144 |
- ewarn "think on installing it to get these tests run." |
1145 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
1146 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
1147 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
1148 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
1149 |
- fi |
1150 |
- |
1151 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
1152 |
- # other), falling back to xterm if one doesn't exist |
1153 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
1154 |
- ewarn "Some tests will be skipped due to missing terminal program" |
1155 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
1156 |
- fi |
1157 |
- |
1158 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
1159 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
1160 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
1161 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
1162 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
1163 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
1164 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
1165 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
1166 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
1167 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
1168 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
1169 |
- # needed to prevent gdbus-threading from asserting |
1170 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
1171 |
- fi |
1172 |
- |
1173 |
- # Some tests need ipv6, upstream bug #667468 |
1174 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
1175 |
- sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die |
1176 |
- sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die |
1177 |
- sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die |
1178 |
- fi |
1179 |
- |
1180 |
- # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655 |
1181 |
- sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die |
1182 |
- |
1183 |
- # thread test fails, upstream bug #679306 |
1184 |
- epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
1185 |
- fi |
1186 |
- |
1187 |
- # gdbus-codegen is a separate package |
1188 |
- epatch "${FILESDIR}/${PN}-2.35.x-external-gdbus-codegen.patch" |
1189 |
- |
1190 |
- # do not allow libgobject to unload; bug #405173, https://bugzilla.gnome.org/show_bug.cgi?id=707298 |
1191 |
- epatch "${FILESDIR}/${PN}-2.36.4-znodelete.patch" |
1192 |
- |
1193 |
- # leave python shebang alone |
1194 |
- sed -e '/${PYTHON}/d' \ |
1195 |
- -i glib/Makefile.{am,in} || die |
1196 |
- |
1197 |
- # Gentoo handles completions in a different directory |
1198 |
- sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \ |
1199 |
- gio/Makefile.am || die |
1200 |
- |
1201 |
- # Support compilation in clang until upstream solves this, upstream bug #691608 |
1202 |
- append-flags -Wno-format-nonliteral |
1203 |
- append-cppflags -D_GNU_SOURCE |
1204 |
- |
1205 |
- epatch_user |
1206 |
- |
1207 |
- # Needed for the punt-python-check patch, disabling timeout test |
1208 |
- # Also needed to prevent croscompile failures, see bug #267603 |
1209 |
- # Also needed for the no-gdbus-codegen patch |
1210 |
- eautoreconf |
1211 |
- |
1212 |
- # FIXME: Really needed when running eautoreconf before? bug#???? |
1213 |
- #[[ ${CHOST} == *-freebsd* ]] && elibtoolize |
1214 |
- |
1215 |
- epunt_cxx |
1216 |
-} |
1217 |
- |
1218 |
-multilib_src_configure() { |
1219 |
- # Avoid circular depend with dev-util/pkgconfig and |
1220 |
- # native builds (cross-compiles won't need pkg-config |
1221 |
- # in the target ROOT to work here) |
1222 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
1223 |
- if has_version sys-apps/dbus; then |
1224 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
1225 |
- export DBUS1_LIBS="-ldbus-1" |
1226 |
- fi |
1227 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
1228 |
- export LIBFFI_LIBS="-lffi" |
1229 |
- fi |
1230 |
- |
1231 |
- local myconf |
1232 |
- |
1233 |
- case "${CHOST}" in |
1234 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
1235 |
- *) myconf="${myconf} --with-threads=posix" ;; |
1236 |
- esac |
1237 |
- |
1238 |
- # Building with --disable-debug highly unrecommended. It will build glib in |
1239 |
- # an unusable form as it disables some commonly used API. Please do not |
1240 |
- # convert this to the use_enable form, as it results in a broken build. |
1241 |
- use debug && myconf="--enable-debug" |
1242 |
- |
1243 |
- # Only used by the gresource bin |
1244 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
1245 |
- |
1246 |
- # FIXME: change to "$(use_enable selinux)" when libselinux is multilibbed, bug #480960 |
1247 |
- if multilib_is_native_abi; then |
1248 |
- myconf="${myconf} $(use_enable selinux)" |
1249 |
- else |
1250 |
- myconf="${myconf} --disable-selinux" |
1251 |
- fi |
1252 |
- |
1253 |
- # Always use internal libpcre, bug #254659 |
1254 |
- ECONF_SOURCE="${S}" econf ${myconf} \ |
1255 |
- $(use_enable xattr) \ |
1256 |
- $(use_enable fam) \ |
1257 |
- $(use_enable selinux) \ |
1258 |
- $(use_enable static-libs static) \ |
1259 |
- $(use_enable systemtap dtrace) \ |
1260 |
- $(use_enable systemtap systemtap) \ |
1261 |
- $(use_enable test modular-tests) \ |
1262 |
- --disable-compile-warnings \ |
1263 |
- --disable-man \ |
1264 |
- --with-pcre=internal \ |
1265 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
1266 |
-} |
1267 |
- |
1268 |
-multilib_src_install_all() { |
1269 |
- einstalldocs |
1270 |
- |
1271 |
- if use utils ; then |
1272 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
1273 |
- else |
1274 |
- rm "${ED}usr/bin/gtester-report" |
1275 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
1276 |
- fi |
1277 |
- |
1278 |
- # Do not install charset.alias even if generated, leave it to libiconv |
1279 |
- rm -f "${ED}/usr/lib/charset.alias" |
1280 |
- |
1281 |
- # Don't install gdb python macros, bug 291328 |
1282 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
1283 |
- |
1284 |
- # Completely useless with or without USE static-libs, people need to use |
1285 |
- # pkg-config |
1286 |
- prune_libtool_files --modules |
1287 |
-} |
1288 |
- |
1289 |
-multilib_src_test() { |
1290 |
- gnome2_environment_reset |
1291 |
- |
1292 |
- unset DBUS_SESSION_BUS_ADDRESS |
1293 |
- export XDG_CONFIG_DIRS=/etc/xdg |
1294 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
1295 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
1296 |
- unset GSETTINGS_BACKEND # bug 352451 |
1297 |
- export LC_TIME=C # bug #411967 |
1298 |
- python_export_best |
1299 |
- |
1300 |
- # Related test is a bit nitpicking |
1301 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1302 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1303 |
- |
1304 |
- # Hardened: gdb needs this, bug #338891 |
1305 |
- if host-is-pax ; then |
1306 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
1307 |
- || die "Hardened adjustment failed" |
1308 |
- fi |
1309 |
- |
1310 |
- # Need X for dbus-launch session X11 initialization |
1311 |
- Xemake check |
1312 |
-} |
1313 |
- |
1314 |
-pkg_postinst() { |
1315 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
1316 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
1317 |
- # a warning instead of a blocker |
1318 |
- ewarn |
1319 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
1320 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
1321 |
- fi |
1322 |
-} |
1323 |
|
1324 |
diff --git a/dev-libs/glib/glib-2.38.2-r99.ebuild b/dev-libs/glib/glib-2.38.2-r99.ebuild |
1325 |
deleted file mode 100644 |
1326 |
index 6e467e6..0000000 |
1327 |
--- a/dev-libs/glib/glib-2.38.2-r99.ebuild |
1328 |
+++ /dev/null |
1329 |
@@ -1,274 +0,0 @@ |
1330 |
-# Copyright 1999-2014 Gentoo Foundation |
1331 |
-# Distributed under the terms of the GNU General Public License v2 |
1332 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.38.2-r1.ebuild,v 1.3 2014/03/15 11:25:49 pacho Exp $ |
1333 |
- |
1334 |
-EAPI="5" |
1335 |
-PYTHON_COMPAT=( python2_{6,7} ) |
1336 |
-# Avoid runtime dependency on python when USE=test |
1337 |
- |
1338 |
-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 |
1339 |
- |
1340 |
-DESCRIPTION="The GLib library of C routines" |
1341 |
-HOMEPAGE="http://www.gtk.org/" |
1342 |
-SRC_URI="${SRC_URI} |
1343 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
1344 |
- |
1345 |
-LICENSE="LGPL-2+" |
1346 |
-SLOT="2" |
1347 |
-IUSE="debug fam kernel_linux selinux static-libs systemtap test utils xattr" |
1348 |
-KEYWORDS="amd64 arm ~mips x86" |
1349 |
- |
1350 |
-# FIXME: want libselinux[${MULTILIB_USEDEP}] - bug #480960 |
1351 |
-RDEPEND=" |
1352 |
- virtual/libiconv[${MULTILIB_USEDEP}] |
1353 |
- virtual/libffi[${MULTILIB_USEDEP}] |
1354 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
1355 |
- || ( |
1356 |
- >=dev-libs/elfutils-0.142 |
1357 |
- >=dev-libs/libelf-0.8.12 |
1358 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
1359 |
- ) |
1360 |
- selinux? ( sys-libs/libselinux ) |
1361 |
- xattr? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
1362 |
- fam? ( virtual/fam[${MULTILIB_USEDEP}] ) |
1363 |
- utils? ( |
1364 |
- ${PYTHON_DEPS} |
1365 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
1366 |
- abi_x86_32? ( |
1367 |
- !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
1368 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
1369 |
- ) |
1370 |
-" |
1371 |
-DEPEND="${RDEPEND} |
1372 |
- app-text/docbook-xml-dtd:4.1.2 |
1373 |
- >=dev-libs/libxslt-1.0 |
1374 |
- >=sys-devel/gettext-0.11 |
1375 |
- >=dev-util/gtk-doc-am-1.15 |
1376 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
1377 |
- test? ( |
1378 |
- sys-devel/gdb |
1379 |
- ${PYTHON_DEPS} |
1380 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
1381 |
- >=sys-apps/dbus-1.2.14 ) |
1382 |
- !<dev-libs/gobject-introspection-1.$(get_version_component_range 2) |
1383 |
- !<dev-util/gtk-doc-1.15-r2 |
1384 |
-" |
1385 |
-# gobject-introspection blocker to ensure people don't mix |
1386 |
-# different g-i and glib major versions |
1387 |
- |
1388 |
-PDEPEND="x11-misc/shared-mime-info |
1389 |
- !<gnome-base/gvfs-1.6.4-r990" |
1390 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
1391 |
-# Earlier versions of gvfs do not work with glib |
1392 |
- |
1393 |
-DOCS="AUTHORS ChangeLog* NEWS* README" |
1394 |
- |
1395 |
-pkg_setup() { |
1396 |
- if use kernel_linux ; then |
1397 |
- CONFIG_CHECK="~INOTIFY_USER" |
1398 |
- if use test; then |
1399 |
- CONFIG_CHECK="~IPV6" |
1400 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
1401 |
- export IPV6_DISABLED="yes" |
1402 |
- fi |
1403 |
- linux-info_pkg_setup |
1404 |
- fi |
1405 |
-} |
1406 |
- |
1407 |
-src_prepare() { |
1408 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
1409 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
1410 |
- |
1411 |
- # Fix gmodule issues on fbsd; bug #184301, upstream bug #107626 |
1412 |
- epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch |
1413 |
- |
1414 |
- if use test; then |
1415 |
- # Do not try to remove files on live filesystem, upstream bug #619274 |
1416 |
- sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ |
1417 |
- -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" |
1418 |
- |
1419 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
1420 |
- if ! has_version dev-util/desktop-file-utils ; then |
1421 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
1422 |
- ewarn "think on installing it to get these tests run." |
1423 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
1424 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
1425 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
1426 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
1427 |
- fi |
1428 |
- |
1429 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
1430 |
- # other), falling back to xterm if one doesn't exist |
1431 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
1432 |
- ewarn "Some tests will be skipped due to missing terminal program" |
1433 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
1434 |
- fi |
1435 |
- |
1436 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
1437 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
1438 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
1439 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
1440 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
1441 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
1442 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
1443 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
1444 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
1445 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
1446 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
1447 |
- # needed to prevent gdbus-threading from asserting |
1448 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
1449 |
- fi |
1450 |
- |
1451 |
- # Some tests need ipv6, upstream bug #667468 |
1452 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
1453 |
- sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die |
1454 |
- sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die |
1455 |
- sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die |
1456 |
- fi |
1457 |
- |
1458 |
- # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655 |
1459 |
- sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die |
1460 |
- fi |
1461 |
- |
1462 |
- # thread test fails, upstream bug #679306 |
1463 |
- epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
1464 |
- |
1465 |
- # gdbus-codegen is a separate package |
1466 |
- epatch "${FILESDIR}/${PN}-2.37.x-external-gdbus-codegen.patch" |
1467 |
- |
1468 |
- # do not allow libgobject to unload; bug #405173, https://bugzilla.gnome.org/show_bug.cgi?id=707298 |
1469 |
- epatch "${FILESDIR}/${PN}-2.36.4-znodelete.patch" |
1470 |
- |
1471 |
- # patches from 2.39.x / 2.40.x |
1472 |
- epatch "${FILESDIR}/${PN}-2.38.2-sigaction.patch" #501330 |
1473 |
- |
1474 |
- # leave python shebang alone |
1475 |
- sed -e '/${PYTHON}/d' \ |
1476 |
- -i glib/Makefile.{am,in} || die |
1477 |
- |
1478 |
- # Gentoo handles completions in a different directory |
1479 |
- sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \ |
1480 |
- gio/Makefile.am || die |
1481 |
- |
1482 |
- # Support compilation in clang until upstream solves this, upstream bug #691608 |
1483 |
- append-flags -Wno-format-nonliteral |
1484 |
- |
1485 |
- epatch "${FILESDIR}"/${P}-configure.patch #500996 |
1486 |
- |
1487 |
- epatch_user |
1488 |
- |
1489 |
- # Needed for the punt-python-check patch, disabling timeout test |
1490 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
1491 |
- # Also needed for the no-gdbus-codegen patch |
1492 |
- eautoreconf |
1493 |
- |
1494 |
- # FIXME: Really needed when running eautoreconf before? bug#???? |
1495 |
- #[[ ${CHOST} == *-freebsd* ]] && elibtoolize |
1496 |
- |
1497 |
- epunt_cxx |
1498 |
-} |
1499 |
- |
1500 |
-multilib_src_configure() { |
1501 |
- # Avoid circular depend with dev-util/pkgconfig and |
1502 |
- # native builds (cross-compiles won't need pkg-config |
1503 |
- # in the target ROOT to work here) |
1504 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
1505 |
- if has_version sys-apps/dbus; then |
1506 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
1507 |
- export DBUS1_LIBS="-ldbus-1" |
1508 |
- fi |
1509 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
1510 |
- export LIBFFI_LIBS="-lffi" |
1511 |
- fi |
1512 |
- |
1513 |
- local myconf |
1514 |
- |
1515 |
- case "${CHOST}" in |
1516 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
1517 |
- *) myconf="${myconf} --with-threads=posix" ;; |
1518 |
- esac |
1519 |
- |
1520 |
- # Building with --disable-debug highly unrecommended. It will build glib in |
1521 |
- # an unusable form as it disables some commonly used API. Please do not |
1522 |
- # convert this to the use_enable form, as it results in a broken build. |
1523 |
- use debug && myconf="--enable-debug" |
1524 |
- |
1525 |
- # Only used by the gresource bin |
1526 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
1527 |
- |
1528 |
- # FIXME: change to "$(use_enable selinux)" when libselinux is multilibbed, bug #480960 |
1529 |
- if multilib_is_native_abi; then |
1530 |
- myconf="${myconf} $(use_enable selinux)" |
1531 |
- else |
1532 |
- myconf="${myconf} --disable-selinux" |
1533 |
- fi |
1534 |
- |
1535 |
- # Always use internal libpcre, bug #254659 |
1536 |
- ECONF_SOURCE="${S}" econf ${myconf} \ |
1537 |
- $(use_enable xattr) \ |
1538 |
- $(use_enable fam) \ |
1539 |
- $(use_enable selinux) \ |
1540 |
- $(use_enable static-libs static) \ |
1541 |
- $(use_enable systemtap dtrace) \ |
1542 |
- $(use_enable systemtap systemtap) \ |
1543 |
- --disable-compile-warnings \ |
1544 |
- --disable-man \ |
1545 |
- --with-pcre=internal \ |
1546 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
1547 |
-} |
1548 |
- |
1549 |
-multilib_src_install_all() { |
1550 |
- einstalldocs |
1551 |
- |
1552 |
- if use utils ; then |
1553 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
1554 |
- else |
1555 |
- rm "${ED}usr/bin/gtester-report" |
1556 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
1557 |
- fi |
1558 |
- |
1559 |
- # Do not install charset.alias even if generated, leave it to libiconv |
1560 |
- rm -f "${ED}/usr/lib/charset.alias" |
1561 |
- |
1562 |
- # Don't install gdb python macros, bug 291328 |
1563 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
1564 |
- |
1565 |
- # Completely useless with or without USE static-libs, people need to use |
1566 |
- # pkg-config |
1567 |
- prune_libtool_files --modules |
1568 |
-} |
1569 |
- |
1570 |
-multilib_src_test() { |
1571 |
- gnome2_environment_reset |
1572 |
- |
1573 |
- unset DBUS_SESSION_BUS_ADDRESS |
1574 |
- export XDG_CONFIG_DIRS=/etc/xdg |
1575 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
1576 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
1577 |
- unset GSETTINGS_BACKEND # bug 352451 |
1578 |
- export LC_TIME=C # bug #411967 |
1579 |
- python_export_best |
1580 |
- |
1581 |
- # Related test is a bit nitpicking |
1582 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1583 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1584 |
- |
1585 |
- # Hardened: gdb needs this, bug #338891 |
1586 |
- if host-is-pax ; then |
1587 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
1588 |
- || die "Hardened adjustment failed" |
1589 |
- fi |
1590 |
- |
1591 |
- # Need X for dbus-launch session X11 initialization |
1592 |
- Xemake check |
1593 |
-} |
1594 |
- |
1595 |
-pkg_postinst() { |
1596 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
1597 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
1598 |
- # a warning instead of a blocker |
1599 |
- ewarn |
1600 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
1601 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
1602 |
- fi |
1603 |
-} |
1604 |
|
1605 |
diff --git a/dev-libs/glib/glib-2.40.0-r99.ebuild b/dev-libs/glib/glib-2.40.0-r99.ebuild |
1606 |
deleted file mode 100644 |
1607 |
index e18e3a6..0000000 |
1608 |
--- a/dev-libs/glib/glib-2.40.0-r99.ebuild |
1609 |
+++ /dev/null |
1610 |
@@ -1,280 +0,0 @@ |
1611 |
-# Copyright 1999-2014 Gentoo Foundation |
1612 |
-# Distributed under the terms of the GNU General Public License v2 |
1613 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.40.0-r1.ebuild,v 1.8 2014/08/07 18:03:07 jer Exp $ |
1614 |
- |
1615 |
-EAPI="5" |
1616 |
-PYTHON_COMPAT=( python2_{6,7} ) |
1617 |
-# Avoid runtime dependency on python when USE=test |
1618 |
- |
1619 |
-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 |
1620 |
- |
1621 |
-DESCRIPTION="The GLib library of C routines" |
1622 |
-HOMEPAGE="http://www.gtk.org/" |
1623 |
-SRC_URI="${SRC_URI} |
1624 |
- http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz" # pkg.m4 for eautoreconf |
1625 |
- |
1626 |
-LICENSE="LGPL-2+" |
1627 |
-SLOT="2" |
1628 |
-IUSE="debug fam kernel_linux +mime selinux static-libs systemtap test utils xattr" |
1629 |
-KEYWORDS="~amd64 ~arm ~mips ~x86" |
1630 |
- |
1631 |
-# FIXME: want >=libselinux-2.2.2-r4[${MULTILIB_USEDEP}] - bug #480960 |
1632 |
-RDEPEND=" |
1633 |
- !<dev-util/gdbus-codegen-${PV} |
1634 |
- >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
1635 |
- >=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
1636 |
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
1637 |
- || ( |
1638 |
- >=dev-libs/elfutils-0.142 |
1639 |
- >=dev-libs/libelf-0.8.12 |
1640 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
1641 |
- ) |
1642 |
- selinux? ( sys-libs/libselinux ) |
1643 |
- xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
1644 |
- fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
1645 |
- utils? ( |
1646 |
- ${PYTHON_DEPS} |
1647 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
1648 |
- abi_x86_32? ( |
1649 |
- !<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
1650 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
1651 |
- ) |
1652 |
-" |
1653 |
-DEPEND="${RDEPEND} |
1654 |
- app-text/docbook-xml-dtd:4.1.2 |
1655 |
- >=dev-libs/libxslt-1.0 |
1656 |
- >=sys-devel/gettext-0.11 |
1657 |
- >=dev-util/gtk-doc-am-1.20 |
1658 |
- systemtap? ( >=dev-util/systemtap-1.3 ) |
1659 |
- test? ( |
1660 |
- sys-devel/gdb |
1661 |
- ${PYTHON_DEPS} |
1662 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
1663 |
- >=sys-apps/dbus-1.2.14 ) |
1664 |
- !<dev-util/gtk-doc-1.15-r2 |
1665 |
-" |
1666 |
-# gobject-introspection blocker to ensure people don't mix |
1667 |
-# different g-i and glib major versions |
1668 |
- |
1669 |
-PDEPEND="!<gnome-base/gvfs-1.6.4-r990 |
1670 |
- mime? ( x11-misc/shared-mime-info ) |
1671 |
-" |
1672 |
-# shared-mime-info needed for gio/xdgmime, bug #409481 |
1673 |
-# Earlier versions of gvfs do not work with glib |
1674 |
- |
1675 |
-DOCS="AUTHORS ChangeLog* NEWS* README" |
1676 |
- |
1677 |
-pkg_setup() { |
1678 |
- if use kernel_linux ; then |
1679 |
- CONFIG_CHECK="~INOTIFY_USER" |
1680 |
- if use test; then |
1681 |
- CONFIG_CHECK="~IPV6" |
1682 |
- WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." |
1683 |
- export IPV6_DISABLED="yes" |
1684 |
- fi |
1685 |
- linux-info_pkg_setup |
1686 |
- fi |
1687 |
-} |
1688 |
- |
1689 |
-src_prepare() { |
1690 |
- # Prevent build failure in stage3 where pkgconfig is not available, bug #481056 |
1691 |
- mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${S}"/m4macros/ || die |
1692 |
- |
1693 |
- # Fix gmodule issues on fbsd; bug #184301, upstream bug #107626 |
1694 |
- epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch |
1695 |
- |
1696 |
- if use test; then |
1697 |
- # Do not try to remove files on live filesystem, upstream bug #619274 |
1698 |
- sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ |
1699 |
- -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" |
1700 |
- |
1701 |
- # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 |
1702 |
- if ! has_version dev-util/desktop-file-utils ; then |
1703 |
- ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," |
1704 |
- ewarn "think on installing it to get these tests run." |
1705 |
- sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die |
1706 |
- sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die |
1707 |
- sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die |
1708 |
- sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die |
1709 |
- fi |
1710 |
- |
1711 |
- # gdesktopappinfo requires existing terminal (gnome-terminal or any |
1712 |
- # other), falling back to xterm if one doesn't exist |
1713 |
- if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then |
1714 |
- ewarn "Some tests will be skipped due to missing terminal program" |
1715 |
- sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die |
1716 |
- fi |
1717 |
- |
1718 |
- # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 |
1719 |
- if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then |
1720 |
- ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" |
1721 |
- ewarn "not being present on your system, think on installing them to get these tests run." |
1722 |
- sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die |
1723 |
- sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die |
1724 |
- sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die |
1725 |
- sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die |
1726 |
- sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die |
1727 |
- sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die |
1728 |
- sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die |
1729 |
- # needed to prevent gdbus-threading from asserting |
1730 |
- ln -sfn $(type -P true) gio/tests/gdbus-testserver.py |
1731 |
- fi |
1732 |
- |
1733 |
- # Some tests need ipv6, upstream bug #667468 |
1734 |
- if [[ -n "${IPV6_DISABLED}" ]]; then |
1735 |
- sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die |
1736 |
- sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die |
1737 |
- sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die |
1738 |
- fi |
1739 |
- |
1740 |
- # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655 |
1741 |
- sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die |
1742 |
- |
1743 |
- # thread test fails, upstream bug #679306 |
1744 |
- epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
1745 |
- else |
1746 |
- # Don't build tests, also prevents extra deps, bug #512022 |
1747 |
- sed -i -e 's/ tests//' {.,gio,glib}/Makefile.am || die |
1748 |
- fi |
1749 |
- |
1750 |
- # gdbus-codegen is a separate package |
1751 |
- epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch" |
1752 |
- |
1753 |
- # do not allow libgobject to unload; bug #405173, https://bugzilla.gnome.org/show_bug.cgi?id=707298 |
1754 |
- epatch "${FILESDIR}/${PN}-2.36.4-znodelete.patch" |
1755 |
- |
1756 |
- # leave python shebang alone |
1757 |
- sed -e '/${PYTHON}/d' \ |
1758 |
- -i glib/Makefile.{am,in} || die |
1759 |
- |
1760 |
- # Gentoo handles completions in a different directory |
1761 |
- sed -i "s|^completiondir =.*|completiondir = $(get_bashcompdir)|" \ |
1762 |
- gio/Makefile.am || die |
1763 |
- |
1764 |
- # Support compilation in clang until upstream solves this, upstream bug #691608 |
1765 |
- append-flags -Wno-format-nonliteral |
1766 |
- |
1767 |
- epatch_user |
1768 |
- |
1769 |
- # Needed for the punt-python-check patch, disabling timeout test |
1770 |
- # Also needed to prevent cross-compile failures, see bug #267603 |
1771 |
- # Also needed for the no-gdbus-codegen patch |
1772 |
- eautoreconf |
1773 |
- |
1774 |
- # FIXME: Really needed when running eautoreconf before? bug#???? |
1775 |
- #[[ ${CHOST} == *-freebsd* ]] && elibtoolize |
1776 |
- |
1777 |
- epunt_cxx |
1778 |
-} |
1779 |
- |
1780 |
-multilib_src_configure() { |
1781 |
- # Avoid circular depend with dev-util/pkgconfig and |
1782 |
- # native builds (cross-compiles won't need pkg-config |
1783 |
- # in the target ROOT to work here) |
1784 |
- if ! tc-is-cross-compiler && ! $(tc-getPKG_CONFIG) --version >& /dev/null; then |
1785 |
- if has_version sys-apps/dbus; then |
1786 |
- export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" |
1787 |
- export DBUS1_LIBS="-ldbus-1" |
1788 |
- fi |
1789 |
- export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" |
1790 |
- export LIBFFI_LIBS="-lffi" |
1791 |
- fi |
1792 |
- |
1793 |
- local myconf |
1794 |
- |
1795 |
- case "${CHOST}" in |
1796 |
- *-mingw*) myconf="${myconf} --with-threads=win32" ;; |
1797 |
- *) myconf="${myconf} --with-threads=posix" ;; |
1798 |
- esac |
1799 |
- |
1800 |
- # Building with --disable-debug highly unrecommended. It will build glib in |
1801 |
- # an unusable form as it disables some commonly used API. Please do not |
1802 |
- # convert this to the use_enable form, as it results in a broken build. |
1803 |
- use debug && myconf="--enable-debug" |
1804 |
- |
1805 |
- # Only used by the gresource bin |
1806 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
1807 |
- |
1808 |
- # FIXME: change to "$(use_enable selinux)" when libselinux is multilibbed, bug #480960 |
1809 |
- if multilib_is_native_abi; then |
1810 |
- myconf="${myconf} $(use_enable selinux)" |
1811 |
- else |
1812 |
- myconf="${myconf} --disable-selinux" |
1813 |
- fi |
1814 |
- |
1815 |
- # Always use internal libpcre, bug #254659 |
1816 |
- ECONF_SOURCE="${S}" econf ${myconf} \ |
1817 |
- $(use_enable xattr) \ |
1818 |
- $(use_enable fam) \ |
1819 |
- $(use_enable selinux) \ |
1820 |
- $(use_enable static-libs static) \ |
1821 |
- $(use_enable systemtap dtrace) \ |
1822 |
- $(use_enable systemtap systemtap) \ |
1823 |
- --disable-compile-warnings \ |
1824 |
- --disable-man \ |
1825 |
- --with-pcre=internal \ |
1826 |
- --with-xml-catalog="${EPREFIX}/etc/xml/catalog" |
1827 |
- |
1828 |
- if multilib_is_native_abi; then |
1829 |
- local d |
1830 |
- for d in glib gio gobject; do |
1831 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
1832 |
- done |
1833 |
- fi |
1834 |
-} |
1835 |
- |
1836 |
-multilib_src_install_all() { |
1837 |
- einstalldocs |
1838 |
- |
1839 |
- if use utils ; then |
1840 |
- python_replicate_script "${ED}"/usr/bin/gtester-report |
1841 |
- else |
1842 |
- rm "${ED}usr/bin/gtester-report" |
1843 |
- rm "${ED}usr/share/man/man1/gtester-report.1" |
1844 |
- fi |
1845 |
- |
1846 |
- # Do not install charset.alias even if generated, leave it to libiconv |
1847 |
- rm -f "${ED}/usr/lib/charset.alias" |
1848 |
- |
1849 |
- # Don't install gdb python macros, bug 291328 |
1850 |
- rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
1851 |
- |
1852 |
- # Completely useless with or without USE static-libs, people need to use |
1853 |
- # pkg-config |
1854 |
- prune_libtool_files --modules |
1855 |
-} |
1856 |
- |
1857 |
-multilib_src_test() { |
1858 |
- gnome2_environment_reset |
1859 |
- |
1860 |
- unset DBUS_SESSION_BUS_ADDRESS |
1861 |
- export XDG_CONFIG_DIRS=/etc/xdg |
1862 |
- export XDG_DATA_DIRS=/usr/local/share:/usr/share |
1863 |
- export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
1864 |
- unset GSETTINGS_BACKEND # bug 352451 |
1865 |
- export LC_TIME=C # bug #411967 |
1866 |
- python_export_best |
1867 |
- |
1868 |
- # Related test is a bit nitpicking |
1869 |
- mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1870 |
- chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" |
1871 |
- |
1872 |
- # Hardened: gdb needs this, bug #338891 |
1873 |
- if host-is-pax ; then |
1874 |
- pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test \ |
1875 |
- || die "Hardened adjustment failed" |
1876 |
- fi |
1877 |
- |
1878 |
- # Need X for dbus-launch session X11 initialization |
1879 |
- Xemake check |
1880 |
-} |
1881 |
- |
1882 |
-pkg_postinst() { |
1883 |
- if has_version '<x11-libs/gtk+-3.0.12:3'; then |
1884 |
- # To have a clear upgrade path for gtk+-3.0.x users, have to resort to |
1885 |
- # a warning instead of a blocker |
1886 |
- ewarn |
1887 |
- ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." |
1888 |
- ewarn "You should upgrade to a newer version of gtk+:3 immediately." |
1889 |
- fi |
1890 |
-} |
1891 |
|
1892 |
diff --git a/dev-libs/glib/metadata.xml b/dev-libs/glib/metadata.xml |
1893 |
deleted file mode 100644 |
1894 |
index ae970d3..0000000 |
1895 |
--- a/dev-libs/glib/metadata.xml |
1896 |
+++ /dev/null |
1897 |
@@ -1,14 +0,0 @@ |
1898 |
-<?xml version="1.0" encoding="UTF-8"?> |
1899 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1900 |
-<pkgmetadata> |
1901 |
- <herd>gnome</herd> |
1902 |
- <use> |
1903 |
- <flag name="systemtap">Build support for profiling and tracing using |
1904 |
- <pkg>dev-util/systemtap</pkg></flag> |
1905 |
- <flag name="utils">Install gtester-report utility to generate test |
1906 |
- report files for your software.</flag> |
1907 |
- </use> |
1908 |
- <upstream> |
1909 |
- <remote-id type="cpe">cpe:/a:gnome:glib</remote-id> |
1910 |
- </upstream> |
1911 |
-</pkgmetadata> |