From f11fa01adb3bd845c6666acf1b95d829b47ae624 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jun 21 2022 12:24:16 +0000 Subject: Unbundle pybind11 to fix FTBFS with Python 3.11 Fedora's pybind11 is already fixed. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2099182 --- diff --git a/uhd.spec b/uhd.spec index 2961a01..37f9458 100644 --- a/uhd.spec +++ b/uhd.spec @@ -53,6 +53,7 @@ BuildRequires: wireshark-devel BuildRequires: libgcrypt-devel BuildRequires: gnutls-devel %endif +BuildRequires: pybind11-devel BuildRequires: python3-mako BuildRequires: python3-requests BuildRequires: python3-devel @@ -146,6 +147,7 @@ popd pushd host %cmake %{?have_neon} -DPYTHON_EXECUTABLE="%{__python3}" \ + -DPYBIND11_INCLUDE_DIR="/usr/include/pybind11/" \ -DUHD_VERSION="%{version}" \ -DENABLE_TESTS=off ../ %cmake_build