#2 Unbundle pybind11 to fix FTBFS with Python 3.11
Merged 2 years ago by jskarvad. Opened 2 years ago by churchyard.
rpms/ churchyard/uhd unbundle_pybind11  into  rawhide

file modified
@@ -53,6 +53,7 @@ 

  BuildRequires:  libgcrypt-devel

  BuildRequires:  gnutls-devel


+ BuildRequires:  pybind11-devel

  BuildRequires:  python3-mako

  BuildRequires:  python3-requests

  BuildRequires:  python3-devel
@@ -146,6 +147,7 @@ 


  pushd host

  %cmake %{?have_neon} -DPYTHON_EXECUTABLE="%{__python3}" \

+   -DPYBIND11_INCLUDE_DIR="/usr/include/pybind11/" \

    -DUHD_VERSION="%{version}" \

    -DENABLE_TESTS=off ../


Note that I have verified that this goes further in the build than before, but the mockbuild was killing my machine so I have stopped it. Wait for the CI scratchbuild before assuming this actually manages to build to the end.

Also, I'd like to rm the bundled pybind11 but I could not locate it.

The CI build succeeded at least on the fast architectures.

Pull-Request has been merged by jskarvad

2 years ago