sys-apps/util-linux: drop Python 3+ support
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 17:50:16 +0000 (19:50 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 17:59:30 +0000 (19:59 +0200)
pylibmount is _not_ compatible with Python 3.

Bug: https://github.com/karelzak/util-linux/issues/489
Closes: https://bugs.gentoo.org/624132
Package-Manager: Portage-2.3.41, Repoman-2.3.9

sys-apps/util-linux/util-linux-2.30.2-r1.ebuild
sys-apps/util-linux/util-linux-2.32-r4.ebuild [moved from sys-apps/util-linux/util-linux-2.32-r3.ebuild with 94% similarity]

index 3077f85b78e75ef72e3120484875fead799b78c5..adba6b4d54f7293b891b7a6ae0cebb9faa9eea49 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
        pam python-single-r1 multilib-minimal multiprocessing systemd
similarity index 94%
rename from sys-apps/util-linux/util-linux-2.32-r3.ebuild
rename to sys-apps/util-linux/util-linux-2.32-r4.ebuild
index 4fe88effdfb88d8bc6987de3a4fbefecd13877fa..d988bafa6f6df95dc6d5106e29561b3b3bdebd10 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
        pam python-single-r1 multilib-minimal multiprocessing systemd
@@ -216,6 +216,14 @@ multilib_src_install_all() {
                newpamd "${FILESDIR}/runuser.pamd" runuser
                newpamd "${FILESDIR}/runuser-l.pamd" runuser-l
        fi
+
+       # Note:
+       # Bash completion for "runuser" command is provided by same file which
+       # would also provide bash completion for "su" command. However, we don't
+       # use "su" command from this package.
+       # This triggers a known QA warning which we ignore for now to magically
+       # keep bash completion for "su" command which shadow package does not
+       # provide.
 }
 
 pkg_postinst() {