commit:     c5071270d59ea9a3bb4ca00098ad8ed8c89c0293
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 23 00:31:51 2020 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Jan 23 00:35:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5071270

sys-fs/zfs: fix python detection for scripts

Bug: https://bugs.gentoo.org/706108
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-fs/zfs/zfs-9999.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-fs/zfs/zfs-9999.ebuild b/sys-fs/zfs/zfs-9999.ebuild
index ccf810c825f..1c02c029858 100644
--- a/sys-fs/zfs/zfs-9999.ebuild
+++ b/sys-fs/zfs/zfs-9999.ebuild
@@ -115,6 +115,7 @@ src_prepare() {
 
 src_configure() {
        use custom-cflags || strip-flags
+       python_setup
 
        local myconf=(
                --bindir="${EPREFIX}/bin"
@@ -128,6 +129,7 @@ src_configure() {
                --with-linux="${KV_DIR}"
                --with-linux-obj="${KV_OUT_DIR}"
                --with-udevdir="$(get_udevdir)"
+               --with-python="${EPYTHON}"
                --with-systemdunitdir="$(systemd_get_systemunitdir)"
                --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
                $(use_enable debug)
@@ -171,7 +173,6 @@ src_install() {
        fi
 
        # enforce best available python implementation
-       python_setup
        python_fix_shebang "${ED}/bin"
 }
 

Reply via email to