Bug 1196718 - pybox2d: FTBFS with SWIG 3.0.5
Summary: pybox2d: FTBFS with SWIG 3.0.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pybox2d
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-26 15:21 UTC by Jitka Plesnikova
Modified: 2015-06-30 00:16 UTC (History)
2 users (show)

Fixed In Version: pybox2d-2.0.2b2-13.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-30 00:01:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix comments for SWIG 3.0.5 (701 bytes, patch)
2015-02-26 15:21 UTC, Jitka Plesnikova
no flags Details | Diff

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.


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