Bug 1196699 - ascend: FTBFS with SWIG 3.0.5
Summary: ascend: FTBFS with SWIG 3.0.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ascend
Version: 21
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: 2015-02-26 14:50 UTC by Jitka Plesnikova
Modified: 2015-11-01 21:51 UTC (History)
1 user (show)

Fixed In Version: ascend-0.9.10-1.20151003svn3100.fc23 ascend-0.9.10-1.20151003svn3100.fc22
Clone Of:
Environment:
Last Closed: 2015-11-01 02:34:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fixed %pythoncode blocks (5.58 KB, patch)
2015-02-26 14:50 UTC, Jitka Plesnikova
no flags Details | Diff

Description Jitka Plesnikova 2015-02-26 14:50:48 UTC
Created attachment 995652 [details]
Fixed %pythoncode blocks

The build failed with following error:

ascxx/ascpy.i:318: Erg++ -o ascxx/testipopt.o -c -DHAVE_GCCVISIBILITY -I. -I/usr/include/python2.7 ascxx/testipopt.cpp
ror: Unknown SWIG preprocessor directive: print (if this is a block of target language code, delimit it with %{ and %})
ascxx/ascpy.i:321: Error: Unknown SWIG preprocessor directive: no (if this is a block of target language code, delimit it with %{ and %})
ascxx/ascpy.i:446: Error: Unknown SWIG preprocessor directive: print (if this is a block of target language code, delimit it with %{ and %})
ascxx/ascpy.i:455: Error: Unknown SWIG preprocessor directive: for (if this is a block of target language code, delimit it with %{ and %})
ascxx/ascpy.i:473: Error: Unknown SWIG preprocessor directive: raise (if this is a block of target language code, delimit it with %{ and %})
ascxx/ascpy.i:500: Error: Unknown SWIG preprocessor directive: getReporter (if this is a block of target language code, delimit it with %{ and %})
ascxx/plot.i:42: Error: Unknown SWIG preprocessor directive: only (if this is a block of target language code, delimit it with %{ and %})

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

The issue is cause due to changes in SWIG 3.0.3.
Fedora 21 and higher are affected. 

The attached patch should fix the issue (prepared for rawhide)


Additional info:
From SWIG documentation 
http://www.swig.org/Doc3.0/SWIGDocumentation.html#Python_nn42

When using %pythoncode and %pythonbegin you generally want to make sure that the block is delimited by %{ and %}. If you delimit it with { and } then any lines with a leading # will be handled by SWIG as preprocessor directives, when you probably meant them as Python comments. Prior to SWIG 3.0.3, invalid preprocessor directives were silently ignored, so generally using the wrong delimiters resulted in such comments not appearing in the generated output (though a comment starting with a valid preprocessor directive could cause problems, for example: # error handling). SWIG 3.0.3 and later report an error for invalid preprocessor directives, so you may have to update existing interface files to delimit blocks of Python code correctly.

Comment 1 Fedora Update System 2015-10-18 15:21:08 UTC
ascend-0.9.10-1.20151003svn3100.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3da813ef4b

Comment 2 Fedora Update System 2015-10-18 19:53:10 UTC
ascend-0.9.10-1.20151003svn3100.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update ascend'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-6bfddc9f16

Comment 3 Fedora Update System 2015-10-19 05:20:04 UTC
ascend-0.9.10-1.20151003svn3100.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update ascend'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-3da813ef4b

Comment 4 Fedora Update System 2015-11-01 02:34:23 UTC
ascend-0.9.10-1.20151003svn3100.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-11-01 21:51:21 UTC
ascend-0.9.10-1.20151003svn3100.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.