diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2013-07-11 15:41:43 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-12 10:12:12 -0700 |
commit | e516f18d663447954082b5d2df6c1033cb9b4e65 (patch) | |
tree | 02b2d1418f223ef529b6ede3702106aa179b4c1a /meta/recipes-core/dbus | |
parent | 6b70373923909a05bb4d99beb8105c732ee0b2de (diff) | |
download | openembedded-core-e516f18d663447954082b5d2df6c1033cb9b4e65.tar.gz openembedded-core-e516f18d663447954082b5d2df6c1033cb9b4e65.tar.bz2 openembedded-core-e516f18d663447954082b5d2df6c1033cb9b4e65.zip |
dbus: upgrade to 1.6.10
dbus-ptest also upgraded to 1.6.10
systemd-address.patch removed; included in upstream.
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/dbus')
-rw-r--r-- | meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init (renamed from meta/recipes-core/dbus/dbus-1.6.8/dbus-1.init) | 0 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-1.6.10/ptest.patch (renamed from meta/recipes-core/dbus/dbus-1.6.8/ptest.patch) | 0 | ||||
-rwxr-xr-x | meta/recipes-core/dbus/dbus-1.6.10/run-ptest (renamed from meta/recipes-core/dbus/dbus-1.6.8/run-ptest) | 0 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-1.6.10/test-run-path.patch (renamed from meta/recipes-core/dbus/dbus-1.6.8/test-run-path.patch) | 0 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-1.6.10/tmpdir.patch (renamed from meta/recipes-core/dbus/dbus-1.6.8/tmpdir.patch) | 0 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-1.6.8/systemd-address.patch | 187 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-ptest_1.6.10.bb (renamed from meta/recipes-core/dbus/dbus-ptest_1.6.8.bb) | 4 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 1 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus_1.6.10.bb | 6 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus_1.6.8.bb | 6 |
10 files changed, 8 insertions, 196 deletions
diff --git a/meta/recipes-core/dbus/dbus-1.6.8/dbus-1.init b/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init index 64f2170255..64f2170255 100644 --- a/meta/recipes-core/dbus/dbus-1.6.8/dbus-1.init +++ b/meta/recipes-core/dbus/dbus-1.6.10/dbus-1.init diff --git a/meta/recipes-core/dbus/dbus-1.6.8/ptest.patch b/meta/recipes-core/dbus/dbus-1.6.10/ptest.patch index 263d17eff7..263d17eff7 100644 --- a/meta/recipes-core/dbus/dbus-1.6.8/ptest.patch +++ b/meta/recipes-core/dbus/dbus-1.6.10/ptest.patch diff --git a/meta/recipes-core/dbus/dbus-1.6.8/run-ptest b/meta/recipes-core/dbus/dbus-1.6.10/run-ptest index e08ecb1a63..e08ecb1a63 100755 --- a/meta/recipes-core/dbus/dbus-1.6.8/run-ptest +++ b/meta/recipes-core/dbus/dbus-1.6.10/run-ptest diff --git a/meta/recipes-core/dbus/dbus-1.6.8/test-run-path.patch b/meta/recipes-core/dbus/dbus-1.6.10/test-run-path.patch index 5c08c9354a..5c08c9354a 100644 --- a/meta/recipes-core/dbus/dbus-1.6.8/test-run-path.patch +++ b/meta/recipes-core/dbus/dbus-1.6.10/test-run-path.patch diff --git a/meta/recipes-core/dbus/dbus-1.6.8/tmpdir.patch b/meta/recipes-core/dbus/dbus-1.6.10/tmpdir.patch index bf086e1788..bf086e1788 100644 --- a/meta/recipes-core/dbus/dbus-1.6.8/tmpdir.patch +++ b/meta/recipes-core/dbus/dbus-1.6.10/tmpdir.patch diff --git a/meta/recipes-core/dbus/dbus-1.6.8/systemd-address.patch b/meta/recipes-core/dbus/dbus-1.6.8/systemd-address.patch deleted file mode 100644 index ae1291c947..0000000000 --- a/meta/recipes-core/dbus/dbus-1.6.8/systemd-address.patch +++ /dev/null @@ -1,187 +0,0 @@ -Upstream-Status: Backport -Signed-off-by: Ross Burton <ross.burton@intel.com> - -From d728fdc655f17031da3bb129ab2fd17dadf0fe3a Mon Sep 17 00:00:00 2001 -From: Simon Peeters <peeters.simon@gmail.com> -Date: Sun, 07 Oct 2012 14:59:30 +0000 -Subject: Set correct address when using --address=systemd: - -When dbus gets launched through systemd, we need to create an address -string based on the sockets passed. - -The _dbus_append_addres_from_socket() function is responsible for -extracting the address information from the file-descriptor and -formatting it in a dbus friendly way. - -This fixes bus activation when running dbus under a systemd session. - -https://bugs.freedesktop.org/show_bug.cgi?id=50962 - -Signed-off-by: Simon Peeters <peeters.simon@gmail.com> ---- -diff --git a/dbus/dbus-server-unix.c b/dbus/dbus-server-unix.c -index 130f66e..d995240 100644 ---- a/dbus/dbus-server-unix.c -+++ b/dbus/dbus-server-unix.c -@@ -149,7 +149,7 @@ _dbus_server_listen_platform_specific (DBusAddressEntry *entry, - } - else if (strcmp (method, "systemd") == 0) - { -- int n, *fds; -+ int i, n, *fds; - DBusString address; - - n = _dbus_listen_systemd_sockets (&fds, error); -@@ -159,27 +159,39 @@ _dbus_server_listen_platform_specific (DBusAddressEntry *entry, - return DBUS_SERVER_LISTEN_DID_NOT_CONNECT; - } - -- _dbus_string_init_const (&address, "systemd:"); -+ if (!_dbus_string_init (&address)) -+ goto systemd_oom; - -- *server_p = _dbus_server_new_for_socket (fds, n, &address, NULL); -- if (*server_p == NULL) -+ for (i = 0; i < n; i++) - { -- int i; -- -- for (i = 0; i < n; i++) -+ if (i > 0) - { -- _dbus_close_socket (fds[i], NULL); -+ if (!_dbus_string_append (&address, ";")) -+ goto systemd_oom; - } -- dbus_free (fds); -- -- dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL); -- return DBUS_SERVER_LISTEN_DID_NOT_CONNECT; -+ if (!_dbus_append_address_from_socket (fds[i], &address, error)) -+ goto systemd_err; - } - -+ *server_p = _dbus_server_new_for_socket (fds, n, &address, NULL); -+ if (*server_p == NULL) -+ goto systemd_oom; -+ - dbus_free (fds); - - return DBUS_SERVER_LISTEN_OK; -- } -+ systemd_oom: -+ _DBUS_SET_OOM (error); -+ systemd_err: -+ for (i = 0; i < n; i++) -+ { -+ _dbus_close_socket (fds[i], NULL); -+ } -+ dbus_free (fds); -+ _dbus_string_free (&address); -+ -+ return DBUS_SERVER_LISTEN_DID_NOT_CONNECT; -+ } - #ifdef DBUS_ENABLE_LAUNCHD - else if (strcmp (method, "launchd") == 0) - { -diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c -index b4ecc96..55743b1 100644 ---- a/dbus/dbus-sysdeps-unix.c -+++ b/dbus/dbus-sysdeps-unix.c -@@ -55,6 +55,7 @@ - #include <netinet/in.h> - #include <netdb.h> - #include <grp.h> -+#include <arpa/inet.h> - - #ifdef HAVE_ERRNO_H - #include <errno.h> -@@ -4160,4 +4161,71 @@ _dbus_check_setuid (void) - #endif - } - -+/** -+ * Read the address from the socket and append it to the string -+ * -+ * @param fd the socket -+ * @param address -+ * @param error return location for error code -+ */ -+dbus_bool_t -+_dbus_append_address_from_socket (int fd, -+ DBusString *address, -+ DBusError *error) -+{ -+ union { -+ struct sockaddr sa; -+ struct sockaddr_storage storage; -+ struct sockaddr_un un; -+ struct sockaddr_in ipv4; -+ struct sockaddr_in6 ipv6; -+ } socket; -+ char hostip[INET6_ADDRSTRLEN]; -+ int size = sizeof (socket); -+ -+ if (getsockname (fd, &socket.sa, &size)) -+ goto err; -+ -+ switch (socket.sa.sa_family) -+ { -+ case AF_UNIX: -+ if (socket.un.sun_path[0]=='\0') -+ { -+ if (_dbus_string_append_printf (address, "unix:abstract=%s", &(socket.un.sun_path[1]))) -+ return TRUE; -+ } -+ else -+ { -+ if (_dbus_string_append_printf (address, "unix:path=%s", socket.un.sun_path)) -+ return TRUE; -+ } -+ break; -+ case AF_INET: -+ if (inet_ntop (AF_INET, &socket.ipv4.sin_addr, hostip, sizeof (hostip))) -+ if (_dbus_string_append_printf (address, "tcp:family=ipv4,host=%s,port=%u", -+ hostip, ntohs (socket.ipv4.sin_port))) -+ return TRUE; -+ break; -+#ifdef AF_INET6 -+ case AF_INET6: -+ if (inet_ntop (AF_INET6, &socket.ipv6.sin6_addr, hostip, sizeof (hostip))) -+ if (_dbus_string_append_printf (address, "tcp:family=ipv6,host=%s,port=%u", -+ hostip, ntohs (socket.ipv6.sin6_port))) -+ return TRUE; -+ break; -+#endif -+ default: -+ dbus_set_error (error, -+ _dbus_error_from_errno (EINVAL), -+ "Failed to read address from socket: Unknown socket type."); -+ return FALSE; -+ } -+ err: -+ dbus_set_error (error, -+ _dbus_error_from_errno (errno), -+ "Failed to open socket: %s", -+ _dbus_strerror (errno)); -+ return FALSE; -+} -+ - /* tests in dbus-sysdeps-util.c */ -diff --git a/dbus/dbus-sysdeps-unix.h b/dbus/dbus-sysdeps-unix.h -index 9b70896..a265b33 100644 ---- a/dbus/dbus-sysdeps-unix.h -+++ b/dbus/dbus-sysdeps-unix.h -@@ -138,6 +138,10 @@ dbus_bool_t _dbus_parse_uid (const DBusString *uid_str, - - void _dbus_close_all (void); - -+dbus_bool_t _dbus_append_address_from_socket (int fd, -+ DBusString *address, -+ DBusError *error); -+ - /** @} */ - - DBUS_END_DECLS --- -cgit v0.9.0.2-2-gbebe diff --git a/meta/recipes-core/dbus/dbus-ptest_1.6.8.bb b/meta/recipes-core/dbus/dbus-ptest_1.6.10.bb index 8d21666c57..6c0f4040f8 100644 --- a/meta/recipes-core/dbus/dbus-ptest_1.6.8.bb +++ b/meta/recipes-core/dbus/dbus-ptest_1.6.10.bb @@ -16,8 +16,8 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ file://run-ptest \ " -SRC_URI[md5sum] = "3bf059c7dd5eda5f539a1b7cfe7a14a2" -SRC_URI[sha256sum] = "fc1370ef38abeeb13f55c905ec002e60705fb0bfde3b8d21c8d6eb8056c11bac" +SRC_URI[md5sum] = "de4970c20629aeb958a12132415b3630" +SRC_URI[sha256sum] = "1f3d6f4a53a7121328f6cd685fc14440d72e6c0006ecb3312cc779c495915e86" S="${WORKDIR}/dbus-${PV}" FILESPATH = "${FILE_DIRNAME}/dbus-${PV}" diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 8055824aee..b07aefa3b5 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc @@ -16,7 +16,6 @@ INC_PR = "r6" SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ file://tmpdir.patch; \ - file://systemd-address.patch \ file://dbus-1.init" inherit useradd autotools pkgconfig gettext update-rc.d diff --git a/meta/recipes-core/dbus/dbus_1.6.10.bb b/meta/recipes-core/dbus/dbus_1.6.10.bb new file mode 100644 index 0000000000..5b8220c8ff --- /dev/null +++ b/meta/recipes-core/dbus/dbus_1.6.10.bb @@ -0,0 +1,6 @@ +include dbus.inc + +PR = "${INC_PR}.0" + +SRC_URI[md5sum] = "de4970c20629aeb958a12132415b3630" +SRC_URI[sha256sum] = "1f3d6f4a53a7121328f6cd685fc14440d72e6c0006ecb3312cc779c495915e86" diff --git a/meta/recipes-core/dbus/dbus_1.6.8.bb b/meta/recipes-core/dbus/dbus_1.6.8.bb deleted file mode 100644 index facc02ee63..0000000000 --- a/meta/recipes-core/dbus/dbus_1.6.8.bb +++ /dev/null @@ -1,6 +0,0 @@ -include dbus.inc - -PR = "${INC_PR}.0" - -SRC_URI[md5sum] = "3bf059c7dd5eda5f539a1b7cfe7a14a2" -SRC_URI[sha256sum] = "fc1370ef38abeeb13f55c905ec002e60705fb0bfde3b8d21c8d6eb8056c11bac" |