diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-06-12 18:59:56 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-06-12 19:03:46 +0300 |
commit | dbeddbb04013435d1925df5ef648bf1ecd677b38 (patch) | |
tree | abbf6b316601f6716aedec96e42ad13db173c30d /sys-fs | |
parent | dev-vcs/mercurial: fix distutils-r1 usage (diff) | |
download | gentoo-dbeddbb04013435d1925df5ef648bf1ecd677b38.tar.gz gentoo-dbeddbb04013435d1925df5ef648bf1ecd677b38.tar.bz2 gentoo-dbeddbb04013435d1925df5ef648bf1ecd677b38.zip |
sys-fs/lxcfs: fix dev-lang/python-exec[-native-symlinks] on 5.0.0
Closes: https://bugs.gentoo.org/851480
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/lxcfs/lxcfs-5.0.0_p20220524.ebuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys-fs/lxcfs/lxcfs-5.0.0_p20220524.ebuild b/sys-fs/lxcfs/lxcfs-5.0.0_p20220524.ebuild index 361a48aafa07..b79143a65295 100644 --- a/sys-fs/lxcfs/lxcfs-5.0.0_p20220524.ebuild +++ b/sys-fs/lxcfs/lxcfs-5.0.0_p20220524.ebuild @@ -3,7 +3,9 @@ EAPI=8 -inherit cmake meson systemd +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake meson python-any-r1 systemd MY_COMMIT="18e78f70fa6764be4e4f6fcc6ae8d314da7f3a91" @@ -18,7 +20,8 @@ IUSE="doc test" DEPEND="sys-fs/fuse:3" RDEPEND="${DEPEND}" -BDEPEND="dev-python/jinja +BDEPEND="${PYTHON_DEPS} + dev-python/jinja doc? ( sys-apps/help2man )" # Needs some black magic to work inside container/chroot. @@ -26,8 +29,16 @@ RESTRICT="test" S="${WORKDIR}/${PN}-${MY_COMMIT}" +pkg_setup() { + python-any-r1_pkg_setup +} + src_prepare() { default + + # Fix python shebangs for python-exec[-native-symlinks], #851480 + local shebangs=($(grep -rl "#!/usr/bin/env python3" || die)) + python_fix_shebang -q ${shebangs[*]} } src_configure() { |