Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149623 - swig / python-2.5 / amd64
Summary: swig / python-2.5 / amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Chris White (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-09-30 07:44 UTC by Helmut Jarausch
Modified: 2007-01-07 13:50 UTC (History)
1 user (show)

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


Attachments
patch to swig-1.3.29 (swig.diff,876 bytes, patch)
2006-09-30 07:46 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.