Bug 1422897

Summary: gerrymander: gerrymander-1.5-5 requires both Python 2 and Python 3
Product: [Fedora] Fedora Reporter: Iryna Shcherbina <ishcherb>
Component: gerrymanderAssignee: Kashyap Chamarthy <kchamart>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, cstratak, kchamart
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gerrymander-1.5-6.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-27 16:21:14 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 Python 2 dependency none

Description Iryna Shcherbina 2017-02-16 14:02:28 UTC
This package started to require Python 2 starting version 1.5-5 :

$ dnf repoquery --disablerepo=* --enablerepo=rawhide --requires gerrymander
/usr/bin/python2
python3-gerrymander


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 does not override the Python 2 one during installation.

Please remove the stray dependency. There is a section on %install in  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] https://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#install

Comment 1 Iryna Shcherbina 2017-02-16 14:16:44 UTC
Created attachment 1250875 [details]
Patch to fix Python 2 dependency

This simple change should fix it.

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