Skip to contentSkip to conversation

Upgrade dbus and dbus-glib

PATCH In review Chong Lu 2 participants 8 messages Nov 24, 2014 – Dec 3, 2014

lore
Share & tools
lore

Chong Lu

author
#0 lore raw

cover Upgrade dbus and dbus-glib

The following changes since commit edaeb8940813b620090a0797ad3b6a076897512d:

bitbake: cooker.py: fix loginfo op being set to an invalid value (2014-11-12 17:04:50 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib chonglu/dbus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/dbus

Chong Lu (5):
dbus: Upgrade to 1.8.10
dbus-test: Upgrade to 1.8.10
dbus-glib: Upgrade to 0.102
connman-gnome: fix dbus interface name
upstream_tracking.inc: update entries for dbus

 .../conf/distro/include/upstream_tracking.inc      |   2 +-
 .../connman-gnome-fix-dbus-interface-name.patch    | 187 +++++++++++++++++++++
 .../connman/connman-gnome_0.7.bb                   |   7 +-
 .../obsolete_automake_macros.patch                 |  15 --
 meta/recipes-core/dbus/dbus-glib.inc               |   1 -
 .../no-examples.patch                              |   0
 .../test-install-makefile.patch                    |  57 ++++---
 meta/recipes-core/dbus/dbus-glib_0.100.2.bb        |   5 -
 meta/recipes-core/dbus/dbus-glib_0.102.bb          |   5 +
 .../{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb}    |   0
 meta/recipes-core/dbus/dbus_1.8.10.bb              |   4 +
 meta/recipes-core/dbus/dbus_1.8.2.bb               |   4 -
 12 files changed, 234 insertions(+), 53 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome-fix-dbus-interface-name.patch
 delete mode 100644 meta/recipes-core/dbus/dbus-glib-0.100.2/obsolete_automake_macros.patch
 rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/no-examples.patch (100%)
 rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/test-install-makefile.patch (66%)
 delete mode 100644 meta/recipes-core/dbus/dbus-glib_0.100.2.bb
 create mode 100644 meta/recipes-core/dbus/dbus-glib_0.102.bb
 rename meta/recipes-core/dbus/{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb} (100%)
 create mode 100644 meta/recipes-core/dbus/dbus_1.8.10.bb
 delete mode 100644 meta/recipes-core/dbus/dbus_1.8.2.bb
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/5 dbus: Upgrade to 1.8.10

---
 meta/recipes-core/dbus/dbus_1.8.10.bb | 4 ++++
 meta/recipes-core/dbus/dbus_1.8.2.bb  | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 meta/recipes-core/dbus/dbus_1.8.10.bb
 delete mode 100644 meta/recipes-core/dbus/dbus_1.8.2.bb
meta/recipes-core/dbus/dbus_1.8.10.bb new file +4 -0
new file mode 100644
index 0000000..250ea21
@@ -0,0 +1,4 @@
+include dbus.inc
+
+SRC_URI[md5sum] = "6be5ef99ae784de9d04589eb067fe038"
+SRC_URI[sha256sum] = "10bf87fdb68815edd01d53885101dbcdd80dacad7198912cca61a4fa22dfaf8e"
meta/recipes-core/dbus/dbus_1.8.2.bb deleted +0 -4
deleted file mode 100644
index 37ebed2..0000000
@@ -1,4 +0,0 @@
-include dbus.inc
-
-SRC_URI[md5sum] = "d6f709bbec0a022a1847c7caec9d6068"
-SRC_URI[sha256sum] = "5689f7411165adc953f37974e276a3028db94447c76e8dd92efe910c6d3bae08"
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/5 dbus-test: Upgrade to 1.8.10

In reply to Chong Lu
---
 meta/recipes-core/dbus/{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename meta/recipes-core/dbus/{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb} (100%)
meta/recipes-core/dbus/dbus-test_1.8.10.bb renamed from meta/recipes-core/dbus/dbus-test_1.8.2.bb +0 -0
similarity index 100%
rename from meta/recipes-core/dbus/dbus-test_1.8.2.bb
rename to meta/recipes-core/dbus/dbus-test_1.8.10.bb
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/5 dbus-glib: Upgrade to 0.102

In reply to Chong Lu

Remove obsolete_automake_macros.patch, since upstream has merged it.

---
 .../obsolete_automake_macros.patch                 | 15 ------
 meta/recipes-core/dbus/dbus-glib.inc               |  1 -
 .../no-examples.patch                              |  0
 .../test-install-makefile.patch                    | 57 +++++++++++++---------
 meta/recipes-core/dbus/dbus-glib_0.100.2.bb        |  5 --
 meta/recipes-core/dbus/dbus-glib_0.102.bb          |  5 ++
 6 files changed, 38 insertions(+), 45 deletions(-)
 delete mode 100644 meta/recipes-core/dbus/dbus-glib-0.100.2/obsolete_automake_macros.patch
 rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/no-examples.patch (100%)
 rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/test-install-makefile.patch (66%)
 delete mode 100644 meta/recipes-core/dbus/dbus-glib_0.100.2.bb
 create mode 100644 meta/recipes-core/dbus/dbus-glib_0.102.bb
meta/recipes-core/dbus/dbus-glib-0.100.2/obsolete_automake_macros.patch deleted +0 -15
deleted file mode 100644
index 40e3b12..0000000
@@ -1,15 +0,0 @@
-Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=59003]
-
-Signed-off-by: Marko Lindqvist <[email protected]>
-diff -Nurd dbus-glib-0.100/configure.ac dbus-glib-0.100/configure.ac
---- dbus-glib-0.100/configure.ac	2012-06-25 19:26:39.000000000 +0300
-+++ dbus-glib-0.100/configure.ac	2013-01-03 04:53:22.314976758 +0200
-@@ -8,7 +8,7 @@
-
- AM_INIT_AUTOMAKE([1.9])
-
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS(config.h)
-
- # Honor aclocal flags
- ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
meta/recipes-core/dbus/dbus-glib.inc +0 -1
index 6c60d9e..abd0132 100644
@@ -13,7 +13,6 @@ DEPENDS_class-native = "glib-2.0-native dbus-native"
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
            file://no-examples.patch \
            file://test-install-makefile.patch \
-           file://obsolete_automake_macros.patch \
 "
 
 inherit autotools pkgconfig gettext
meta/recipes-core/dbus/dbus-glib/no-examples.patch renamed from meta/recipes-core/dbus/dbus-glib-0.100.2/no-examples.patch +0 -0
similarity index 100%
rename from meta/recipes-core/dbus/dbus-glib-0.100.2/no-examples.patch
rename to meta/recipes-core/dbus/dbus-glib/no-examples.patch
meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch renamed from meta/recipes-core/dbus/dbus-glib-0.100.2/test-install-makefile.patch +33 -24

76 lines not on this page · raw message

meta/recipes-core/dbus/dbus-glib_0.100.2.bb deleted +0 -5
deleted file mode 100644
index c1bb06a..0000000
@@ -1,5 +0,0 @@
-require dbus-glib.inc
-
-
-SRC_URI[md5sum] = "ad0920c7e3aad669163bb59171cf138e"
-SRC_URI[sha256sum] = "a5bb42da921f51c28161e0e54a5a8241d94a1c0499a14007150e9ce743da6ac5"
meta/recipes-core/dbus/dbus-glib_0.102.bb new file +5 -0
new file mode 100644
index 0000000..d798ebf
@@ -0,0 +1,5 @@
+require dbus-glib.inc
+
+
+SRC_URI[md5sum] = "f76b8558fd575d0106c3a556eaa49184"
+SRC_URI[sha256sum] = "6964ed585bb8149a14ab744b5ded5e77cf71ec5446e6dcc5fcf5eebcc52df29c"
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH 4/5 connman-gnome: fix dbus interface name

In reply to Chong Lu

This patch resolves following error:

"connman-dbus.xml": "connman" is not a valid D-Bus interface name

---
 .../connman-gnome-fix-dbus-interface-name.patch    | 187 +++++++++++++++++++++
 .../connman/connman-gnome_0.7.bb                   |   7 +-
 2 files changed, 191 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome-fix-dbus-interface-name.patch
meta/recipes-connectivity/connman/connman-gnome/connman-gnome-fix-dbus-interface-name.patch new file +187 -0
new file mode 100644
index 0000000..f4049fa
@@ -0,0 +1,187 @@
+connman-gnome: fix dbus interface name
+
+This patch resolves following error:
+
+"connman-dbus.xml": "connman" is not a valid D-Bus interface name
+
+https://502552.bugs.gentoo.org/attachment.cgi?id=380652
+
+Upstream-Status: Backport
+
+Signed-off-by: Chong Lu <[email protected]>
+---
+ common/connman-client.c | 24 ++++++++++++------------
+ common/connman-client.h |  4 ++--
+ common/connman-dbus.c   |  6 +++---
+ common/connman-dbus.xml |  2 +-
+ 4 files changed, 18 insertions(+), 18 deletions(-)
+
+diff --git a/common/connman-client.c b/common/connman-client.c
+index c55e25c..9d818b2 100644
+--- a/common/connman-client.c
++++ b/common/connman-client.c
+@@ -289,7 +289,7 @@ gboolean connman_client_set_ipv4(ConnmanClient *client, const gchar *device,
+ 
+ 	g_value_init(&value, DBUS_TYPE_G_DICTIONARY);
+ 	g_value_set_boxed(&value, ipv4);
+-	ret = connman_set_property(proxy, "IPv4.Configuration", &value, NULL);
++	ret = net_connman_set_property(proxy, "IPv4.Configuration", &value, NULL);
+ 
+ 	g_object_unref(proxy);
+ 
+@@ -317,7 +317,7 @@ void connman_client_set_powered(ConnmanClient *client, const gchar *device,
+ 	g_value_set_boolean(&value, powered);
+ 
+ 	error = NULL;
+-	connman_set_property(proxy, "Powered", &value, &error);
++	net_connman_set_property(proxy, "Powered", &value, &error);
+ 	if( error )
+ 		fprintf (stderr, "error: %s\n", error->message);
+ 
+@@ -325,7 +325,7 @@ void connman_client_set_powered(ConnmanClient *client, const gchar *device,
+ }
+ 
+ void connman_client_scan(ConnmanClient *client, const gchar *device,
+-						connman_scan_reply callback, gpointer user_data)
++						net_connman_scan_reply callback, gpointer user_data)
+ {
+ 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
+ 	DBusGProxy *proxy;
+@@ -339,7 +339,7 @@ void connman_client_scan(ConnmanClient *client, const gchar *device,
+ 	if (proxy == NULL)
+ 		return;
+ 
+-	connman_scan_async(proxy, callback, user_data);
++	net_connman_scan_async(proxy, callback, user_data);
+ 
+ 	g_object_unref(proxy);
+ }
+@@ -353,7 +353,7 @@ gboolean connman_client_get_offline_status(ConnmanClient *client)
+ 
+ 	DBG("client %p", client);
+ 
+-	ret = connman_get_properties(priv->manager, &hash, NULL);
++	ret = net_connman_get_properties(priv->manager, &hash, NULL);
+ 
+ 	if (ret == FALSE)
+ 		goto done;
+@@ -375,7 +375,7 @@ void connman_client_set_offlinemode(ConnmanClient *client, gboolean status)
+ 	g_value_init(&value, G_TYPE_BOOLEAN);
+ 	g_value_set_boolean(&value, status);
+ 
+-	connman_set_property(priv->manager, "OfflineMode", &value, NULL);
++	net_connman_set_property(priv->manager, "OfflineMode", &value, NULL);
+ }
+ 
+ static gboolean network_disconnect(GtkTreeModel *model, GtkTreePath *path,
+@@ -398,7 +398,7 @@ static gboolean network_disconnect(GtkTreeModel *model, GtkTreePath *path,
+ 		return TRUE;
+ 
+ 	if (type == CONNMAN_TYPE_WIFI)
+-		connman_disconnect(proxy, NULL);
++		net_connman_disconnect(proxy, NULL);
+ 
+ 	g_object_unref(proxy);
+ 
+@@ -422,13 +422,13 @@ void connman_client_connect(ConnmanClient *client, const gchar *network)
+ 	if (proxy == NULL)
+ 		return;
+ 
+-	connman_connect(proxy, NULL);
++	net_connman_connect(proxy, NULL);
+ 
+ 	g_object_unref(proxy);
+ }
+ 
+ void connman_client_connect_async(ConnmanClient *client, const gchar *network,
+-		connman_connect_reply callback, gpointer userdata)
++		net_connman_connect_reply callback, gpointer userdata)
+ {
+ 	ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client);
+ 	DBusGProxy *proxy;
+@@ -446,7 +446,7 @@ void connman_client_connect_async(ConnmanClient *client, const gchar *network,
+ 	if (proxy == NULL)
+ 		goto done;
+ 
+-	connman_connect_async(proxy, callback, userdata);
++	net_connman_connect_async(proxy, callback, userdata);
+ 
+ done:
+ 	return;
+@@ -476,7 +476,7 @@ void connman_client_disconnect(ConnmanClient *client, const gchar *network)
+ 	if (proxy == NULL)
+ 		return;
+ 
+-	connman_disconnect(proxy, NULL);
++	net_connman_disconnect(proxy, NULL);
+ 
+ 	g_object_unref(proxy);
+ }
+@@ -532,7 +532,7 @@ void connman_client_remove(ConnmanClient *client, const gchar *network)
+ 	if (proxy == NULL)
+ 		return;
+ 
+-	connman_remove(proxy, NULL);
++	net_connman_remove(proxy, NULL);
+ 
+ 	g_object_unref(proxy);
+ }
+diff --git a/common/connman-client.h b/common/connman-client.h
+index 9e2e6d5..98241de 100644
+--- a/common/connman-client.h
++++ b/common/connman-client.h
+@@ -70,13 +70,13 @@ void connman_client_set_powered(ConnmanClient *client, const gchar *device,
+ gboolean connman_client_set_ipv4(ConnmanClient *client, const gchar *device,
+ 				struct ipv4_config *ipv4_config);
+ void connman_client_scan(ConnmanClient *client, const gchar *device,
+-							connman_scan_reply callback, gpointer user_data);
++							net_connman_scan_reply callback, gpointer user_data);
+ 
+ void connman_client_connect(ConnmanClient *client, const gchar *network);
+ void connman_client_disconnect(ConnmanClient *client, const gchar *network);
+ gchar *connman_client_get_security(ConnmanClient *client, const gchar *network);
+ void connman_client_connect_async(ConnmanClient *client, const gchar *network,
+-				connman_connect_reply callback, gpointer userdata);
++				net_connman_connect_reply callback, gpointer userdata);
+ void connman_client_set_remember(ConnmanClient *client, const gchar *network,
+ 							gboolean remember);
+ 
+diff --git a/common/connman-dbus.c b/common/connman-dbus.c
+index b82b3e1..543eb43 100644
+--- a/common/connman-dbus.c
++++ b/common/connman-dbus.c
+@@ -655,15 +655,15 @@ DBusGProxy *connman_dbus_create_manager(DBusGConnection *conn,
+ 
+ 	DBG("getting manager properties");
+ 
+-	connman_get_properties_async(proxy, manager_properties, store);
++	net_connman_get_properties_async(proxy, manager_properties, store);
+ 
+ 	DBG("getting technologies");
+ 
+-	connman_get_technologies_async(proxy, manager_technologies, store);
++	net_connman_get_technologies_async(proxy, manager_technologies, store);
+ 
+ 	DBG("getting services");
+ 
+-	connman_get_services_async(proxy, manager_services, store);
++	net_connman_get_services_async(proxy, manager_services, store);
+ 
+ 	return proxy;
+ }
+diff --git a/common/connman-dbus.xml b/common/connman-dbus.xml
+index 56b9582..0199d52 100644
+--- a/common/connman-dbus.xml
++++ b/common/connman-dbus.xml
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8" ?>
+ 
+ <node name="/">
+-  <interface name="connman">
++  <interface name="net.connman">
+     <method name="GetProperties">
+       <arg type="a{sv}" direction="out"/>
+     </method>
+-- 
+1.9.1
+
meta/recipes-connectivity/connman/connman-gnome_0.7.bb +4 -3
index 6688739..f5575d2 100644
@@ -11,9 +11,10 @@ DEPENDS = "gtk+ dbus-glib intltool-native"
 # 0.7 tag
 SRCREV = "cf3c325b23dae843c5499a113591cfbc98acb143"
 SRC_URI = "git://github.com/connectivity/connman-gnome.git \
-	   file://0001-Removed-icon-from-connman-gnome-about-applet.patch \
-       file://null_check_for_ipv4_config.patch \
-	   file://images/* \
+           file://0001-Removed-icon-from-connman-gnome-about-applet.patch \
+           file://null_check_for_ipv4_config.patch \
+           file://images/* \
+           file://connman-gnome-fix-dbus-interface-name.patch \
           "
 
 S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
