From 99d06308dd65b20b425985a80fda73b3bc258134 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Thu, 20 Apr 2023 14:39:45 -0400 Subject: [PATCH] opae-sdk: fix FTBFS after migration to pyproject.toml This resolves a failure to build the latest OPAE SDK which migrated to pyproject.toml to specify Python module build dependencies (PEP 518). https://github.com/OFS/opae-sdk/pull/2917 https://peps.python.org/pep-0518/ Closes: https://github.com/OFS/meta-ofs/issues/1 --- recipes-ofs/opae-sdk/opae-sdk_git.bb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/recipes-ofs/opae-sdk/opae-sdk_git.bb b/recipes-ofs/opae-sdk/opae-sdk_git.bb index 7bf06d0..f9c2211 100644 --- a/recipes-ofs/opae-sdk/opae-sdk_git.bb +++ b/recipes-ofs/opae-sdk/opae-sdk_git.bb @@ -13,9 +13,9 @@ DEPENDS = "\ libedit \ python3 \ python3-jsonschema-native \ + python3-pip-native \ python3-pybind11 \ python3-pyyaml-native \ - python3-setuptools-native \ spdlog \ tbb \ udev \ @@ -27,6 +27,18 @@ PKGV = "${GITPKGVTAG}" inherit cmake pkgconfig python3native +# Tell pip install to use build dependencies provided by bitbake +# in the recipe's sysroot, instead of trying to download and +# install the build dependencies. The latter fails since bitbake +# builds recipes in an isolated sandbox without network access. +# +# https://github.com/OFS/meta-ofs/issues/1 +# https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-no-build-isolation +# +# PIP_NO_CACHE_DIR and PIP_NO_BUILD_ISOLATION behave opposite to how they read +# https://github.com/pypa/pip/issues/5735 +export PIP_NO_BUILD_ISOLATION = "off" + # Work around linking error for Python extension modules # # ld: cannot find crti.o: No such file or directory