From 39028d0d9da7aef2dd547f76dd5f9b02b0209c00 Mon Sep 17 00:00:00 2001 From: Niko Mauno Date: Mon, 26 Feb 2024 11:41:54 +0000 Subject: python3-pybind11: Restore strip prevention patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch which removed the pybind11_strip() call from provisioned pybind11*Tools.cmake files was dropped in commit 5c455804aede17e0ea0cbb7ab55f8580f912e664 ("python3-pybind11: Upgrade to 2.10.3"). However this change delegated the requirement to set CMAKE_BUILD_TYPE as 'Debug' or 'RelWithDebInfo' (or as unset) to the cmake utilizing packages which have build time dependency on python3-pybind11, failure to do which causes following kind of BitBake failure with Yocto: ERROR: foobar-1.0.0-r0 do_package: QA Issue: File '/usr/lib/python3.11/site-packages/foobar.so' from foobar was already stripped, this will prevent future debugging! [already-stripped] Restore the patch so that the stripping is delegated to Yocto once more, allowing depending cmake packages to work out of the box also when they use 'Release' or 'MinSizeRel' as CMAKE_BUILD_TYPE by default. Signed-off-by: Joonas Salonpää Signed-off-by: Niko Mauno Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb') diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb index 13f63b7c62..78662fe3cd 100644 --- a/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-pybind11_2.11.1.bb @@ -8,7 +8,10 @@ DEPENDS = "\ " SRCREV = "8a099e44b3d5f85b20f05828d919d2332a8de841" -SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https" +SRC_URI = "\ + git://github.com/pybind/pybind11.git;branch=stable;protocol=https \ + file://0001-Do-not-strip-binaries.patch \ +" S = "${WORKDIR}/git" -- cgit v1.2.3-54-g00ecf