author
#5 lore raw

PATCH 5/5 upstream_tracking.inc: update entries for dbus

In reply to Chong Lu
---
 meta-yocto/conf/distro/include/upstream_tracking.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto/conf/distro/include/upstream_tracking.inc +1 -1
index 350326b..d2aba6f 100644
@@ -46,7 +46,7 @@ RECIPE_UPSTREAM_VERSION_pn-cups = "1.6.2"
 RECIPE_UPSTREAM_DATE_pn-cups = "Mar 18, 2013"
 CHECK_DATE_pn-cups = "Jun 11, 2013"
 RECIPE_NO_UPDATE_REASON_pn-db= "API compatibility issue"
-RECIPE_NO_UPDATE_REASON_pn-dbus = "D-BUS 1.7.x is the development version, not stable."
+RECIPE_NO_UPDATE_REASON_pn-dbus = "D-BUS 1.9.x is the development version, not stable."
 RECIPE_NO_UPDATE_REASON_pn-docbook-sgml-dtd-3.1-native = "PRS Reports Incorrectly"
 RECIPE_NO_UPDATE_REASON_pn-docbook-sgml-dtd-4.1-native = "PRS Reports Incorrectly"
 RECIPE_NO_UPDATE_REASON_pn-docbook-sgml-dtd-4.5-native = "PRS Reports Incorrectly"
