Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 327781

Summary: dev-lang/swig-2.0.3 generates code incompatible with Python 3.2 (PyCObject)
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: [OLD] DevelopmentAssignee: Panagiotis Christopoulos (RETIRED) <pchrist>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, rose, scheme
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292402    

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-11 11:28:13 UTC
dev-lang/swig-2.0.0 generates code, which uses PyCObject_*() functions, which are deprecated in Python 3.1 and removed in Python 3.2.
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-07-11 11:32:48 UTC
This is upstream, right? Arfrever, can we do something from our side?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-11 11:34:25 UTC
This problem should be reported to upstream, so that they fix it before release of Python 3.2.
Comment 3 Cyprien Nicolas (fulax) 2010-10-31 08:39:12 UTC
Two upstream bugs are currently opened about that issue, patches were submitted.

http://sourceforge.net/tracker/?func=detail&aid=3047039&group_id=1645&atid=301645
http://sourceforge.net/tracker/?func=detail&aid=3057804&group_id=1645&atid=101645
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-02-26 14:22:34 UTC
(In reply to comment #0)
> dev-lang/swig-2.0.0 generates code, which uses PyCObject_*() functions, which
> are deprecated in Python 3.1 and removed in Python 3.2.
> 

I just bumped swig to 2.0.2 , can you check if it's fixed in the new version?

Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-14 16:49:09 UTC
http://swig.svn.sourceforge.net/viewvc/swig?view=revision&revision=12620
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-14 19:28:12 UTC
The patch doesn't apply cleanly. Backporting of the following revisions allow to apply this patch (r12620):
r12593
r12596
r12597
r12598
r12600
r12602
r12604
r12605
r12606
r12607
r12608
r12609
r12610
r12611
r12612
r12613
r12614
r12615
r12618
r12619

Size of the cumulative patch is about 215 KiB.
It might be better to add a dev-lang/swig-2.0.4_pre* snapshot.
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-04-14 22:21:11 UTC
01:17 <@pchrist> [Arfrever]: plz, check this snapshot I just took, and tell me if if the python issue is fixed there --> http://dev.gentoo.org/~pchrist/distfiles/swig-2.0.4_pre20110415.tar.bz2

(copy-paste from IRC)
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-04-28 19:46:30 UTC
Fixed by upstream in dev-lang/swig-2.0.4_pre12643.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-15 16:04:28 UTC
*** Bug 367403 has been marked as a duplicate of this bug. ***