commit:     f2caa9279aab871a4b0fb50f29057c1647ad623a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 23 05:36:56 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 05:40:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2caa927

dev-python/pybind11: Another fix for .pc prefix, with working tests

Closes: https://bugs.gentoo.org/961861
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pybind11/pybind11-3.0.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pybind11/pybind11-3.0.0-r1.ebuild 
b/dev-python/pybind11/pybind11-3.0.0-r1.ebuild
index 1004911d9002..1a182b3df8d1 100644
--- a/dev-python/pybind11/pybind11-3.0.0-r1.ebuild
+++ b/dev-python/pybind11/pybind11-3.0.0-r1.ebuild
@@ -61,8 +61,8 @@ python_configure() {
                "${DISTUTILS_ARGS[@]}"
                -DPYBIND11_TEST=$(usex test)
 
-               # use absolute path to force clean prefix in pkg-config file
-               -DCMAKE_INSTALL_DATAROOTDIR="${EPREFIX}"/usr/share
+               # fix missing prefix, https://bugs.gentoo.org/961861
+               -Dprefix_for_pc_file="${EPREFIX}"/usr
        )
        cmake_src_configure
 }

Reply via email to