Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356871 - net-libs/ldns-1.6.8 does not compile with dev-lang/swig-2.0.2
Summary: net-libs/ldns-1.6.8 does not compile with dev-lang/swig-2.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 17:14 UTC by Chris Smith
Modified: 2011-03-03 04:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix ldns.i (ldns.i.patch,588 bytes, patch)
2011-02-28 17:15 UTC, Chris Smith
Details | Diff
ldns-1.6.8.ebuild patch (ldns-1.6.8.ebuild.patch,515 bytes, patch)
2011-02-28 17:16 UTC, Chris Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2011-02-28 17:14:09 UTC
net-libs/ldns-1.6.8 does not compile with dev-lang/swig-2.0.2

Reproducible: Always

Actual Results:  
cat ./ldns/*.h | ./doc/doxyparse.pl -m ./doc/function_manpages 2>&1 | \
       grep -v ^doxygen | grep -v ^cat  > doc/ldns_manpages
/usr/bin/swig -python -o contrib/python/ldns_wrapper.c -I.
-DHAVE_CONFIG_H -I/usr/include/python2.7 contrib/python/ldns.i
contrib/python/ldns.i:117: Error: Syntax error in input(1).


will attach patches (emulates upstream fix in trunk)
Comment 1 Chris Smith 2011-02-28 17:15:21 UTC
Created attachment 264185 [details, diff]
patch to fix ldns.i

removes some comments that swig-2.0.2 doesn't like
Comment 2 Chris Smith 2011-02-28 17:16:18 UTC
Created attachment 264187 [details, diff]
ldns-1.6.8.ebuild patch

patch to the ebuild to apply the ldns.i patch
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-28 18:33:45 UTC
Can you provide a link to the upstream patch?
Comment 4 Chris Smith 2011-02-28 18:43:19 UTC
Here's a link to the revised ldns.i in trunk (to eventually be 1.6.9):
http://www.nlnetlabs.nl/svn/ldns/trunk/contrib/python/ldns.i
Was updated in svn revision 3441.

My patch only removes the comments that cause swig-2.0.2 to croak and does not apply any other changes that exist between the the 1.6.8 version and trunk. Essentially the same diff as one would find in ldns.i between svn 3440 and svn 3441.
Comment 5 Stefan G. Weichinger 2011-03-01 20:07:17 UTC
positive feedback: applied patch, works for me. thanks.
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2011-03-03 04:47:09 UTC
in cvs. thanks.