Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878855 - net-analyzer/suricata python shebang invalid
Summary: net-analyzer/suricata python shebang invalid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 05:18 UTC by nic
Modified: 2022-11-01 12:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nic 2022-10-31 05:18:43 UTC
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 :)
Comment 1 Larry the Git Cow gentoo-dev 2022-11-01 00:36:41 UTC
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(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-01 01:21:57 UTC
Needs a revbump.
Comment 3 Marek Szuba (RETIRED) archtester gentoo-dev 2022-11-01 12:26:47 UTC
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 :-)