Bug 1422933

Summary: python-junitxml: python-junitxml-0.7-9 requires both Python 2 and Python 3
Product: [Fedora] Fedora Reporter: Iryna Shcherbina <ishcherb>
Component: python-junitxmlAssignee: Steve Linabery <slinaber>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, slinaber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-junitxml-0.7-10.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-27 15:54:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1285816    
Attachments:
Description Flags
Patch to fix dragging in Python 3 in python-junitxml none

Description Iryna Shcherbina 2017-02-16 15:07:16 UTC
The python-junitxml-0.7-9 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: in this case the Python 3 executable overrides the Python 2 one during installation. Also, python3-junitxml is missing the executable altogether.

Please remove the stray dependency, and add an executable to the Python 3 subpackage. There is a section on `Moving the Executables and Making Symlinks` in the Python RPM Porting Guide [0] which covers this issue, and an example of a ported spec file [1].

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] https://python-rpm-porting.readthedocs.io/en/latest/tools.html#moving-the-executables-and-making-symlinks
[1] https://python-rpm-porting.readthedocs.io/en/latest/tools.html#ported-rpm-spec-file

Comment 1 Iryna Shcherbina 2017-02-16 16:25:50 UTC
Created attachment 1250904 [details]
Patch to fix dragging in Python 3 in python-junitxml

Please see the change attached that should fix the issue.

Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=17900361