From 8ef7e7967be382f393f7e76e098d31ff13e199fc Mon Sep 17 00:00:00 2001 From: Mario Haustein Date: Tue, 6 Sep 2022 08:59:09 +0200 Subject: [PATCH] dev-libs/keystone: explicitly specify python interpreter for cmake Closes: https://bugs.gentoo.org/867631 Signed-off-by: Mario Haustein Closes: https://github.com/gentoo/gentoo/pull/27161 Signed-off-by: Joonas Niilola --- dev-libs/keystone/keystone-0.9.2-r1.ebuild | 5 +++++ dev-libs/keystone/keystone-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dev-libs/keystone/keystone-0.9.2-r1.ebuild b/dev-libs/keystone/keystone-0.9.2-r1.ebuild index 68f71673a12ff..a6f8dcdd88970 100644 --- a/dev-libs/keystone/keystone-0.9.2-r1.ebuild +++ b/dev-libs/keystone/keystone-0.9.2-r1.ebuild @@ -56,6 +56,10 @@ wrap_python() { fi } +pkg_setup() { + python_setup +} + src_prepare() { default @@ -73,6 +77,7 @@ src_configure() { -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" -DLLVM_HOST_TRIPLE="${CHOST}" + -DPYTHON_EXECUTABLE="${PYTHON}" ) cmake_src_configure diff --git a/dev-libs/keystone/keystone-9999.ebuild b/dev-libs/keystone/keystone-9999.ebuild index 68f71673a12ff..a6f8dcdd88970 100644 --- a/dev-libs/keystone/keystone-9999.ebuild +++ b/dev-libs/keystone/keystone-9999.ebuild @@ -56,6 +56,10 @@ wrap_python() { fi } +pkg_setup() { + python_setup +} + src_prepare() { default @@ -73,6 +77,7 @@ src_configure() { -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" -DLLVM_HOST_TRIPLE="${CHOST}" + -DPYTHON_EXECUTABLE="${PYTHON}" ) cmake_src_configure