Bug 1529014 - xboxdrv FTBS: python2/python3 problem?
Summary: xboxdrv FTBS: python2/python3 problem?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xboxdrv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. (sagitter)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-25 23:43 UTC by Colin Macdonald
Modified: 2018-01-16 16:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-09 16:49:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Colin Macdonald 2017-12-25 23:43:25 UTC
On my Fedora 27 system:

$ fedpkg local 

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qbXo2W
+ umask 022
+ cd /home/cbm/fedora/xboxdrv
+ cd /home/cbm/fedora/xboxdrv
+ rm -rf xboxdrv-0.8.8
+ /usr/bin/gzip -dc /home/cbm/fedora/xboxdrv/xboxdrv-0.8.8.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd xboxdrv-0.8.8
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sed -i '1s|/usr/bin/env python|/usr/bin/python2|' examples/responsecurve-generator.py
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1pxW1S
+ umask 022
+ cd /home/cbm/fedora/xboxdrv
+ cd xboxdrv-0.8.8
+ scons CC=gcc CXX=g++ BUILD=custom 'CCFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wl,-z,relro -fPIC -pie -Wl,-z,now' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wl,-z,relro -fPIC -pie -Wl,-z,now' 'CPPFLAGS= -ansi -pedantic' 'LINKFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fPIC -pie -Wl,-z,now'
scons: Reading SConscript files ...
  File "/home/cbm/fedora/xboxdrv/xboxdrv-0.8.8/SConstruct", line 34

    print target

               ^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int target)?

error: Bad exit status from /var/tmp/rpm-tmp.1pxW1S (%build)
    Bad exit status from /var/tmp/rpm-tmp.1pxW1S (%build)


RPM build errors:
Could not execute local: rpmbuild --define '_sourcedir /home/cbm/fedora/xboxdrv' --define '_specdir /home/cbm/fedora/xboxdrv' --define '_builddir /home/cbm/fedora/xboxdrv' --define '_srcrpmdir /home/cbm/fedora/xboxdrv' --define '_rpmdir /home/cbm/fedora/xboxdrv' --define 'dist .fc28' --define 'fedora 28' --eval '%undefine rhel' --define 'fc28 1' --eval '%undefine fc27' -ba /home/cbm/fedora/xboxdrv/xboxdrv.spec | tee .build-0.8.8-6.fc28.log

- - - - - - - - - - - - - - - - - - - - - - - - -

And similarly on rawhide scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=23902617

Looks like some python2 specific code ("print target") is getting run by Python 3?

Comment 1 Antonio T. (sagitter) 2017-12-26 11:19:52 UTC
Update scons to this release please, and try again.
http://copr-fe.cloud.fedoraproject.org/coprs/sagitter/ForTesting/build/691292/

Comment 2 Colin Macdonald 2017-12-27 01:06:23 UTC
Yes!  Locally on my F27 box, uninstalling my system scons and installing that python2-scons package fixed it.

Comment 3 Fedora Update System 2017-12-29 22:29:39 UTC
scons-3.0.1-5.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-9a4c8472e7

Comment 4 Fedora Update System 2017-12-29 22:29:57 UTC
scons-3.0.1-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d2a3899207

Comment 5 Fedora Update System 2017-12-29 22:30:07 UTC
scons-3.0.1-5.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c335e11d7c

Comment 6 Fedora Update System 2017-12-30 19:17:53 UTC
scons-3.0.1-5.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-9a4c8472e7

Comment 7 Fedora Update System 2017-12-30 19:52:25 UTC
scons-3.0.1-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d2a3899207

Comment 8 Fedora Update System 2017-12-30 20:38:17 UTC
scons-3.0.1-5.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c335e11d7c

Comment 9 Fedora Update System 2018-01-09 16:49:22 UTC
scons-3.0.1-5.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2018-01-10 02:03:40 UTC
scons-3.0.1-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2018-01-16 16:05:51 UTC
scons-3.0.1-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


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