Bug 1550574 - PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn changes exit status to 1
Summary: PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn changes exit status to 1
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-01 13:47 UTC by Tom Hughes
Modified: 2018-03-01 13:53 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:53:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.