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

Bug 149623

Summary: swig / python-2.5 / amd64
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: [OLD] Core systemAssignee: Chris White (RETIRED) <chriswhite>
Status: RESOLVED FIXED    
Severity: normal CC: amd64
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 148333    
Attachments: patch to swig-1.3.29

Description Helmut Jarausch 2006-09-30 07:44:06 UTC
Python-2.5 has changed its API by introducing a new typedef 'Py_ssize_t'.
On 64-bits machines this is different from 'int'. This causes failures in all
packages which use SWIG to interface to Python.
The attached tiny patch (taken from SWIG's cvs) fixes this.
But for all packages which use SWIG to interface to Python, the SWIG files
'*.i' need to 'touch' ed, to force the wrapperfiles to be rebuilt.

(Is there an easy way to do this locally? Just unpacking a package in
 /usr/portage/distfiles, 'touch' ing the '*.i' files and packaging again
doesn't work since portage notices any changes - how to fix that?)
Comment 1 Helmut Jarausch 2006-09-30 07:46:22 UTC
Created attachment 98446 [details, diff]
patch to  swig-1.3.29

When switching to Python-2.5, python-updater should me sure that the most
recent version of SWIG is used (e.g. 1.3.29-r2) since all prior versions
are broken with Python-2.5
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2007-01-07 13:50:47 UTC
Fixed in swig-1.3.31.