Skip to contentSkip to conversation

python3-pystemd: add new recipe

PATCH Superseded Dan Callaghan 2 participants 3 messages Aug 13, 2019 – Aug 26, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pystemd: add new recipe

This library provides wrappers around the systemd DBus API for manipulating systemd services.

---
 .../recipes-devtools/python/python3-pystemd_0.6.0.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb
meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb new file +12 -0
new file mode 100644
index 000000000..6c6e9ad5d
@@ -0,0 +1,12 @@
+SUMMARY = "Python bindings for interacting with systemd over DBus"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
+
+SRC_URI[md5sum] = "c5472be419f53f53f5da089ca8c981c0"
+SRC_URI[sha256sum] = "b1fc072c87e3766711f64caf86fd633dca393e20c8a0a37a5058dd70a21d8a14"
+
+DEPENDS = "systemd"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.20.1
#1 lore raw
Quoted 16 lines · Dan Callaghan

This library provides wrappers around the systemd DBus API for manipulating systemd services.

---
 .../recipes-devtools/python/python3-pystemd_0.6.0.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb
meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb new file +0 -0
new file mode 100644
index 000000000..6c6e9ad5d

meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb line 8

Quoted 8 lines
meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb new file +8 -0
@@ -0,0 +1,12 @@
+SUMMARY = "Python bindings for interacting with systemd over DBus"
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
+
+SRC_URI[md5sum] = "c5472be419f53f53f5da089ca8c981c0"
+SRC_URI[sha256sum] = "b1fc072c87e3766711f64caf86fd633dca393e20c8a0a37a5058dd70a21d8a14"
+
+DEPENDS = "systemd"

We have to also check for systemd in REQUIRED_DISTRO_FEATURE or else it can cause errors e.g.

ERROR: Nothing PROVIDES 'systemd' (but /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb DEPENDS on or otherwise requires it)
systemd was skipped: missing required distro feature 'systemd' (not in
DISTRO_FEATURES)

Quoted 12 lines
meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb new file +4 -1
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND = "native"
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

Excerpts from Khem Raj's message of 2019-08-13 18:28:05 -07:00:

Quoted 8 lines

We have to also check for systemd in REQUIRED_DISTRO_FEATURE or else it can cause errors e.g.

ERROR: Nothing PROVIDES 'systemd' (but /mnt/jenkins/workspace/yocto-world-glibc/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pystemd_0.6.0.bb DEPENDS on or otherwise requires it)
systemd was skipped: missing required distro feature 'systemd' (not in
DISTRO_FEATURES)

Oh I see... I haven't used REQUIRED_DISTRO_FEATURES before. I was testing in our distro which already has systemd turned on. But it seems pretty straightforward... I will post a v2 of the patch.

Signature · 3 lines
Dan Callaghan <[email protected]>
Software Engineer
Opengear <https://opengear.com/>