Bug 691513

Summary: %include <...> incorrectly expands macros
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: swigAssignee: Adam Tkac <atkac>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: atkac, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: swig-2.0.2-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-05 21:41:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 618500    

Description Miloslav Trmač 2011-03-28 17:53:57 UTC
Description of problem:
swig-2.0.2 has started expanding macros in include statements for http://sourceforge.net/tracker/?func=detail&aid=1927852&group_id=1645&atid=101645 .

Unfortunately it does not so correctly - it should expand XXX only in
> #include XXX
not
> #include <XXX>
neither
> #include "XXX"


This bug makes it impossible to rebuild m2crypto, which uses
> #define i386 1
> %include <openssl/opensslconf-i386.h>
with swig reporting:
> Error: Unable to find 'openssl/opensslconf-1.h'

Version-Release number of selected component (if applicable):
swig-2.0.2-1.fc15

Comment 1 Adam Tkac 2011-03-29 11:22:33 UTC
This issue is already fixed in upstream.

I backported the patch to swig-2.0.2-2.fc16 and built m2crypto-0.21.1-3.fc16 successfully in koji. I will also submit an update for F15.

Comment 2 Fedora Update System 2011-03-29 11:24:57 UTC
swig-2.0.2-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/swig-2.0.2-2.fc15

Comment 3 Fedora Update System 2011-03-30 02:34:11 UTC
Package swig-2.0.2-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing swig-2.0.2-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/swig-2.0.2-2.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-05 21:41:49 UTC
swig-2.0.2-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.