diff options
author | Derek Straka <derek@asterius.io> | 2024-03-22 16:59:54 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-22 21:19:50 -0700 |
commit | 3c188f75eabf3cb2c976e69e4c18c401e20635dd (patch) | |
tree | 56d5082157836964843fa69dfd8d1b3b397e1bc1 /meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch | |
parent | 1cb0dae6b8bddcef854aa30a61af8213b638a63a (diff) | |
download | meta-openembedded-3c188f75eabf3cb2c976e69e4c18c401e20635dd.tar.gz |
python3-dbus: re-add recipe with latest patches and add ptest
The python3-dbus package was removed in (dac933e). While the upstream
project isn't active, other distributions (e.g. Fedora, Debian, etc)
continue to offer the package and apply patches to resolve reported issues.
While other packages offer similar functionality (e.g. dasbus), they are not
drop in replacements and the general dbus functionality works out of the box.
The python package has accomplished it's goal of providing useful functionality,
and the proposal is to continue to have it available in meta-python for use.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch b/meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch new file mode 100644 index 0000000000..1bd17986e6 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydbus/0001-make-direction-attribute-conforming-to-introspect.dt.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 5fe65a35e0e7106347639f0258206fadb451c439 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hiroaki KAWAI <hiroaki.kawai@gmail.com> | ||
3 | Date: Wed, 1 Feb 2017 18:00:33 +0900 | ||
4 | Subject: [PATCH 1/3] make direction attribute conforming to introspect.dtd | ||
5 | |||
6 | direction attribute defaults to "in" as | ||
7 | in the DTD(*1), direction attribute is defined as following: | ||
8 | |||
9 | ``` | ||
10 | <!ATTRLIST arg direction (in|out) "in"> | ||
11 | ``` | ||
12 | |||
13 | *1) http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd | ||
14 | |||
15 | Adapted from Fedora [https://src.fedoraproject.org/cgit/rpms/python-pydbus.git/] | ||
16 | |||
17 | Upstream-Status: Inactive-Upstream (Last release 12/18/2016; Last commit 05/6/2018) | ||
18 | |||
19 | Signed-off-by: Derek Straka <derek@asterius.io> | ||
20 | --- | ||
21 | pydbus/proxy_method.py | 4 ++-- | ||
22 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
23 | |||
24 | diff --git a/pydbus/proxy_method.py b/pydbus/proxy_method.py | ||
25 | index 8798edd..3e6e6ee 100644 | ||
26 | --- a/pydbus/proxy_method.py | ||
27 | +++ b/pydbus/proxy_method.py | ||
28 | @@ -33,8 +33,8 @@ class ProxyMethod(object): | ||
29 | self.__name__ = method.attrib["name"] | ||
30 | self.__qualname__ = self._iface_name + "." + self.__name__ | ||
31 | |||
32 | - self._inargs = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "in"] | ||
33 | - self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "out"] | ||
34 | + self._inargs = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "in"] | ||
35 | + self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "out"] | ||
36 | self._sinargs = "(" + "".join(x[1] for x in self._inargs) + ")" | ||
37 | self._soutargs = "(" + "".join(self._outargs) + ")" | ||
38 | |||
39 | -- | ||
40 | 2.13.5 | ||