By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1922 - tdeutils superkaramba FTBFS with python 3
Summary: tdeutils superkaramba FTBFS with python 3
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdeutils (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: All Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks: 2014
  Show dependency treegraph
 
Reported: 2014-02-09 21:28 CST by David C. Rankin
Modified: 2014-09-27 11:44 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
patch for tdeutils allowing superkaramba to build on python 3.x (13.32 KB, patch)
2014-02-09 21:28 CST, David C. Rankin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David C. Rankin 2014-02-09 21:28:41 CST
Created attachment 1924 [details]
patch for tdeutils allowing superkaramba to build on python 3.x

tdeutils superkaramba fails to build from source if built with python >=3. The patch provided allows superkaramba to build on both python 2.x and python 3.x. The changes that needed to support both versions are:

PyString_CheckExact         ->  PyBytes_CheckExact
PyString_FromString         ->  PyBytes_FromString
PyString_FromStringAndSize  ->  PyBytes_FromStringAndSize
PyInt_FromLong              ->  PyLong_FromLong

The difficult part of the port requiring preprocessor checks surrounds initializing the karamba python module. python 2.x Py_InitModule has been replace with a new initialization scheme in python 3.x involving PyModuleDef and PyModule_Create. The following patch was created with reference to:

http://docs.python.org/3/howto/cporting.html

The patch will need to be verified before being pushed. It builds fine on bleeding-edge arch.
Comment 1 Timothy Pearson 2014-09-27 11:43:43 CDT
Comment on attachment 1924 [details]
patch for tdeutils allowing superkaramba to build on python 3.x

Patch looks sane; superkaramba builds and functions with Python 3.4.

Pushed to GIT in hash 36230c.

Thanks for reporting, and for the patch!