From e655150e9eb8e224eb17edbf8f53a72a11557e3b Mon Sep 17 00:00:00 2001 From: Brett A C Sheffield Date: Fri, 20 Mar 2026 09:55:42 +0000 Subject: [PATCH] www-servers/varnish: fix python shebang once We call fix-python-shebangs in src_prepare as some python programs are used during configure (wflags.py) and build. We skip vmodtool.py as this gets handled later in src_install by python_replicate_script. Closes: https://bugs.gentoo.org/971373 Signed-off-by: Brett A C Sheffield Part-of: https://codeberg.org/gentoo/gentoo/pulls/376 Merges: https://codeberg.org/gentoo/gentoo/pulls/376 Signed-off-by: Sam James --- www-servers/varnish/varnish-8.0.1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-servers/varnish/varnish-8.0.1.ebuild b/www-servers/varnish/varnish-8.0.1.ebuild index 45d7a0d35a719..228e142c94d3d 100644 --- a/www-servers/varnish/varnish-8.0.1.ebuild +++ b/www-servers/varnish/varnish-8.0.1.ebuild @@ -61,7 +61,8 @@ src_prepare() { default # Fix python shebangs for python-exec[-native-symlinks], #909330 - local shebangs=($(grep -rl "#!/usr/bin/env python3" || die)) + # skip vmodtool, as that gets installed by python_replicate_script later + local shebangs=($(grep -rl "#!/usr/bin/env python3"|grep -v vmodtool || die)) python_setup python_fix_shebang -q ${shebangs[*]}