Skip to contentSkip to conversation

python3-pybind11: Backport from meta-openembedded master

PATCH New Ryan Eatmon 1 participant 3 messages Jun 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 python3-pybind11: Backport from meta-openembedded master

The version of pybind11 in kirkstone seems to have an issue when configuring the kms++ package. Backporting the 2.10.3 verison from master fixes that issue.

---
 .../python/python3-pybind11_2.10.3.bb         | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/python/python3-pybind11_2.10.3.bb
meta-arago-extras/recipes-devtools/python/python3-pybind11_2.10.3.bb new file +35 -0
new file mode 100644
index 00000000..bb604982
@@ -0,0 +1,35 @@
+SUMMARY = "Seamless operability between C++11 and Python"
+HOMEPAGE = "https://github.com/wjakob/pybind11"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f"
+
+DEPENDS = "boost"
+
+SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https"
+
+SRCREV = "0bd8896a4010f2d91b2340570c24fa08606ec406"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OECMAKE =  "-DPYBIND11_TEST=OFF"
+
+inherit cmake setuptools3 python3native
+
+PIP_INSTALL_DIST_PATH = "${S}/dist"
+PIP_INSTALL_PACKAGE = "pybind11"
+
+do_configure() {
+   cmake_do_configure
+}
+
+do_compile() {
+   setuptools3_do_compile
+   cmake_do_compile
+}
+
+do_install() {
+   setuptools3_do_install
+   cmake_do_install
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 2/3 kms++: Restore pybind11 support

With the inclusion of the later pybind11 recipe we can now turn pybind11 support back on and build cleanly.

---
v2: Split this patch into two commits and reword commit message to
match the same patch in master.

 meta-arago-extras/recipes-graphics/kms++/kms++_git.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-arago-extras/recipes-graphics/kms++/kms++_git.bb +2 -3
index eb39736c..2c0abaa7 100644
@@ -12,9 +12,8 @@ SRCREV = "5afc8d918f2c084acd65027604868dfde43395cf"
 
 DEPENDS = "drm fmt"
 
-# New meson build system fails to find pybind11 in sysroot, disable for now
-#DEPENDS += "python3-pybind11"
-#EXTRA_OEMESON = "-Dsystem-pybind11=enabled"
+DEPENDS += "libevdev python3-pybind11"
+EXTRA_OEMESON = "-Dsystem-pybind11=enabled"
 
 PACKAGES =+ "${PN}-python"
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 3/3 packagegroup-arago-base: Turn kms++-python back on

In reply to Ryan Eatmon

Now that kms++ with python pybind11 builds we can add it back into the package list.

---
 .../recipes-core/packagegroups/packagegroup-arago-base.bb      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb +1 -2
index 31d9ad5b..ff32112a 100644
@@ -26,8 +26,6 @@ ARAGO_BASE = "\
     libgpiod-tools \
 "
 
-# these require meta-openembedded/meta-oe layer
-#    kms++-python is not provided yet
 ARAGO_EXTRA = "\
     devmem2 \
     tcpdump \
@@ -35,6 +33,7 @@ ARAGO_EXTRA = "\
     dropbear \
     openssh-sftp-server \
     kms++ \
+    kms++-python \
     can-utils \
     docker \
 "
Signature · 1 line
2.17.1