glib 2.36 fixes
v2 cover glib 2.36 fixes
V1->V2
* orbit2 commit message
* added 'gnome-disk-utility: backport property DeviceAutomountHint'
The following changes since commit 62ad7c96a12bc54871bf37366cfe89ec96881537:
connman: Fix .bbappend name (2013-05-02 13:04:52 +0200)
are available in the git repository at:
git://gitorious.org/schnitzeltony-oe-meta/meta-openembedded.git glibc-2.36-fixes
Andreas Müller (4):
gvfs: slightly update to 1.10.1 and backport patches to build with glib 2.36
gnome-disk-utility: backport property DeviceAutomountHint
orbit2: update to 2.14.17 to fix build with glib 2.36
geany: update to 1.23 to fix build with glib 2.36
.../0001-Add-support-for-DeviceAutomountHint.patch | 74 +
.../gnome-disk-utility_2.32.0.bb | 3 +-
...ect-UDISKS_AUTOMOUNT_HINT-available-in-re.patch | 57 +
.../0001-gvfsfusedaemon.c-fix-glib-build.patch | 31 -
...ib-2.31-deprecations-and-thread-API-chang.patch | 599 +++++
.../0003-Adapt-to-glib-mutex-API-changes.patch | 2454 ++++++++++++++++++++
.../0004-Adapt-to-glib-thread-API-changes.patch | 44 +
..._1.8.2.bb => gvfs-gdu-volume-monitor_1.10.1.bb} | 2 +-
meta-gnome/recipes-gnome/gvfs/gvfs.inc | 15 +-
.../gvfs/{gvfs_1.8.2.bb => gvfs_1.10.1.bb} | 2 +-
...-src-Makefile.am-fix-build-with-glib-2.36.patch | 34 +
.../configure-lossage.patch | 0
.../{orbit2-2.14.17 => orbit2}/pkgconfig-fix.patch | 0
.../{orbit2_2.14.17.bb => orbit2_2.14.19.bb} | 16 +-
.../geany/{geany_1.22.bb => geany_1.23.bb} | 7 +-
15 files changed, 3289 insertions(+), 49 deletions(-)
create mode 100644 meta-gnome/recipes-gnome/gnome-disk-utility/gnome-disk-utility/0001-Add-support-for-DeviceAutomountHint.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0001-Revert-Respect-UDISKS_AUTOMOUNT_HINT-available-in-re.patch
delete mode 100644 meta-gnome/recipes-gnome/gvfs/files/0001-gvfsfusedaemon.c-fix-glib-build.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0002-Adapt-to-GLib-2.31-deprecations-and-thread-API-chang.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0003-Adapt-to-glib-mutex-API-changes.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0004-Adapt-to-glib-thread-API-changes.patch
rename meta-gnome/recipes-gnome/gvfs/{gvfs-gdu-volume-monitor_1.8.2.bb => gvfs-gdu-volume-monitor_1.10.1.bb} (97%)
rename meta-gnome/recipes-gnome/gvfs/{gvfs_1.8.2.bb => gvfs_1.10.1.bb} (97%)
create mode 100644 meta-gnome/recipes-gnome/orbit2/orbit2/0001-linc2-src-Makefile.am-fix-build-with-glib-2.36.patch
rename meta-gnome/recipes-gnome/orbit2/{orbit2-2.14.17 => orbit2}/configure-lossage.patch (100%)
rename meta-gnome/recipes-gnome/orbit2/{orbit2-2.14.17 => orbit2}/pkgconfig-fix.patch (100%)
rename meta-gnome/recipes-gnome/orbit2/{orbit2_2.14.17.bb => orbit2_2.14.19.bb} (68%)
rename meta-oe/recipes-devtools/geany/{geany_1.22.bb => geany_1.23.bb} (58%)Signature · 1 line
1.7.6.5
PATCH v2 1/4 gvfs: slightly update to 1.10.1 and backport patches to build with glib 2.36
This is a bit of a bad hack but as long as we are sitting on gnome2 we cannot follow to latest mainline because it would require gnome-disk-utility 3.x which relies on libnotify 0.7.x. For libnotify 0.6.x / 0.7.x API-conflict there is no solution available yet.
The following tests were performed:
* build my standard xfce-image from scratch
* test automount
* test trash
* test network browsing
---
...ect-UDISKS_AUTOMOUNT_HINT-available-in-re.patch | 57 +
.../0001-gvfsfusedaemon.c-fix-glib-build.patch | 31 -
...ib-2.31-deprecations-and-thread-API-chang.patch | 599 +++++
.../0003-Adapt-to-glib-mutex-API-changes.patch | 2454 ++++++++++++++++++++
.../0004-Adapt-to-glib-thread-API-changes.patch | 44 +
..._1.8.2.bb => gvfs-gdu-volume-monitor_1.10.1.bb} | 2 +-
meta-gnome/recipes-gnome/gvfs/gvfs.inc | 15 +-
.../gvfs/{gvfs_1.8.2.bb => gvfs_1.10.1.bb} | 2 +-
8 files changed, 3167 insertions(+), 37 deletions(-)
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0001-Revert-Respect-UDISKS_AUTOMOUNT_HINT-available-in-re.patch
delete mode 100644 meta-gnome/recipes-gnome/gvfs/files/0001-gvfsfusedaemon.c-fix-glib-build.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0002-Adapt-to-GLib-2.31-deprecations-and-thread-API-chang.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0003-Adapt-to-glib-mutex-API-changes.patch
create mode 100644 meta-gnome/recipes-gnome/gvfs/files/0004-Adapt-to-glib-thread-API-changes.patch
rename meta-gnome/recipes-gnome/gvfs/{gvfs-gdu-volume-monitor_1.8.2.bb => gvfs-gdu-volume-monitor_1.10.1.bb} (97%)
rename meta-gnome/recipes-gnome/gvfs/{gvfs_1.8.2.bb => gvfs_1.10.1.bb} (97%)meta-gnome/recipes-gnome/gvfs/files/0001-Revert-Respect-UDISKS_AUTOMOUNT_HINT-available-in-re.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 1b9ceef87405296adccdadc9528d4cbb2bc51b76 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Thu, 2 May 2013 13:27:16 +0200 +Subject: [PATCH] Revert "Respect UDISKS_AUTOMOUNT_HINT available in recent + udisks and gnome-disk-utility" +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This reverts commit 493ee806eba214a748d064b43c10882d76ee1492. + +AFAICS was the requirement for gnome-disk-utility V3 for a minor functionality change. + +Upstream-Status: Inappropriate [related to missing gnome3 support] + +Signed-off-by: Andreas Müller <[email protected]> +--- + configure.ac | 2 +- + monitor/gdu/ggduvolume.c | 9 --------- + 2 files changed, 1 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 601e994..377770e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -205,7 +205,7 @@ AC_ARG_ENABLE(gdu, AS_HELP_STRING([--disable-gdu],[build without GDU volume moni + msg_gdu=no + GDU_LIBS= + GDU_CFLAGS= +-GDU_REQUIRED=3.0.2 ++GDU_REQUIRED=2.29.0 + + if test "x$enable_gdu" != "xno"; then + PKG_CHECK_EXISTS([gdu >= $GDU_REQUIRED], msg_gdu=yes) +diff --git a/monitor/gdu/ggduvolume.c b/monitor/gdu/ggduvolume.c +index eb15d22..0665b7a 100644 +--- a/monitor/gdu/ggduvolume.c ++++ b/monitor/gdu/ggduvolume.c +@@ -429,15 +429,6 @@ update_volume (GGduVolume *volume) + g_free (activation_uri); + } + +- /* if there's an automount hint, use it */ +- if (device != NULL) +- { +- if (g_strcmp0 (gdu_device_get_automount_hint (device), "always") == 0) +- volume->should_automount = TRUE; +- else if (g_strcmp0 (gdu_device_get_automount_hint (device), "never") == 0) +- volume->should_automount = FALSE; +- } +- + if (pool != NULL) + g_object_unref (pool); + if (device != NULL) +-- +1.7.6.5 +
meta-gnome/recipes-gnome/gvfs/files/0001-gvfsfusedaemon.c-fix-glib-build.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From c339eaaa514b8edcfe8de5c9610b8f2591ec221a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> -Date: Mon, 14 May 2012 17:36:37 +0200 -Subject: [PATCH] gvfsfusedaemon.c: fix glib build -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit -Upstream-Status: Applied but we can not use it because newer versions depend -on gnome-disk-utiltity >= V3.02 which depends on gtk+ V3 - -Signed-off-by: Andreas Müller <[email protected]> ---- - client/gvfsfusedaemon.c | 2 -- - 1 files changed, 0 insertions(+), 2 deletions(-) - -diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c -index bc3090d..f2e708e 100644 ---- a/client/gvfsfusedaemon.c -+++ b/client/gvfsfusedaemon.c -@@ -41,8 +41,6 @@ - #include <glib/gprintf.h> - #include <gio/gio.h> - --#include <glib/gurifuncs.h> -- - /* stuff from common/ */ - #include <gdaemonmount.h> - #include <gvfsdaemonprotocol.h> --- -1.7.6.5 -
meta-gnome/recipes-gnome/gvfs/files/0002-Adapt-to-GLib-2.31-deprecations-and-thread-API-chang.patch new file +599 -0
599 lines not on this page · raw message
meta-gnome/recipes-gnome/gvfs/files/0003-Adapt-to-glib-mutex-API-changes.patch new file +2454 -0
2,313 lines not on this page · raw message
meta-gnome/recipes-gnome/gvfs/files/0004-Adapt-to-glib-thread-API-changes.patch new file +44 -0
44 lines not on this page · raw message
meta-gnome/recipes-gnome/gvfs/gvfs-gdu-volume-monitor_1.10.1.bb renamed from meta-gnome/recipes-gnome/gvfs/gvfs-gdu-volume-monitor_1.8.2.bb +1 -1
Lines of this file are not shown. View the raw message.
meta-gnome/recipes-gnome/gvfs/gvfs.inc +11 -4
Lines of this file are not shown. View the raw message.
meta-gnome/recipes-gnome/gvfs/gvfs_1.10.1.bb renamed from meta-gnome/recipes-gnome/gvfs/gvfs_1.8.2.bb +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.6.5
Part of the diff is not shown here. View the raw message.
PATCH v2 2/4 gnome-disk-utility: backport property DeviceAutomountHint
In reply to Andreas MüllerCurrently we have gvfs 1.10.1 which was designed for gnome-disk-utility 3.x. We have a patched gvfs so that it works with gnome-disk-utility 2.x but that does not support the property DeviceAutomountHint because it was introduced in 3.x.
Fixes warnings as:
| (palimpsest:829): libgdu-WARNING **: unhandled property 'DeviceAutomountHint'
--- .../0001-Add-support-for-DeviceAutomountHint.patch | 74 ++++++++++++++++++++ .../gnome-disk-utility_2.32.0.bb | 3 +- 2 files changed, 76 insertions(+), 1 deletions(-) create mode 100644 meta-gnome/recipes-gnome/gnome-disk-utility/gnome-disk-utility/0001-Add-support-for-DeviceAutomountHint.patch
meta-gnome/recipes-gnome/gnome-disk-utility/gnome-disk-utility/0001-Add-support-for-DeviceAutomountHint.patch new file +74 -0
@@ -0,0 +1,74 @@ +From 7dde5bc75a1d96be9510ce1e98d28f9d33520919 Mon Sep 17 00:00:00 2001 +From: David Zeuthen <[email protected]> +Date: Fri, 8 Jul 2011 11:03:52 -0400 +Subject: [PATCH] Add support for DeviceAutomountHint + +Based on the patch in https://bugzilla.gnome.org/show_bug.cgi?id=653184 + +Upstream-Status: Applied [1] + +[1] https://mail.gnome.org/archives/commits-list/2011-July/msg03207.html + +Signed-off-by: David Zeuthen <[email protected]> +--- + src/gdu/gdu-device.c | 10 ++++++++++ + src/gdu/gdu-device.h | 1 + + 2 files changed, 11 insertions(+), 0 deletions(-) + +diff --git a/src/gdu/gdu-device.c b/src/gdu/gdu-device.c +index 6a5afad..4be39cf 100644 +--- a/src/gdu/gdu-device.c ++++ b/src/gdu/gdu-device.c +@@ -82,6 +82,7 @@ typedef struct + gboolean device_presentation_nopolicy; + char *device_presentation_name; + char *device_presentation_icon_name; ++ char *device_automount_hint; + guint64 device_size; + guint64 device_block_size; + +@@ -279,6 +280,8 @@ collect_props (const char *key, + props->device_presentation_name = g_strdup (g_value_get_string (value)); + else if (strcmp (key, "DevicePresentationIconName") == 0) + props->device_presentation_icon_name = g_strdup (g_value_get_string (value)); ++ else if (strcmp (key, "DeviceAutomountHint") == 0) ++ props->device_automount_hint = g_strdup (g_value_get_string (value)); + else if (strcmp (key, "DeviceSize") == 0) + props->device_size = g_value_get_uint64 (value); + else if (strcmp (key, "DeviceBlockSize") == 0) +@@ -549,6 +552,7 @@ device_properties_free (DeviceProperties *props) + g_strfreev (props->device_mount_paths); + g_free (props->device_presentation_name); + g_free (props->device_presentation_icon_name); ++ g_free (props->device_automount_hint); + g_free (props->job_id); + g_free (props->id_usage); + g_free (props->id_type); +@@ -1294,6 +1298,12 @@ gdu_device_drive_get_media_compatibility (GduDevice *device) + } + + const char * ++gdu_device_get_automount_hint (GduDevice *device) ++{ ++ return device->priv->props->device_automount_hint; ++} ++ ++const char * + gdu_device_drive_get_media (GduDevice *device) + { + return device->priv->props->drive_media; +diff --git a/src/gdu/gdu-device.h b/src/gdu/gdu-device.h +index 4c1302b..8cfd7a9 100644 +--- a/src/gdu/gdu-device.h ++++ b/src/gdu/gdu-device.h +@@ -143,6 +143,7 @@ const char *gdu_device_drive_get_wwn (GduDevice *device); + const char *gdu_device_drive_get_connection_interface (GduDevice *device); + guint64 gdu_device_drive_get_connection_speed (GduDevice *device); + char **gdu_device_drive_get_media_compatibility (GduDevice *device); ++const gchar *gdu_device_get_automount_hint(GduDevice *device); + const char *gdu_device_drive_get_media (GduDevice *device); + gboolean gdu_device_drive_get_is_media_ejectable (GduDevice *device); + gboolean gdu_device_drive_get_requires_eject (GduDevice *device); +-- +1.7.6.5 +
meta-gnome/recipes-gnome/gnome-disk-utility/gnome-disk-utility_2.32.0.bb +2 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e9115d11797a5e6b746b4e9b90194564" DEPENDS = "glib-2.0 gtk+ libnotify libunique udisks avahi-ui virtual/libx11 libatasmart nautilus" -PR = "r3" +PR = "r4" inherit gnome SRC_URI[archive.md5sum] = "f0366c8baebca0404d190b2d78f3582d"
@@ -15,6 +15,7 @@ SRC_URI += "\ file://disable-scrollkeeper.patch \ file://fix-dbus-interfaces.patch \ file://sysrooted-pkg-config.patch \ + file://0001-Add-support-for-DeviceAutomountHint.patch \ " EXTRA_OECONF += "--disable-scrollkeeper"
Signature · 1 line
1.7.6.5
PATCH v2 3/4 orbit2: update to 2.14.17 to fix build with glib 2.36
In reply to Andreas Müllerlicense change of FSF address only
---
...-src-Makefile.am-fix-build-with-glib-2.36.patch | 34 ++++++++++++++++++++
.../configure-lossage.patch | 0
.../{orbit2-2.14.17 => orbit2}/pkgconfig-fix.patch | 0
.../{orbit2_2.14.17.bb => orbit2_2.14.19.bb} | 16 +++++----
4 files changed, 43 insertions(+), 7 deletions(-)
create mode 100644 meta-gnome/recipes-gnome/orbit2/orbit2/0001-linc2-src-Makefile.am-fix-build-with-glib-2.36.patch
rename meta-gnome/recipes-gnome/orbit2/{orbit2-2.14.17 => orbit2}/configure-lossage.patch (100%)
rename meta-gnome/recipes-gnome/orbit2/{orbit2-2.14.17 => orbit2}/pkgconfig-fix.patch (100%)
rename meta-gnome/recipes-gnome/orbit2/{orbit2_2.14.17.bb => orbit2_2.14.19.bb} (68%)meta-gnome/recipes-gnome/orbit2/orbit2/0001-linc2-src-Makefile.am-fix-build-with-glib-2.36.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 10bd8094e1d94e5c737791c7f4b6b844f535c120 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Fri, 3 May 2013 10:00:16 +0200 +Subject: [PATCH] linc2/src/Makefile.am: fix build with glib 2.36 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Submitted [1] + +[1] https://bugzilla.gnome.org/show_bug.cgi?id=696900 + +Signed-off-by: Andreas Müller <[email protected]> +--- + linc2/src/Makefile.am | 3 +-- + 1 files changed, 1 insertions(+), 2 deletions(-) + +diff --git a/linc2/src/Makefile.am b/linc2/src/Makefile.am +index 357a2dd..ba0e347 100644 +--- a/linc2/src/Makefile.am ++++ b/linc2/src/Makefile.am +@@ -12,8 +12,7 @@ INCLUDES = \ + -I$(top_builddir)/linc2/include \ + -I$(top_srcdir)/linc2/include \ + $(LINC_CFLAGS) \ +- $(WARN_CFLAGS) \ +- -DG_DISABLE_DEPRECATED ++ $(WARN_CFLAGS) + + if OS_WIN32 + else +-- +1.7.6.5 +
meta-gnome/recipes-gnome/orbit2/orbit2/configure-lossage.patch renamed from meta-gnome/recipes-gnome/orbit2/orbit2-2.14.17/configure-lossage.patch +0 -0
meta-gnome/recipes-gnome/orbit2/orbit2/pkgconfig-fix.patch renamed from meta-gnome/recipes-gnome/orbit2/orbit2-2.14.17/pkgconfig-fix.patch +0 -0
meta-gnome/recipes-gnome/orbit2/orbit2_2.14.19.bb renamed from meta-gnome/recipes-gnome/orbit2/orbit2_2.14.17.bb +9 -7
@@ -1,16 +1,18 @@ DESCRIPTION = "CORBA ORB" SECTION = "x11/gnome/libs" LICENSE = "GPL-2.0" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SRC_NAME = "ORBit2" SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" -SRC_URI = "${GNOME_MIRROR}/${SRC_NAME}/${SHRT_VER}/${SRC_NAME}-${PV}.tar.bz2 \ - file://configure-lossage.patch \ - file://pkgconfig-fix.patch" -SRC_URI[md5sum] = "10bfb957fa4a8935a0b4afaee7d71df7" -SRC_URI[sha256sum] = "62bfce3f678f9347a19c766944e8aef7b89bc32b25ac23eb3e4c25929ce8974c" +SRC_URI = " \ + ${GNOME_MIRROR}/${SRC_NAME}/${SHRT_VER}/${SRC_NAME}-${PV}.tar.bz2 \ + file://configure-lossage.patch \ + file://pkgconfig-fix.patch \ + file://0001-linc2-src-Makefile.am-fix-build-with-glib-2.36.patch \ +" +SRC_URI[md5sum] = "7082d317a9573ab338302243082d10d1" +SRC_URI[sha256sum] = "55c900a905482992730f575f3eef34d50bda717c197c97c08fa5a6eafd857550" -PR = "r5" BBCLASSEXTEND = "native" IDL_COMPILER_DEPENDS = "orbit2-native"
Signature · 1 line
1.7.6.5
PATCH v2 4/4 geany: update to 1.23 to fix build with glib 2.36
In reply to Andreas Müllerlicense change of FSF address only
---
.../geany/{geany_1.22.bb => geany_1.23.bb} | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
rename meta-oe/recipes-devtools/geany/{geany_1.22.bb => geany_1.23.bb} (58%)meta-oe/recipes-devtools/geany/geany_1.23.bb renamed from meta-oe/recipes-devtools/geany/geany_1.22.bb +3 -4
@@ -1,9 +1,8 @@ DESCRIPTION = "A fast and lightweight IDE" HOMEPAGE = "http://www.geany.org/" LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=c107cf754550e65755c42985a5d4e9c9" +LIC_FILES_CHKSUM = "file://COPYING;md5=bd7b2c994af21d318bd2cd3b3f80c2d5" DEPENDS = "gtk+" -PR = "r2" inherit autotools pkgconfig perlnative
@@ -11,7 +10,7 @@ SRC_URI = " \ http://download.geany.org/${PN}-${PV}.tar.bz2 \ file://0001-configure.ac-remove-additional-c-test.patch \ " -SRC_URI[md5sum] = "0672077fe83e2a739aa0eaca426aacf0" -SRC_URI[sha256sum] = "901a35a7395ef10a80fb10b3ab63bae3871693a4e82d56388e9521a27877577e" +SRC_URI[md5sum] = "4290e8c32305e916f57bb0f0233bbec2" +SRC_URI[sha256sum] = "cdd4a772694803c837ae59e56f7bdc2faba174509317211f522e7d25dfcbe8b0" FILES_${PN} += "${datadir}/icons"
Signature · 1 line
1.7.6.5