sys-fs/zfs: fix python detection for scripts
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 Jan 2020 00:31:51 +0000 (16:31 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 Jan 2020 00:35:25 +0000 (16:35 -0800)
Bug: https://bugs.gentoo.org/706108
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-fs/zfs/zfs-9999.ebuild

index ccf810c825f279aed2535f2c0d43580c3ae8cba0..1c02c029858541eac5007d6a55e2dd616cfa332c 100644 (file)
@@ -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"
 }