Bug 1196718

Summary: pybox2d: FTBFS with SWIG 3.0.5
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: pybox2dAssignee: Peter Robinson <pbrobinson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: pbrobinson, sebastian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pybox2d-2.0.2b2-13.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 00:01:26 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:
Attachments:
Description Flags
Fix comments for SWIG 3.0.5 none

Description Jitka Plesnikova 2015-02-26 15:21:38 UTC
Created attachment 995672 [details]
Fix comments for SWIG 3.0.5

The build failed with following error:

Box2D/Box2D_pickling.i:545: Error: Unknown SWIG preprocessor directive: These (if this is a block of target language code, delimit it with %{ and %})
Box2D/Box2D_pickling.i:546: Error: Unknown SWIG preprocessor directive: but (if this is a block of target language code, delimit it with %{ and %})
Box2D/Box2D_pickling.i:547: Error: Unknown SWIG preprocessor directive: execution (if this is a block of target language code, delimit it with %{ and %})

https://koji.fedoraproject.org/koji/taskinfo?taskID=9082032

The comments in the files starts with #, but such comments are not allowed  outside of %pythoncode/%perlcode block. Otherwise, these comments are handled by preprocessor as a macro.

The issue was previously ignored, but now it is reported as error.

SWIG allows C++-style comments. So, to fix the issue,  the lines which start with # but which aren't preprocessor statements should be changed. 

I created patch and it fixed the build issue for me in rawhide.

Fedora 21 and higher are affected.

Comment 1 Fedora Update System 2015-06-18 09:07:12 UTC
pybox2d-2.0.2b2-13.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/pybox2d-2.0.2b2-13.fc22

Comment 2 Fedora Update System 2015-06-18 09:50:21 UTC
pybox2d-2.0.2b2-13.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/pybox2d-2.0.2b2-13.fc21

Comment 3 Fedora Update System 2015-06-18 09:50:38 UTC
pybox2d-2.0.2b2-11.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pybox2d-2.0.2b2-11.fc20

Comment 4 Fedora Update System 2015-06-21 00:12:20 UTC
Package pybox2d-2.0.2b2-13.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pybox2d-2.0.2b2-13.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10268/pybox2d-2.0.2b2-13.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-06-30 00:01:26 UTC
pybox2d-2.0.2b2-13.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2015-06-30 00:16:52 UTC
pybox2d-2.0.2b2-13.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.