Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1664029 - openconnect requires deprecated python2
Summary: openconnect requires deprecated python2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openconnect
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Woodhouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-07 14:47 UTC by Petr Viktorin
Modified: 2019-01-22 17:42 UTC (History)
4 users (show)

Fixed In Version: openconnect-8.02-2.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-22 17:42:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Viktorin 2019-01-07 14:47:24 UTC
Since 8.00, openconnect depends on `python2`, which is deprecated [0] in Rawhide. No new dependencies on it should be added (without a FESCo exception).

Can the dependency be removed?


[0] https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/#_consequences_of_a_package_being_deprecated

Comment 1 David Woodhouse 2019-01-07 22:54:37 UTC
It's always depended on python2; this isn't a new dependency. It was only changed to be explicit in the specfile because the RPM build for 8.00 was giving me warnings (or errors; I forget which).

This is only for building the HTML documentation. It's probably simple for someone with a bit more clue; I'd be very grateful for any assistance.

The offending code is http://git.infradead.org/users/dwmw2/openconnect.git/blob/HEAD:/www/html.py

Comment 2 Petr Viktorin 2019-01-08 09:56:10 UTC
Using python2 at build-time is fine for now. The docs generator doesn't look hard to port, we'll look at it as time permits. (Please keep the bug open, or file a new one, to track this.)


But the main issue is a runtime dependency.

There is a new script with the /usr/bin/python2 shebang: /usr/libexec/openconnect/tncc-wrapper.py
This makes rpmbuild automatically add python2 as a runtime dependency -- without it the script wouldn't be very useful.
If it's not meant to be executed, please either remove the file or clear its executable bit.


Actually, what's the purpose of the file? It looks like it downloads and runs some binary blob (with Java, which is not listed in dependencies either).

Comment 3 David Woodhouse 2019-01-08 15:30:42 UTC
Ah, right. This is the "host checker" functionality: http://www.infradead.org/openconnect/tncc.html

Some VPN servers want the client to download a 'trojan' which performs some kind of security/configuration checking and uploads the results to the server, before allowing them to connect to the VPN.

The Juniper TNCC one is complex enough that I think the best option is to just drop it from the package. People are going to have to jump through hoops to make it work anyway, and they can download it for themselves.

Comment 4 Petr Viktorin 2019-01-09 13:30:09 UTC
That sounds quite scary, and not what I would expect in Fedora. The Packaging guidelines say: 

> Software which downloads code bundles from the internet in order to be functional or useful is not acceptable for inclusion in Fedora (regardless of whether the downloaded code would be acceptable to be packaged in Fedora as a proper dependency).https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#_packages_which_are_not_useful_without_external_code


How intrusive would it be to remove them all?

Comment 5 Fedora Update System 2019-01-18 13:12:53 UTC
openconnect-8.02-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-41d9f2edc1

Comment 6 Fedora Update System 2019-01-18 13:25:30 UTC
openconnect-8.02-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-1294cc28b4

Comment 7 Fedora Update System 2019-01-18 19:03:03 UTC
openconnect-8.02-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-1294cc28b4

Comment 8 Fedora Update System 2019-01-22 17:42:22 UTC
openconnect-8.02-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.