Fedora Account System
Red Hat Associate
Red Hat Customer
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.
ascend-0.9.10-1.20151003svn3100.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-3da813ef4b
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
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
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.
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.