Skip to contentSkip to conversation

classes/python_mesonpy: extend PEP517_BUILD_OPTS instead of assigning

PATCH New Ross Burton 1 participant 3 messages Nov 6 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 classes/python_mesonpy: extend PEP517_BUILD_OPTS instead of assigning

Don't forcibly assign to PEP517_BUILD_OPTS in case a recipe or other class has already assigned.

---
 meta/classes-recipe/python_mesonpy.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/python_mesonpy.bbclass +1 -1
index 0ad1c970a9f..6ab6ae4527d 100644
@@ -29,7 +29,7 @@ def mesonpy_get_args(d):
             varlist.append("-Csetup-args=" + elem)
     return ' '.join(varlist)
 
-PEP517_BUILD_OPTS = "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}"
+PEP517_BUILD_OPTS += "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}"
 
 python_mesonpy_do_configure () {
     python_pep517_do_configure
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/3 python3-dbus: fetch sources from PyPI

This is a python package, so fetch the sources from PyPI. This gives us reliable upstream release checking and a slightly neater recipe.

---
 meta/recipes-devtools/python/python3-dbus_1.5.1.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta/recipes-devtools/python/python3-dbus_1.5.1.bb +2 -4
index 4126c4639a0..ccd39d46a23 100644
@@ -9,13 +9,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=97f58951300aa52a9f9e3a62bd5c846c \
                     "
 DEPENDS = "expat dbus glib-2.0 virtual/libintl"
 
-SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus_python-${PV}.tar.gz"
+PYPI_PACKAGE = "dbus-python"
 
 SRC_URI[sha256sum] = "57423cf87d09b7d084f420b55b737fe654c33339b06df77945620d97795c6ac4"
 
-S = "${UNPACKDIR}/dbus_python-${PV}"
-
-inherit setuptools3-base meson pkgconfig
+inherit pypi setuptools3-base meson pkgconfig
 
 # requires dbus-run-session
 EXTRA_OEMESON += "-Dtests=disabled"
Signature · 1 line
2.43.0
#2 lore raw

PATCH 3/3 python3-dbus: clean up packaging

In reply to Ross Burton

The dependencies on expat and libintl are redundant, and ${libdir}/pkgconfig is already in the default FILES for -dev.

Note that we can't use the python_mesonpy class for this recipe: it installs headers and pkgconfig files which don't install to the correct paths when the package is built into a wheel and then installed.

---
 meta/recipes-devtools/python/python3-dbus_1.5.1.bb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta/recipes-devtools/python/python3-dbus_1.5.1.bb +1 -4
index ccd39d46a23..4e8281d903d 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=97f58951300aa52a9f9e3a62bd5c846c \
                     file://subprojects/dbus-gmain/LICENSES/GPL-2.0-or-later.txt;md5=3d26203303a722dedc6bf909d95ba815 \
                     file://subprojects/dbus-gmain/LICENSES/AFL-2.1.txt;md5=f3ad2f482ec639b440413665cfb9e714 \
                     "
-DEPENDS = "expat dbus glib-2.0 virtual/libintl"
+DEPENDS = "dbus glib-2.0"
 
 PYPI_PACKAGE = "dbus-python"
 
@@ -15,11 +15,8 @@ SRC_URI[sha256sum] = "57423cf87d09b7d084f420b55b737fe654c33339b06df77945620d9779
 
 inherit pypi setuptools3-base meson pkgconfig
 
-# requires dbus-run-session
 EXTRA_OEMESON += "-Dtests=disabled"
 
 RDEPENDS:${PN} = "python3-io python3-logging python3-stringold python3-threading python3-xml"
 
-FILES:${PN}-dev += "${libdir}/pkgconfig"
-
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0