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 1391119 - python-os-testr: python3-os-testr requires both Python 2 and Python 3
Summary: python-os-testr: python3-os-testr requires both Python 2 and Python 3
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-os-testr
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chandan Kumar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3 PY3PATCH-AVAILABLE
TreeView+ depends on / blocked
 
Reported: 2016-11-02 15:31 UTC by Dominika Krejčí
Modified: 2023-09-12 01:11 UTC (History)
6 users (show)

Fixed In Version: python-os-testr-0.8.0-8.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-13 16:42:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to fix pulling Python 2 in python3-os-testr (1.50 KB, application/mbox)
2016-12-07 13:34 UTC, Iryna Shcherbina
no flags Details

Description Dominika Krejčí 2016-11-02 15:31:12 UTC
The python3-os-testr RPM requires both Python 2 and Python 3.

Except in very special circumstances, there is no need for one package
to drag in both Python stacks. Usually, this is a packaging error: for
example, a stray "/usr/bin/python" shebang in a Python 3 package can
introduce a Python 2 dependency.

Please split your package, or remove the stray dependencies.
There is a section on shebangs in the Python RPM Porting Guide [0]
which covers this issue.

It's ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.


If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing this issue!


[0] http://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#are-shebangs-dragging-you-down-to-python-2

Comment 1 Iryna Shcherbina 2016-12-07 13:34:53 UTC
Created attachment 1229058 [details]
Patch to fix pulling Python 2 in python3-os-testr

Hi Chandan,

Please find the change needed to fix Python 2 dependency in python3-os-testr subpackage attached. Could you please review it and do the update?

Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=16787468

Comment 2 Iryna Shcherbina 2017-06-19 08:59:38 UTC
Reopening the issue, as it appeared again after the package update to version 0.8.0 [0]:

$ dnf repoquery --disablerepo=* --enablerepo=rawhide --requires python3-os-testr
...
/usr/bin/python
/usr/bin/python3
...

The patch from Comment 1, which got unapplied in the last update, should fix the issue.


[0] https://src.fedoraproject.org/cgit/rpms/python-os-testr.git/commit/python-os-testr.spec?id=cc9f2860446751950c982d1afd993cd7b66de67a

Comment 3 Jan Kurik 2017-08-15 08:28:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 4 Ben Cotton 2018-11-27 18:32:20 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2018-11-30 17:48:19 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 Miro Hrončok 2018-11-30 18:18:51 UTC
$ dnf repoquery --repo=rawhide --requires python3-os-testr
/usr/bin/python2
/usr/bin/python3
...

Comment 7 Carl George 2018-12-13 03:14:42 UTC
Fix proposed in https://src.fedoraproject.org/rpms/python-os-testr/pull-request/2

Comment 9 Red Hat Bugzilla 2023-09-12 01:11:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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