summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2022-03-03 18:32:32 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-03-11 23:24:58 +0300
commit751f868a3e28eda605dc5e3c2092504753ade270 (patch)
treee4babcb227babf4623309ac89c1bbf8f614b7f64
parentb63d8ff4c6caf32bf6c9467a3834b623d190e3ea (diff)
downloadopenbmc-751f868a3e28eda605dc5e3c2092504753ade270.tar.xz
python3-sdbus++: support wheel builds
The latest Yocto code is expecting pip wheels for builds and requires some tweaks in order to build successfully. Yocto packages are, by convention, named 'python3-...' but the sdbusplus setup.py generates a `sdbusplus` package and the version of the package is simply "1.0". Forcibly set PYPI_PACKAGE and PV in order to match up with the python packaging results. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iebaa7503947312c2fbb133b73522dc5d087d190e
-rw-r--r--meta-phosphor/recipes-extended/sdbusplus/python3-sdbus++_git.bb2
-rw-r--r--meta-phosphor/recipes-extended/sdbusplus/sdbusplus-rev.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-extended/sdbusplus/python3-sdbus++_git.bb b/meta-phosphor/recipes-extended/sdbusplus/python3-sdbus++_git.bb
index 6cfa030181..d0443d1ce6 100644
--- a/meta-phosphor/recipes-extended/sdbusplus/python3-sdbus++_git.bb
+++ b/meta-phosphor/recipes-extended/sdbusplus/python3-sdbus++_git.bb
@@ -1,6 +1,8 @@
SUMMARY = "sdbus++ dbus API / binding generator"
DESCRIPTION = "Generates bindings against sdbusplus for dbus APIs"
+PYPI_PACKAGE = "sdbusplus"
+PV = "1.0"
inherit setuptools3
include sdbusplus-rev.inc
diff --git a/meta-phosphor/recipes-extended/sdbusplus/sdbusplus-rev.inc b/meta-phosphor/recipes-extended/sdbusplus/sdbusplus-rev.inc
index 3dfe456850..c82cbbbd2f 100644
--- a/meta-phosphor/recipes-extended/sdbusplus/sdbusplus-rev.inc
+++ b/meta-phosphor/recipes-extended/sdbusplus/sdbusplus-rev.inc
@@ -1,6 +1,6 @@
HOMEPAGE = "http://github.com/openbmc/sdbusplus"
PR = "r1"
-PV = "1.0+git${SRCPV}"
+PV ?= "1.0+git${SRCPV}"
SRC_URI += "git://github.com/openbmc/sdbusplus;branch=master;protocol=https"
SRCREV = "9ca0c929d9ae80580c6d9f9bf7bce1231759c6bf"