commit:     27c2432216b04ae81508c4f88e46b1694d9e4c95
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 23 00:33:02 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=27c24322

sys-fs/zfs: fix python detection without setuptools

Closes: 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-0.8.2-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-fs/zfs/zfs-0.8.2-r2.ebuild b/sys-fs/zfs/zfs-0.8.2-r2.ebuild
index fea065189c3..341a978b279 100644
--- a/sys-fs/zfs/zfs-0.8.2-r2.ebuild
+++ b/sys-fs/zfs/zfs-0.8.2-r2.ebuild
@@ -124,6 +124,7 @@ src_prepare() {
 
 src_configure() {
        use custom-cflags || strip-flags
+       python_setup
 
        local myconf=(
                --bindir="${EPREFIX}/bin"
@@ -137,6 +138,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)
@@ -180,7 +182,6 @@ src_install() {
        fi
 
        # enforce best available python implementation
-       python_setup
        python_fix_shebang "${ED}/bin"
 }
 

Reply via email to