Signature · 1 line
1.9.1
author
#6 lore raw
In reply to Chong Lu

ping

//Chong

Quoted 39 lines · Chong Lu

The following changes since commit edaeb8940813b620090a0797ad3b6a076897512d:

bitbake: cooker.py: fix loginfo op being set to an invalid value (2014-11-12 17:04:50 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib chonglu/dbus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/dbus

Chong Lu (5):

   dbus: Upgrade to 1.8.10
   dbus-test: Upgrade to 1.8.10
   dbus-glib: Upgrade to 0.102
   connman-gnome: fix dbus interface name
   upstream_tracking.inc: update entries for dbus
  .../conf/distro/include/upstream_tracking.inc      |   2 +-
  .../connman-gnome-fix-dbus-interface-name.patch    | 187 +++++++++++++++++++++
  .../connman/connman-gnome_0.7.bb                   |   7 +-
  .../obsolete_automake_macros.patch                 |  15 --
  meta/recipes-core/dbus/dbus-glib.inc               |   1 -
  .../no-examples.patch                              |   0
  .../test-install-makefile.patch                    |  57 ++++---
  meta/recipes-core/dbus/dbus-glib_0.100.2.bb        |   5 -
  meta/recipes-core/dbus/dbus-glib_0.102.bb          |   5 +
  .../{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb}    |   0
  meta/recipes-core/dbus/dbus_1.8.10.bb              |   4 +
  meta/recipes-core/dbus/dbus_1.8.2.bb               |   4 -
  12 files changed, 234 insertions(+), 53 deletions(-)

create mode 100644 meta/recipes-connectivity/connman/connman-gnome/connman-gnome-fix-dbus-interface-name.patch delete mode 100644 meta/recipes-core/dbus/dbus-glib-0.100.2/obsolete_automake_macros.patch rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/no-examples.patch (100%) rename meta/recipes-core/dbus/{dbus-glib-0.100.2 => dbus-glib}/test-install-makefile.patch (66%) delete mode 100644 meta/recipes-core/dbus/dbus-glib_0.100.2.bb
create mode 100644 meta/recipes-core/dbus/dbus-glib_0.102.bb
rename meta/recipes-core/dbus/{dbus-test_1.8.2.bb => dbus-test_1.8.10.bb} (100%)
create mode 100644 meta/recipes-core/dbus/dbus_1.8.10.bb
delete mode 100644 meta/recipes-core/dbus/dbus_1.8.2.bb

#7 lore raw
Quoted 2 lines · Chong Lu

ping

This series is queued in MUT and should be merged today.

Ross