Bug 1550574

Summary: PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn changes exit status to 1
Product: [Fedora] Fedora Reporter: Tom Hughes <tom>
Component: python2Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bkabrda, cstratak, dmalcolm, mcyprian, mhroncok, pviktori, rkuska, tomspur, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:53:23 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:

Description Tom Hughes 2018-03-01 13:47:24 UTC
Description of problem:

When PYTHON_DISALLOW_AMBIGUOUS_VERSION is set to warn the exit status of python changes to 1 which can sometimes cause builds to fail.

The spec at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Specification suggests than warn will only print a warning and only 1 change the exit status.

Version-Release number of selected component (if applicable):

python2-2.7.14-11.fc28.x86_64

Comment 1 Tom Hughes 2018-03-01 13:53:23 UTC
This is nonsense. The actual problem I think is that gyp inspects stderr and aborts if it sees output there.