Bug 1632277

Summary: glusterfs-geo-replication requires Python 2 and Python 3 at the same time
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: glusterfsAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anoopcs, humble.devassy, jonathansteffan, kkeithle, matthias, ndevos, ramkrsna
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-5.0-0.3.rc0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-25 11:00:09 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, 1340802    

Description Miro Hrončok 2018-09-24 14:24:54 UTC
$ dnf repoquery --repo=rawhide --requires glusterfs-geo-replication | grep python
/usr/bin/python2
python3
python3-gluster = 5.0-0.1.rc0.fc30
python3-prettytable


Is this desirable? It's shebangs:

$ rg python2
usr/libexec/glusterfs/peer_mountbroker.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/peer_mountbroker
1:#!/usr/bin/python2

usr/libexec/glusterfs/peer_georep-sshkey.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/gfind_missing_files/gfid_to_path.py
1:#!/usr/bin/python2

usr/share/glusterfs/scripts/schedule_georep.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/python/syncdaemon/conf.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/python/syncdaemon/changelogagent.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/python/syncdaemon/gsyncd.py
1:#!/usr/bin/python2

usr/libexec/glusterfs/python/syncdaemon/gsyncdstatus.py
1:#!/usr/bin/python2


Happens on:

glusterfs-geo-replication-0:5.0-0.1.rc0.fc30
glusterfs-geo-replication-0:5.0-0.2.rc0.fc30

Comment 1 Kaleb KEITHLEY 2018-09-24 16:37:48 UTC
It's probably because there's no /usr/bin/python3 in the mock job that creates the SRPM, so the shebangs get wacked from python3 to python2 by BuildSRPM job.

Comment 2 Miro Hrončok 2018-09-24 16:44:15 UTC
Just curious. What part of BuildSRPM changes shebangs?