amanda-3.3.6-9.fc23 fails to build in F23: /usr/lib64/ccache/swig -perl5 -proxy -DSWIG_TYPE_TABLE=SWIG_TYPES_Amanda -I. -o Amanda/Xfer.c ../perl/Amanda/Xfer.swg || { rm -f Amanda/Xfer.c; false; } /usr/bin/mkdir -p `dirname Amanda/XferServer.c` /usr/lib64/ccache/swig -perl5 -proxy -DSWIG_TYPE_TABLE=SWIG_TYPES_Amanda -I. -o Amanda/XferServer.c ../perl/Amanda/XferServer.swg || { rm -f Amanda/XferServer.c; false; } ../config.status --file=Amanda/Paths.pm:Amanda/Paths.pm.in ../perl/Amanda/Util.swg:473: Warning 521: Illegal destructor name file_lock::~locked_data(). Ignored. ../config.status --file=Amanda/Constants.pm:Amanda/Constants.pm.in ../perl/Amanda/Xfer.swg:536: Error: Unknown SWIG preprocessor directive: The (if this is a block of target language code, delimit it with %{ and %}) ../perl/Amanda/Xfer.swg:537: Error: Unknown SWIG preprocessor directive: just (if this is a block of target language code, delimit it with %{ and %}) ../perl/Amanda/Xfer.swg:546: Error: Unknown SWIG preprocessor directive: overload (if this is a block of target language code, delimit it with %{ and %}) [...] The difference between working and failing build root is: swig 3.0.2-2.fc22 > 3.0.5-1.fc22 qt-settings 21-2.fc22 > 22-1.fc22.1
Created attachment 995550 [details] Fix perlcode blocks for SWIG 3.0.3
The issue is cause due to changes in SWIG 3.0.3 Affected Fedora 21 and higher. 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. %{ and %} should be also used for %perlcode block
The issue is fixed by upstream (http://sourceforge.net/p/amanda/code/6113/tree/) I am going to fix it in Fedora 22 too.
scm-commit Rawhide: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150223/1524506.html scm-commit F22: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150223/1524514.html
amanda-3.3.6-10.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/amanda-3.3.6-10.fc22
scm-commit for F21: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150223/1524901.html
amanda-3.3.6-6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/amanda-3.3.6-6.fc21
Package amanda-3.3.6-10.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing amanda-3.3.6-10.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-2773/amanda-3.3.6-10.fc22 then log in and leave karma (feedback).
amanda-3.3.6-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
amanda-3.3.6-10.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.