Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766402 - net-vpn/openconnect-8.10 - missing run-time dependency dev-python/mechanize
Summary: net-vpn/openconnect-8.10 - missing run-time dependency dev-python/mechanize
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-21 16:16 UTC by Carlos Augusto
Modified: 2021-01-28 01:09 UTC (History)
2 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 Carlos Augusto 2021-01-21 16:16:13 UTC
OpenConnect installs /usr/libexec/openconnect/tncc-emulate.py for emulating host checks.

This python script requires dev-python/mechanize to run and will fail without it in the system.

Adding it to rdepend fix the issue.

Reproducible: Always

Steps to Reproduce:
1.Install openconnect, do not have dev-python/mechanize previously installed in your systems
2.Try to manually run /usr/libexec/openconnect/tncc-emulate.py
3.script will fail complaining invalid module mechanize


Expected Results:  
When you install openconnect dev-python/mechanize should be automatically pulled as runtime dependency, possibly controlled through a use flag if you need to emulate the tncc

This issue can be easily fixed by manually emerging dev-python/mechanize or creating your own custom ebuild.
Comment 1 Mike Gilbert gentoo-dev 2021-01-21 18:38:03 UTC
I doubt most people use tncc-emulate.py, so I will not add an unconditional dependency. That would also complicate the python eclass situation for this package.

How did you stumble upon this script in the first place?