The configure phase of suricata-6.0.8.ebuild changes HAVE_PYTHON from /usr/bin/python3 to /var/tmp/portage/net-analyzer/suricata-6.0.8/temp/python3.10/bin/python3 (YMMV based on current packages installed) That shebang header remains set into the install image, resulting in these suricata python scripts failing to find the sandbox build interpreter head -1 /usr/bin/suricata* ==> /usr/bin/suricatactl <== #! /var/tmp/portage/net-analyzer/suricata-6.0.8/temp/python3.10/bin/python3 ==> /usr/bin/suricatasc <== #! /var/tmp/portage/net-analyzer/suricata-6.0.8/temp/python3.10/bin/python3 ==> /usr/bin/suricata-update <== #! /var/tmp/portage/net-analyzer/suricata-6.0.8/temp/python3.10/bin/python3 exec 'python3 /usr/bin/suricata-update' as a workaround hope this helps :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccd5c182f09cb41b255b1c1ba6c2226e6158de5e commit ccd5c182f09cb41b255b1c1ba6c2226e6158de5e Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-11-01 00:27:56 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-11-01 00:36:30 +0000 net-analyzer/suricata: fix shebangs in installed Python scripts Closes: https://bugs.gentoo.org/878855 Signed-off-by: Marek Szuba <marecki@gentoo.org> net-analyzer/suricata/suricata-6.0.8.ebuild | 2 ++ 1 file changed, 2 insertions(+)
Needs a revbump.
My bad, I wanted to tweak some more things in the ebuild and only revbump at the end but ran out of time. Will do one some time today, regardless of whether I make time for further changes or not. nic: Thank you for the report! I wonder when this changed... Clearly after the last time I'd run suricata-update :-)