diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-04-23 19:02:40 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-04-23 19:02:40 +0000 |
commit | 6f7b33981dabc1d43f361e85f7bacc4e400e1eeb (patch) | |
tree | dc948e60cdc459c1aeb8772f1c4170669a3ee0f5 /dev-libs | |
parent | Version bump. (diff) | |
download | gentoo-2-6f7b33981dabc1d43f361e85f7bacc4e400e1eeb.tar.gz gentoo-2-6f7b33981dabc1d43f361e85f7bacc4e400e1eeb.tar.bz2 gentoo-2-6f7b33981dabc1d43f361e85f7bacc4e400e1eeb.zip |
Version bump, drop old
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/glib/ChangeLog | 15 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch | 39 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch | 20 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch | 75 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.1-homedir-env.patch | 61 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.2-machine-id.patch | 32 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.2-missing-decls.patch | 36 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.3-assert-test-failure.patch | 19 | ||||
-rw-r--r-- | dev-libs/glib/files/glib-2.30.3-closure-64bit-be.patch | 220 | ||||
-rw-r--r-- | dev-libs/glib/glib-2.30.3.ebuild | 247 | ||||
-rw-r--r-- | dev-libs/glib/glib-2.36.1.ebuild (renamed from dev-libs/glib/glib-2.34.2.ebuild) | 107 |
11 files changed, 73 insertions, 798 deletions
diff --git a/dev-libs/glib/ChangeLog b/dev-libs/glib/ChangeLog index 713d6f1cd5a5..86a2f85219a7 100644 --- a/dev-libs/glib/ChangeLog +++ b/dev-libs/glib/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for dev-libs/glib # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.555 2013/04/07 17:33:00 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.556 2013/04/23 19:02:39 pacho Exp $ + +*glib-2.36.1 (23 Apr 2013) + + 23 Apr 2013; Pacho Ramos <pacho@gentoo.org> +glib-2.36.1.ebuild, + -files/glib-2.10.3-ia64-atomic-ops.patch, + -files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch, + -files/glib-2.30.1-external-gdbus-codegen.patch, + -files/glib-2.30.1-homedir-env.patch, -files/glib-2.30.2-machine-id.patch, + -files/glib-2.30.2-missing-decls.patch, + -files/glib-2.30.3-assert-test-failure.patch, + -files/glib-2.30.3-closure-64bit-be.patch, -glib-2.30.3.ebuild, + -glib-2.34.2.ebuild: + Version bump, drop old 07 Apr 2013; Gilles Dartiguelongue <eva@gentoo.org> glib-2.36.0.ebuild: Switch to python-r1, bug #458788. Do not install gtester-report man page with diff --git a/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch b/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch deleted file mode 100644 index 0859e3310a17..000000000000 --- a/dev-libs/glib/files/glib-2.10.3-ia64-atomic-ops.patch +++ /dev/null @@ -1,39 +0,0 @@ -From Debian, this one is needed for gcc < 4.1... - ---- glib-2.10.0/glib/gatomic.c 2006-02-24 14:02:51.000000000 +0000 -+++ glib-2.10.0/glib/gatomic.c 2006-03-06 18:12:06.000000000 +0000 -@@ -414,14 +414,14 @@ - g_atomic_int_exchange_and_add (volatile gint *atomic, - gint val) - { -- return __sync_fetch_and_add (atomic, val); -+ return __sync_fetch_and_add_si (atomic, val); - } - - void - g_atomic_int_add (volatile gint *atomic, - gint val) - { -- __sync_fetch_and_add (atomic, val); -+ __sync_fetch_and_add_si (atomic, val); - } - - gboolean -@@ -429,7 +429,7 @@ - gint oldval, - gint newval) - { -- return __sync_bool_compare_and_swap (atomic, oldval, newval); -+ return __sync_bool_compare_and_swap_si (atomic, oldval, newval); - } - - gboolean -@@ -437,7 +437,7 @@ - gpointer oldval, - gpointer newval) - { -- return __sync_bool_compare_and_swap ((long *)atomic, -+ return __sync_bool_compare_and_swap_di ((long *)atomic, - (long)oldval, (long)newval); - } - diff --git a/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch b/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch deleted file mode 100644 index cabe56f567d0..000000000000 --- a/dev-libs/glib/files/glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch +++ /dev/null @@ -1,20 +0,0 @@ -Temporary workaround for gio tests failure when ran without FEATURES=userpriv -until upstream bug #552912 is fixed - ---- gio/tests/live-g-file.c.orig 2008-09-25 05:44:12.848556034 +0300 -+++ gio/tests/live-g-file.c 2008-09-25 06:12:34.248726237 +0300 -@@ -769,11 +769,14 @@ - if (posix_compat) - { - /* target directory is not accessible (no execute flag) */ -+#if 0 -+/* Fails when ran as root */ - do_copy_move (root, item, TEST_DIR_NO_ACCESS, - TEST_NO_ACCESS); - /* target directory is readonly */ - do_copy_move (root, item, TEST_DIR_NO_WRITE, - TEST_NO_ACCESS); -+#endif - } - } - } diff --git a/dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch deleted file mode 100644 index 916b291d2060..000000000000 --- a/dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch +++ /dev/null @@ -1,75 +0,0 @@ -Use an external gdbus-codegen package - ---- configure.ac -+++ configure.ac -@@ -367,7 +367,7 @@ - AC_SUBST(PERL_PATH) - - # Need suitable python path for greport --AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") -+# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5") - - - dnl *********************** -@@ -3857,8 +3857,6 @@ - gthread/Makefile - gthread/tests/Makefile - gio/Makefile --gio/gdbus-2.0/codegen/Makefile --gio/gdbus-2.0/codegen/config.py - gio/xdgmime/Makefile - gio/inotify/Makefile - gio/libasyncns/Makefile ---- docs/reference/gio/Makefile.am -+++ docs/reference/gio/Makefile.am -@@ -138,8 +138,7 @@ - gio-querymodules.1 \ - glib-compile-schemas.1 \ - gsettings.1 \ -- gdbus.1 \ -- gdbus-codegen.1 -+ gdbus.1 - - if ENABLE_MAN - ---- gio/Makefile.am -+++ gio/Makefile.am -@@ -2,7 +2,7 @@ - - NULL = - --SUBDIRS = gdbus-2.0/codegen -+SUBDIRS = - - if OS_UNIX - SUBDIRS += libasyncns xdgmime ---- gio/tests/gdbus-object-manager-example/Makefile.am -+++ gio/tests/gdbus-object-manager-example/Makefile.am -@@ -21,10 +21,8 @@ - gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \ - $(NULL) - --$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen -- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ -- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ -- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ -+$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile -+ $(AM_V_GEN) gdbus-codegen \ - --interface-prefix org.gtk.GDBus.Example.ObjectManager. \ - --c-namespace Example \ - --c-generate-object-manager \ ---- gio/tests/Makefile.am -+++ gio/tests/Makefile.am -@@ -266,10 +266,8 @@ - gdbus_close_pending_LDADD = $(progs_ldadd) - - if OS_UNIX --gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen -- $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \ -- UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \ -- $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \ -+gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile -+ $(AM_V_GEN) gdbus-codegen \ - --interface-prefix org.project. \ - --generate-c-code gdbus-test-codegen-generated \ - --c-generate-object-manager \ diff --git a/dev-libs/glib/files/glib-2.30.1-homedir-env.patch b/dev-libs/glib/files/glib-2.30.1-homedir-env.patch deleted file mode 100644 index 30d44997c591..000000000000 --- a/dev-libs/glib/files/glib-2.30.1-homedir-env.patch +++ /dev/null @@ -1,61 +0,0 @@ -Description: Handle the G_HOME environment variable to override the passwd entry - This will allow to fix various kinds of build failures due to restricted - build environments. -Author: Josselin Mouette <joss@debian.org> -Origin: vendor - ---- a/docs/reference/glib/running.sgml -+++ b/docs/reference/glib/running.sgml -@@ -213,6 +213,22 @@ - </para> - </formalpara> - -+<formalpara id="G_HOME"> -+ <title><envar>G_HOME</envar></title> -+ -+ <para> -+ For various reasons, GLib applications ignore the <envar>HOME</envar> -+ environment variable on Unix systems and will use the user directory -+ as specified by the <filename>passwd</filename> entry, which is more -+ reliable. -+ </para> -+ <para> -+ The <envar>G_HOME</envar> environment variable will override any -+ other setting for the home directory. It is not meant for daily usage, -+ but it is useful in testing or building environments. -+ </para> -+</formalpara> -+ - </refsect2> - - <refsect2 id="setlocale"> ---- a/glib/gutils.c -+++ b/glib/gutils.c -@@ -1626,11 +1626,14 @@ - } - #endif /* !G_OS_WIN32 */ - -+ g_home_dir = g_strdup (g_getenv ("G_HOME")); -+ - #ifdef G_OS_WIN32 - /* We check $HOME first for Win32, though it is a last resort for Unix - * where we prefer the results of getpwuid(). - */ -- g_home_dir = g_strdup (g_getenv ("HOME")); -+ if (!g_home_dir) -+ g_home_dir = g_strdup (g_getenv ("HOME")); - - /* Only believe HOME if it is an absolute path and exists */ - if (g_home_dir) -@@ -1926,6 +1929,11 @@ - * homedir = g_get_home_dir (<!-- -->); - * ]| - * -+ * However, to allow changing this value for testing and development -+ * purposes, the value of the <envar>G_HOME</envar> environment -+ * variable, if set, will override the <filename>passwd</filename> -+ * entry. -+ * - * Returns: the current user's home directory - */ - G_CONST_RETURN gchar* diff --git a/dev-libs/glib/files/glib-2.30.2-machine-id.patch b/dev-libs/glib/files/glib-2.30.2-machine-id.patch deleted file mode 100644 index 863b3b448630..000000000000 --- a/dev-libs/glib/files/glib-2.30.2-machine-id.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 1c9eceaccb6e6c4339cd6951cf53fbd60ae80b8b Mon Sep 17 00:00:00 2001 -From: Alexandre Rostovtsev <tetromino@gentoo.org> -Date: Mon, 14 Nov 2011 01:43:22 -0500 -Subject: [PATCH] _g_dbus_get_machine_id(): check /etc/machine-id too - -machine-id can be in /etc or in /var/lib/dbus. - -https://bugzilla.gnome.org/show_bug.cgi?id=663928 ---- - gio/gdbusprivate.c | 6 +++++- - 1 files changed, 5 insertions(+), 1 deletions(-) - -diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c -index 55ac883..68c3ddf 100644 ---- a/gio/gdbusprivate.c -+++ b/gio/gdbusprivate.c -@@ -1985,7 +1985,11 @@ _g_dbus_get_machine_id (GError **error) - gchar *ret; - /* TODO: use PACKAGE_LOCALSTATEDIR ? */ - ret = NULL; -- if (!g_file_get_contents ("/var/lib/dbus/machine-id", -+ if (!g_file_get_contents ("/etc/machine-id", -+ &ret, -+ NULL, -+ NULL) && -+ !g_file_get_contents ("/var/lib/dbus/machine-id", - &ret, - NULL, - error)) --- -1.7.8.rc1 - diff --git a/dev-libs/glib/files/glib-2.30.2-missing-decls.patch b/dev-libs/glib/files/glib-2.30.2-missing-decls.patch deleted file mode 100644 index 3641f8850408..000000000000 --- a/dev-libs/glib/files/glib-2.30.2-missing-decls.patch +++ /dev/null @@ -1,36 +0,0 @@ -Fix from upstream for building with C++ compilers: -https://bugzilla.gnome.org/show_bug.cgi?id=663880 - -From 5d9f05eef147f17d71e38c9fba2e3f622c9ed21b Mon Sep 17 00:00:00 2001 -From: Matthias Clasen <mclasen@redhat.com> -Date: Sat, 12 Nov 2011 10:26:31 -0500 -Subject: [PATCH] glib-unix.h: Add G_BEGIN/END_DECLS - -The omission was pointed out in bug 663880. ---- - glib/glib-unix.h | 6 +++++- - 1 files changed, 5 insertions(+), 1 deletions(-) - -diff --git a/glib/glib-unix.h b/glib/glib-unix.h -index 9642b5c..7be37f0 100644 ---- a/glib/glib-unix.h -+++ b/glib/glib-unix.h -@@ -38,6 +38,8 @@ - #error "This header may only be used on UNIX" - #endif - -+G_BEGIN_DECLS -+ - /** - * G_UNIX_ERROR: - * -@@ -77,4 +79,6 @@ guint g_unix_signal_add (gint signum, - GSourceFunc handler, - gpointer user_data); - --#endif -+G_END_DECLS -+ -+#endif /* __G_UNIX_H__ */ --- -1.7.7.1 diff --git a/dev-libs/glib/files/glib-2.30.3-assert-test-failure.patch b/dev-libs/glib/files/glib-2.30.3-assert-test-failure.patch deleted file mode 100644 index 20a12c43ff9c..000000000000 --- a/dev-libs/glib/files/glib-2.30.3-assert-test-failure.patch +++ /dev/null @@ -1,19 +0,0 @@ -Tests fail when upgrading glib from 2.22 to 2.24 if sys-devel/gdb is installed -because gdb is run on .libs/assert-msg-test before LD_LIBRARY_PATH is set. This -causes gdb to use the system-wide glib instead, and fail on the test. - -This patch exports LD_LIBRARY_PATH before running gdb - -https://bugzilla.gnome.org/621368 - ---- ---- tests/run-assert-msg-test.sh -+++ tests/run-assert-msg-test.sh -@@ -34,6 +34,7 @@ if [ -e ".libs/lt-$msg_test" ]; then - msg_test="lt-$msg_test" - fi - echo_v "Running gdb on assert-msg-test" -+export LD_LIBRARY_PATH="`dirname $PWD`/glib/.libs:$LD_LIBRARY_PATH" - OUT=$(gdb --batch --ex run --ex "set print elements 0" --ex "print (char*) __glib_assert_msg" .libs/$msg_test 2> $error_out) || \ - fail "failed to run gdb" - diff --git a/dev-libs/glib/files/glib-2.30.3-closure-64bit-be.patch b/dev-libs/glib/files/glib-2.30.3-closure-64bit-be.patch deleted file mode 100644 index 9ec9f1aa1775..000000000000 --- a/dev-libs/glib/files/glib-2.30.3-closure-64bit-be.patch +++ /dev/null @@ -1,220 +0,0 @@ -From 0782edcb44110c8a3ba921258eb8d4e452f2470e Mon Sep 17 00:00:00 2001 -From: Dan Williams <dcbw@redhat.com> -Date: Fri, 23 Sep 2011 12:32:23 -0500 -Subject: [PATCH] closure: fix handling of ENUMs and integral return types on - 64-bit BE platforms - -enums are stored in v_long but need to be marshalled as signed -integers. On platforms where int is 32 bits, taking the -address of v_long resulted in the wrong 32 bits being marshalled. -So we need to stuff the enum's int-sized value to a temporary -int-sized variable and marshall that instead. - -Second, on return, libffi actually returns a pointer to a value -that's sized according to platform conventions, not according to -what the caller requested. ie if ffi_type_sint was requested, the -value can still be a 64-bit sign-extended long on a 64-bit -architecture like PPC64, thus the caller cannot simply cast -the return value as a pointer to the desired type, but must cast -as a pointer to an integral type and then cast to the desired -type to remove any sign extension complications. - -For more information on how to correctly handle libffi return -values, see the following bug, specifically comment 35: - -https://bugzilla.redhat.com/show_bug.cgi?id=736489 - -"For 64-bit ABIs that extend integral returns types to 64-bits, libffi always -returns full 64-bit values that you can truncate in the calling code. It's -just the way it is has always been. Please don't change libffi. I'll document -this clearly for the next version (perhaps there is a mention of this, I -haven't looked yet). - -The same is true for returning 8-bit values, for instance, on 32-bit systems. -All ABIs extend those results to the full 32-bits so you need to provide a -properly aligned buffer that's big enough to hold the result." - -https://bugzilla.gnome.org/show_bug.cgi?id=659881 - -[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to glib-2.30.x] ---- - gobject/gclosure.c | 76 ++++++++++++++++++++++++++++++++++++++++----------- - 1 files changed, 59 insertions(+), 17 deletions(-) - -diff --git a/gobject/gclosure.c b/gobject/gclosure.c -index 5fd928b..fc4f99a 100644 ---- a/gobject/gclosure.c -+++ b/gobject/gclosure.c -@@ -944,21 +944,42 @@ g_signal_type_cclosure_new (GType itype, - - #include <ffi.h> - static ffi_type * --value_to_ffi_type (const GValue *gvalue, gpointer *value) -+value_to_ffi_type (const GValue *gvalue, -+ gpointer *value, -+ gint *enum_tmpval, -+ gboolean *tmpval_used) - { - ffi_type *rettype = NULL; - GType type = g_type_fundamental (G_VALUE_TYPE (gvalue)); - g_assert (type != G_TYPE_INVALID); - -+ if (enum_tmpval) -+ { -+ g_assert (tmpval_used != NULL); -+ *tmpval_used = FALSE; -+ } -+ - switch (type) - { - case G_TYPE_BOOLEAN: - case G_TYPE_CHAR: - case G_TYPE_INT: -- case G_TYPE_ENUM: - rettype = &ffi_type_sint; - *value = (gpointer)&(gvalue->data[0].v_int); - break; -+ case G_TYPE_ENUM: -+ /* enums are stored in v_long even though they are integers, which makes -+ * marshalling through libffi somewhat complicated. They need to be -+ * marshalled as signed ints, but we need to use a temporary int sized -+ * value to pass to libffi otherwise it'll pull the wrong value on -+ * BE machines with 32-bit integers when treating v_long as 32-bit int. -+ */ -+ g_assert (enum_tmpval != NULL); -+ rettype = &ffi_type_sint; -+ *enum_tmpval = g_value_get_enum (gvalue); -+ *value = enum_tmpval; -+ *tmpval_used = TRUE; -+ break; - case G_TYPE_UCHAR: - case G_TYPE_UINT: - case G_TYPE_FLAGS: -@@ -1011,10 +1032,12 @@ value_to_ffi_type (const GValue *gvalue, gpointer *value) - static void - value_from_ffi_type (GValue *gvalue, gpointer *value) - { -+ ffi_arg *int_val = value; -+ - switch (g_type_fundamental (G_VALUE_TYPE (gvalue))) - { - case G_TYPE_INT: -- g_value_set_int (gvalue, *(gint*)value); -+ g_value_set_int (gvalue, (gint) *int_val); - break; - case G_TYPE_FLOAT: - g_value_set_float (gvalue, *(gfloat*)value); -@@ -1023,43 +1046,43 @@ value_from_ffi_type (GValue *gvalue, gpointer *value) - g_value_set_double (gvalue, *(gdouble*)value); - break; - case G_TYPE_BOOLEAN: -- g_value_set_boolean (gvalue, *(gboolean*)value); -+ g_value_set_boolean (gvalue, (gboolean) *int_val); - break; - case G_TYPE_STRING: - g_value_set_string (gvalue, *(gchar**)value); - break; - case G_TYPE_CHAR: -- g_value_set_char (gvalue, *(gchar*)value); -+ g_value_set_char (gvalue, (gchar) *int_val); - break; - case G_TYPE_UCHAR: -- g_value_set_uchar (gvalue, *(guchar*)value); -+ g_value_set_uchar (gvalue, (guchar) *int_val); - break; - case G_TYPE_UINT: -- g_value_set_uint (gvalue, *(guint*)value); -+ g_value_set_uint (gvalue, (guint) *int_val); - break; - case G_TYPE_POINTER: - g_value_set_pointer (gvalue, *(gpointer*)value); - break; - case G_TYPE_LONG: -- g_value_set_long (gvalue, *(glong*)value); -+ g_value_set_long (gvalue, (glong) *int_val); - break; - case G_TYPE_ULONG: -- g_value_set_ulong (gvalue, *(gulong*)value); -+ g_value_set_ulong (gvalue, (gulong) *int_val); - break; - case G_TYPE_INT64: -- g_value_set_int64 (gvalue, *(gint64*)value); -+ g_value_set_int64 (gvalue, (gint64) *int_val); - break; - case G_TYPE_UINT64: -- g_value_set_uint64 (gvalue, *(guint64*)value); -+ g_value_set_uint64 (gvalue, (guint64) *int_val); - break; - case G_TYPE_BOXED: - g_value_set_boxed (gvalue, *(gpointer*)value); - break; - case G_TYPE_ENUM: -- g_value_set_enum (gvalue, *(gint*)value); -+ g_value_set_enum (gvalue, (gint) *int_val); - break; - case G_TYPE_FLAGS: -- g_value_set_flags (gvalue, *(guint*)value); -+ g_value_set_flags (gvalue, (guint) *int_val); - break; - case G_TYPE_PARAM: - g_value_set_param (gvalue, *(gpointer*)value); -@@ -1108,10 +1131,13 @@ g_cclosure_marshal_generic (GClosure *closure, - int i; - ffi_cif cif; - GCClosure *cc = (GCClosure*) closure; -+ gint *enum_tmpval; -+ gboolean tmpval_used = FALSE; - -+ enum_tmpval = g_alloca (sizeof (gint)); - if (return_gvalue && G_VALUE_TYPE (return_gvalue)) - { -- rtype = value_to_ffi_type (return_gvalue, &rvalue); -+ rtype = value_to_ffi_type (return_gvalue, &rvalue, enum_tmpval, &tmpval_used); - } - else - { -@@ -1124,22 +1150,38 @@ g_cclosure_marshal_generic (GClosure *closure, - atypes = g_alloca (sizeof (ffi_type *) * n_args); - args = g_alloca (sizeof (gpointer) * n_args); - -+ if (tmpval_used) -+ enum_tmpval = g_alloca (sizeof (gint)); -+ - if (G_CCLOSURE_SWAP_DATA (closure)) - { - atypes[n_args-1] = value_to_ffi_type (param_values + 0, -- &args[n_args-1]); -+ &args[n_args-1], -+ enum_tmpval, -+ &tmpval_used); - atypes[0] = &ffi_type_pointer; - args[0] = &closure->data; - } - else - { -- atypes[0] = value_to_ffi_type (param_values + 0, &args[0]); -+ atypes[0] = value_to_ffi_type (param_values + 0, -+ &args[0], -+ enum_tmpval, -+ &tmpval_used); - atypes[n_args-1] = &ffi_type_pointer; - args[n_args-1] = &closure->data; - } - - for (i = 1; i < n_args - 1; i++) -- atypes[i] = value_to_ffi_type (param_values + i, &args[i]); -+ { -+ if (tmpval_used) -+ enum_tmpval = g_alloca (sizeof (gint)); -+ -+ atypes[i] = value_to_ffi_type (param_values + i, -+ &args[i], -+ enum_tmpval, -+ &tmpval_used); -+ } - - if (ffi_prep_cif (&cif, FFI_DEFAULT_ABI, n_args, rtype, atypes) != FFI_OK) - return; --- -1.7.8.5 - diff --git a/dev-libs/glib/glib-2.30.3.ebuild b/dev-libs/glib/glib-2.30.3.ebuild deleted file mode 100644 index bc0ad9016f0e..000000000000 --- a/dev-libs/glib/glib-2.30.3.ebuild +++ /dev/null @@ -1,247 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.30.3.ebuild,v 1.15 2013/02/19 00:08:33 tetromino Exp $ - -EAPI="4" -PYTHON_DEPEND="utils? 2" -# Avoid runtime dependency on python when USE=test - -inherit autotools gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python toolchain-funcs virtualx - -DESCRIPTION="The GLib library of C routines" -HOMEPAGE="http://www.gtk.org/" -SRC_URI="${SRC_URI} - http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf - -LICENSE="LGPL-2+" -SLOT="2" -IUSE="debug fam selinux +static-libs systemtap test utils xattr" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-linux" - -RDEPEND="virtual/libiconv - virtual/libffi - sys-libs/zlib - xattr? ( sys-apps/attr ) - fam? ( virtual/fam ) - utils? ( >=dev-util/gdbus-codegen-${PV} )" -DEPEND="${RDEPEND} - >=sys-devel/gettext-0.11 - >=dev-util/gtk-doc-am-1.15 - systemtap? ( >=dev-util/systemtap-1.3 ) - test? ( - sys-devel/gdb - =dev-lang/python-2* - >=dev-util/gdbus-codegen-${PV} - >=sys-apps/dbus-1.2.14 ) - !<dev-util/gtk-doc-1.15-r2" -PDEPEND="x11-misc/shared-mime-info - !<gnome-base/gvfs-1.6.4-r990" -# shared-mime-info needed for gio/xdgmime, bug #409481 -# Earlier versions of gvfs do not work with glib - -pkg_setup() { - # Needed for gio/tests/gdbus-testserver.py - if use test ; then - python_set_active_version 2 - python_pkg_setup - fi -} - -src_prepare() { - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die - - if use ia64 ; then - # Only apply for < 4.1 - local major=$(gcc-major-version) - local minor=$(gcc-minor-version) - if (( major < 4 || ( major == 4 && minor == 0 ) )); then - epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch" - fi - fi - - # Fix from upstream for building with C++ compilers. - epatch "${FILESDIR}/${PN}-2.30.2-missing-decls.patch" - - # Don't fail gio tests when ran without userpriv, upstream bug 552912 - # This is only a temporary workaround, remove as soon as possible -# epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch" - - # Fix gmodule issues on fbsd; bug #184301 - epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch - - # Fix test failure when upgrading from 2.22 to 2.24, upstream bug 621368 - epatch "${FILESDIR}/${PN}-2.30.3-assert-test-failure.patch" - - # Do not try to remove files on live filesystem, upstream bug #619274 - sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ - -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" - - if ! use test; then - # don't waste time building tests - sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die - else - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629 - if ! has_version dev-util/desktop-file-utils ; then - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," - ewarn "think on installing it to get these tests run." - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die - sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die - sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die - sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die - fi - - # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 - if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:2' ; then - ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:2" - ewarn "not being present on your system, think on installing them to get these tests run." - sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die - sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die - sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die - sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die - sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die - sed -i -e "/g_test_add_func/d" gio/tests/gdbus-threading.c || die - sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die - # needed to prevent gdbus-threading from asserting - ln -sfn $(type -P true) gio/tests/gdbus-testserver.py - fi - fi - - # gdbus-codegen is a separate package - epatch "${FILESDIR}/${PN}-2.30.1-external-gdbus-codegen.patch" - - # Handle the G_HOME environment variable to override the passwd entry, upstream bug #142568 - epatch "${FILESDIR}/${PN}-2.30.1-homedir-env.patch" - - # Fix hardcoded path to machine-id wrt #390143 - epatch "${FILESDIR}/${PN}-2.30.2-machine-id.patch" - - # Fix from glib-2.31 for ppc64 - epatch "${FILESDIR}/${PN}-2.30.3-closure-64bit-be.patch" - - epatch_user - - # disable pyc compiling - use test && python_clean_py-compile_files - - # Needed for the punt-python-check patch, disabling timeout test - # Also needed to prevent croscompile failures, see bug #267603 - # Also needed for the no-gdbus-codegen patch - AT_M4DIR="${WORKDIR}" eautoreconf - - [[ ${CHOST} == *-freebsd* ]] && elibtoolize - - epunt_cxx -} - -src_configure() { - # Avoid circular depend with dev-util/pkgconfig and - # native builds (cross-compiles won't need pkg-config - # in the target ROOT to work here) - if ! tc-is-cross-compiler && ! has_version virtual/pkgconfig; then - if has_version sys-apps/dbus; then - export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include" - export DBUS1_LIBS="-ldbus-1" - fi - export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)" - export LIBFFI_LIBS="-lffi" - fi - - local myconf - - # Building with --disable-debug highly unrecommended. It will build glib in - # an unusable form as it disables some commonly used API. Please do not - # convert this to the use_enable form, as it results in a broken build. - # -- compnerd (3/27/06) - use debug && myconf="--enable-debug" - - # Always use internal libpcre, bug #254659 - econf ${myconf} \ - $(use_enable xattr) \ - $(use_enable fam) \ - $(use_enable selinux) \ - $(use_enable static-libs static) \ - $(use_enable systemtap dtrace) \ - $(use_enable systemtap systemtap) \ - --enable-regex \ - --with-pcre=internal \ - --with-threads=posix -} - -src_install() { - local f - - # install-exec-hook substitutes ${PYTHON} in glib/gtester-report - emake DESTDIR="${D}" PYTHON="${EPREFIX}/usr/bin/python2" install - - if ! use utils; then - rm "${ED}usr/bin/gtester-report" - fi - - # Do not install charset.alias even if generated, leave it to libiconv - rm -f "${ED}/usr/lib/charset.alias" - - # Don't install gdb python macros, bug 291328 - rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" - - dodoc AUTHORS ChangeLog* NEWS* README - - insinto /usr/share/bash-completion - for f in gdbus gsettings; do - newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f} - done - rm -rf "${ED}/etc" - - # Completely useless with or without USE static-libs, people need to use - # pkg-config - find "${D}" -name '*.la' -exec rm -f {} + -} - -src_test() { - gnome2_environment_reset - - unset DBUS_SESSION_BUS_ADDRESS - export XDG_CONFIG_DIRS=/etc/xdg - export XDG_DATA_DIRS=/usr/local/share:/usr/share - export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" - unset GSETTINGS_BACKEND # bug 352451 - - # Related test is a bit nitpicking - mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" - chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" - - # Hardened: gdb needs this, bug #338891 - if host-is-pax ; then - pax-mark -mr "${S}"/tests/.libs/assert-msg-test \ - || die "Hardened adjustment failed" - fi - - # Need X for dbus-launch session X11 initialization - Xemake check -} - -pkg_preinst() { - # Only give the introspection message if: - # * The user has gobject-introspection - # * Has glib already installed - # * Previous version was different from new version - if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then - ewarn "You must rebuild gobject-introspection so that the installed" - ewarn "typelibs and girs are regenerated for the new APIs in glib" - fi -} - -pkg_postinst() { - # Inform users about possible breakage when updating glib and not dbus-glib, bug #297483 - if has_version dev-libs/dbus-glib; then - ewarn "If you experience a breakage after updating dev-libs/glib try" - ewarn "rebuilding dev-libs/dbus-glib" - fi - - if has_version '<x11-libs/gtk+-3.0.12:3'; then - # To have a clear upgrade path for gtk+-3.0.x users, have to resort to - # a warning instead of a blocker - ewarn - ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes." - ewarn "You should upgrade to a newer version of gtk+:3 immediately." - fi -} diff --git a/dev-libs/glib/glib-2.34.2.ebuild b/dev-libs/glib/glib-2.36.1.ebuild index 3b9661093ae1..24fca1e6f22f 100644 --- a/dev-libs/glib/glib-2.34.2.ebuild +++ b/dev-libs/glib/glib-2.36.1.ebuild @@ -1,24 +1,23 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.34.2.ebuild,v 1.2 2013/02/19 00:08:33 tetromino Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.36.1.ebuild,v 1.1 2013/04/23 19:02:39 pacho Exp $ -EAPI="4" -PYTHON_DEPEND="utils? 2" +EAPI="5" +PYTHON_COMPAT=( python2_{5,6,7} ) # Avoid runtime dependency on python when USE=test -inherit autotools gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python toolchain-funcs virtualx linux-info +inherit autotools gnome.org libtool eutils flag-o-matic gnome2-utils multilib pax-utils python-r1 toolchain-funcs virtualx linux-info DESCRIPTION="The GLib library of C routines" HOMEPAGE="http://www.gtk.org/" -SRC_URI="${SRC_URI} - http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf LICENSE="LGPL-2+" SLOT="2" IUSE="debug fam kernel_linux selinux static-libs systemtap test utils xattr" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" -RDEPEND="virtual/libiconv +RDEPEND=" + virtual/libiconv virtual/libffi sys-libs/zlib || ( @@ -26,7 +25,10 @@ RDEPEND="virtual/libiconv >=dev-libs/libelf-0.8.12 ) xattr? ( sys-apps/attr ) fam? ( virtual/fam ) - utils? ( >=dev-util/gdbus-codegen-${PV} )" + utils? ( + ${PYTHON_DEPS} + >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) +" DEPEND="${RDEPEND} app-text/docbook-xml-dtd:4.1.2 >=dev-libs/libxslt-1.0 @@ -35,31 +37,29 @@ DEPEND="${RDEPEND} systemtap? ( >=dev-util/systemtap-1.3 ) test? ( sys-devel/gdb - =dev-lang/python-2* - >=dev-util/gdbus-codegen-${PV} + ${PYTHON_DEPS} + >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] >=sys-apps/dbus-1.2.14 ) - !<dev-util/gtk-doc-1.15-r2" + !<dev-util/gtk-doc-1.15-r2 +" PDEPEND="x11-misc/shared-mime-info !<gnome-base/gvfs-1.6.4-r990" # shared-mime-info needed for gio/xdgmime, bug #409481 # Earlier versions of gvfs do not work with glib pkg_setup() { - # Needed for gio/tests/gdbus-testserver.py - if use test; then - python_set_active_version 2 - python_pkg_setup - fi - if use kernel_linux ; then CONFIG_CHECK="~INOTIFY_USER" + if use test; then + CONFIG_CHECK="~IPV6" + WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." + export IPV6_DISABLED="yes" + fi linux-info_pkg_setup fi } src_prepare() { - mv -f "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die - # Fix gmodule issues on fbsd; bug #184301 epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch @@ -68,7 +68,7 @@ src_prepare() { sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629 + # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 if ! has_version dev-util/desktop-file-utils ; then ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," ewarn "think on installing it to get these tests run." @@ -78,6 +78,13 @@ src_prepare() { sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die fi + # gdesktopappinfo requires existing terminal (gnome-terminal or any + # other), falling back to xterm if one doesn't exist + if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then + ewarn "Some tests will be skipped due to missing terminal program" + sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die + fi + # Disable tests requiring dbus-python and pygobject; bugs #349236, #377549, #384853 if ! has_version dev-python/dbus-python || ! has_version 'dev-python/pygobject:3' ; then ewarn "Some tests will be skipped due to dev-python/dbus-python or dev-python/pygobject:3" @@ -92,29 +99,39 @@ src_prepare() { # needed to prevent gdbus-threading from asserting ln -sfn $(type -P true) gio/tests/gdbus-testserver.py fi + + # Some tests need ipv6, upstream bug #667468 + if [[ -n "${IPV6_DISABLED}" ]]; then + sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die + sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die + sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die + fi + + # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655 + sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die + + # thread test fails, upstream bug #679306 + epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" fi # gdbus-codegen is a separate package - epatch "${FILESDIR}/${PN}-2.31.x-external-gdbus-codegen.patch" + epatch "${FILESDIR}/${PN}-2.35.x-external-gdbus-codegen.patch" # bashcomp goes in /usr/share/bash-completion epatch "${FILESDIR}/${PN}-2.32.4-bashcomp.patch" - # https://bugzilla.gnome.org/show_bug.cgi?id=679306 - epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" - # https://bugzilla.gnome.org/show_bug.cgi?id=679308 - epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-gdbus-auth-tests.patch" + # leave python shebang alone + sed -e '/${PYTHON}/d' \ + -i glib/Makefile.{am,in} || die epatch_user - # disable pyc compiling - use test && python_clean_py-compile_files - # Needed for the punt-python-check patch, disabling timeout test # Also needed to prevent croscompile failures, see bug #267603 # Also needed for the no-gdbus-codegen patch - AT_M4DIR="${WORKDIR}" eautoreconf + eautoreconf + # FIXME: Really needed when running eautoreconf before? bug#???? [[ ${CHOST} == *-freebsd* ]] && elibtoolize epunt_cxx @@ -141,17 +158,6 @@ src_configure() { # -- compnerd (3/27/06) use debug && myconf="--enable-debug" - if use test; then - myconf="${myconf} --enable-modular-tests" - else - if [[ ${PV} = 9999 ]] && use doc; then - # need to build tests if USE=doc for bug #387385 - myconf="${myconf} --enable-modular-tests" - else - myconf="${myconf} --disable-modular-tests" - fi - fi - # Always use internal libpcre, bug #254659 econf ${myconf} \ $(use_enable xattr) \ @@ -160,19 +166,21 @@ src_configure() { $(use_enable static-libs static) \ $(use_enable systemtap dtrace) \ $(use_enable systemtap systemtap) \ + $(use_enable test modular-tests) \ --enable-man \ --with-pcre=internal \ - --with-threads=posix + --with-threads=posix \ + --with-xml-catalog="${EPREFIX}/etc/xml/catalog" } src_install() { - local f + emake install DESTDIR="${D}" - # install-exec-hook substitutes ${PYTHON} in glib/gtester-report - emake DESTDIR="${D}" PYTHON="${EPREFIX}/usr/bin/python2" install - - if ! use utils; then + if use utils ; then + python_replicate_script "${ED}"/usr/bin/gtester-report + else rm "${ED}usr/bin/gtester-report" + rm "${ED}usr/share/man/man1/gtester-report.1" fi # Do not install charset.alias even if generated, leave it to libiconv @@ -185,7 +193,7 @@ src_install() { # Completely useless with or without USE static-libs, people need to use # pkg-config - find "${D}" -name '*.la' -exec rm -f {} + + prune_libtool_files --modules } src_test() { @@ -197,6 +205,7 @@ src_test() { export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" unset GSETTINGS_BACKEND # bug 352451 export LC_TIME=C # bug #411967 + python_export_best # Related test is a bit nitpicking mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" @@ -217,6 +226,7 @@ pkg_preinst() { # * The user has gobject-introspection # * Has glib already installed # * Previous version was different from new version + # TODO: add a subslotted virtual to trigger this automatically if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then ewarn "You must rebuild gobject-introspection so that the installed" ewarn "typelibs and girs are regenerated for the new APIs in glib" @@ -225,6 +235,7 @@ pkg_preinst() { pkg_postinst() { # Inform users about possible breakage when updating glib and not dbus-glib, bug #297483 + # TODO: add a subslotted virtual to trigger this automatically if has_version dev-libs/dbus-glib; then ewarn "If you experience a breakage after updating dev-libs/glib try" ewarn "rebuilding dev-libs/dbus-glib" |