Bug 1730215

Summary: mchange-commons: FTBFS in Fedora rawhide: Expects /usr/bin/python to be Python 2
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: mchange-commonsAssignee: Stewardship SIG <stewardship-sig>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: decathorpe, mmraka, pviktori, stewardship-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/mchange-commons
Whiteboard:
Fixed In Version: mchange-commons-0.2.11-9.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-13 21:18:46 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: 1700324, 1729593    

Description Miro Hrončok 2019-07-16 08:03:49 UTC
Description of problem:
Package mchange-commons fails to build from source in Fedora rawhide.

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NzY3ol
+ umask 022
+ cd /builddir/build/BUILD
+ cd mchange-commons-java-mchange-commons-java-0.2.11
+ ./climbing-nemesis.py com.typesafe config any ivy-local --version 1.2.1
BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "./climbing-nemesis.py", line 19, in <module>
BUILDSTDERR:     import StringIO
BUILDSTDERR: ModuleNotFoundError: No module named 'StringIO'
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.NzY3ol (%build)
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.NzY3ol (%build)

This is a result of https://fedoraproject.org/wiki/Changes/Python_means_Python3

The file should be executed by Python 2. Note that the package will eventually need to be retired or fixed before https://fedoraproject.org/wiki/Changes/RetirePython2

Version-Release number of selected component (if applicable):
0.2.11-8.fc31

Steps to Reproduce:
koji build --scratch f31 mchange-commons-0.2.11-8.fc31.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/mchange-commons

Comment 2 Petr Viktorin (pviktori) 2019-07-16 10:06:30 UTC
Or, update to the upstream version of https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py instead. That supports Python 3, but has other changes as well.

Comment 3 Ben Cotton 2019-08-13 17:12:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 19:01:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Fabio Valentini 2019-08-13 21:18:46 UTC
Fixed for f31 and rawhide.