Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392215 - media-gfx/freecad-0.11.3729 with dev-lang/swig-2.0.4-r1 - swigpyrun.inl:35:55: error: invalid conversion from 'void*' to 'PyObject*'
Summary: media-gfx/freecad-0.11.3729 with dev-lang/swig-2.0.4-r1 - swigpyrun.inl:35:55...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-27 22:22 UTC by Alessandro Capogna
Modified: 2012-01-07 16:10 UTC (History)
3 users (show)

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


Attachments
freecad-0.11.3729.log (freecad-0.11.3729.log,274.08 KB, text/plain)
2011-11-27 22:23 UTC, Alessandro Capogna
Details
swig-2.0.4-r1.log (swig-2.0.4-r1.log,5.00 KB, text/plain)
2011-11-27 22:23 UTC, Alessandro Capogna
Details
Disable old pre-generated Swig sources (FreeCAD-remove-old-swig.patch,5.04 KB, patch)
2011-12-24 17:49 UTC, Maciej S. Szmigiero
Details | Diff
Make FreeCAD compatible with Swig 2.0.4+ (FreeCAD-swing-2.0.4.patch,479 bytes, patch)
2011-12-24 17:50 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Capogna 2011-11-27 22:22:22 UTC
it sound like this Bug 357483 . By the way, see attached file for more details

Reproducible: Always
Comment 1 Alessandro Capogna 2011-11-27 22:23:08 UTC
Created attachment 293993 [details]
freecad-0.11.3729.log
Comment 2 Alessandro Capogna 2011-11-27 22:23:28 UTC
Created attachment 293995 [details]
swig-2.0.4-r1.log
Comment 3 Alessandro Capogna 2011-11-28 07:42:12 UTC
yes, it's a swig problem because with dev-lang/swig-1.3.40-r1 i have no problems
Comment 4 Mike Gilbert gentoo-dev 2011-11-30 07:56:32 UTC
Please provide emerge --info.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-04 04:21:01 UTC
(In reply to comment #4)
> Please provide emerge --info.

It's in attachment #293993 [details].
Comment 6 Maciej S. Szmigiero 2011-12-24 17:48:10 UTC
Swig commit http://swig.svn.sourceforge.net/viewvc/swig/trunk/Lib/python/pyrun.swg?r1=12235&r2=12596 has added an extra parameter SWIG_Python_NewPointerObj().
This was released later as swig-2.0.4.

In addition to this, the FreeCAD sources include files which are pre-generated with various old Swig versions. They don't build with changes in a new Swig versions, and are really meant for creating a universal binary package which has to work with various Swig versions.
Therefore, on Gentoo is not a loss to remove these files and use just the newest Swig.

Patches follow.
Comment 7 Maciej S. Szmigiero 2011-12-24 17:49:45 UTC
Created attachment 296875 [details, diff]
Disable old pre-generated Swig sources

This should be applied unconditionally to disable old pre-generated Swig sources.
Comment 8 Maciej S. Szmigiero 2011-12-24 17:50:38 UTC
Created attachment 296877 [details, diff]
Make FreeCAD compatible with Swig 2.0.4+

This should be applied only when Swig 2.0.4+ is installed on the system.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2012-01-05 20:30:20 UTC
(In reply to comment #7)
> Created attachment 296875 [details, diff] [details, diff]
> Disable old pre-generated Swig sources
> 
> This should be applied unconditionally to disable old pre-generated Swig
> sources.

Eww. Talking about code ugliness...

Testing...
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2012-01-07 16:10:36 UTC
Fixed with the bump to media-gfx/freecad-0.12.5284-r2