Skip to contentSkip to conversation

python3-pybind11: Backport from meta-openembedded master

PATCH Superseded Ryan Eatmon 2 participants 4 messages Jun 16, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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 2/2 kms++: Renable kms++-python

With the pybind11 backport, the kms++ package builds correctly. Turn it back on.

---
 .../recipes-core/packagegroups/packagegroup-arago-base.bb    | 3 +--
 meta-arago-extras/recipes-graphics/kms++/kms++_git.bb        | 5 ++---
 2 files changed, 3 insertions(+), 5 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 \
 "
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

Re: [meta-arago][kirkstone][PATCH 2/2] kms++: Renable kms++-python

Renable?

Otherwise LGTM

Quoted 45 lines · Ryan Eatmon via lists.yoctoproject.org

With the pybind11 backport, the kms++ package builds correctly. Turn it back on.

---
 .../recipes-core/packagegroups/packagegroup-arago-base.bb    | 3 +--
 meta-arago-extras/recipes-graphics/kms++/kms++_git.bb        | 5 ++---
 2 files changed, 3 insertions(+), 5 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 \
 "
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"
#3 lore raw

Re: [meta-arago][kirkstone][PATCH 2/2] kms++: Renable kms++-python

I'll fix that. I decided to split the second patch. Fix kms++ with pybind. and then add kms++-python back in. That patch might be applicable to master as it should be the same patch. The first two would be kirkstone only.

Quoted 51 lines · Denys Dmytriyenko

Renable?

Otherwise LGTM

Quoted 45 lines · Ryan Eatmon via lists.yoctoproject.org

With the pybind11 backport, the kms++ package builds correctly. Turn it back on.

---
  .../recipes-core/packagegroups/packagegroup-arago-base.bb    | 3 +--
  meta-arago-extras/recipes-graphics/kms++/kms++_git.bb        | 5 ++---
  2 files changed, 3 insertions(+), 5 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 \
  "
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 · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS