[kde-freebsd] deskutils/superkaramba fails to build

Jan Henrik Sylvester me at janh.de
Wed Dec 19 10:41:37 UTC 2012


On 12/19/2012 10:49, Jan Henrik Sylvester wrote:
> A week ago, I was able to build kde4, but after the latest updates, it
> fails in deskutils/superkaramba:
> 
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/karamba.cpp:
> In constructor 'KarambaPython::KarambaPython(const ThemeFile&, bool)':
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/karamba.cpp:362:
> error: 'Py_InitModule' was not declared in this scope
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/karamba.cpp:366:
> error: 'PyString_FromString' was not declared in this scope
> *** [src/CMakeFiles/superkaramba.dir/python/karamba.o] Error code 1
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/meter.cpp:
> In function 'QString PyString2QString(PyObject*)':
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/meter.cpp:95:
> error: 'PyString_CheckExact' was not declared in this scope
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/meter.cpp:96:
> error: 'PyString_AsString' was not declared in this scope
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/meter.cpp:
> In function 'PyObject* QString2PyString(QString)':
> /usr/ports/deskutils/superkaramba/work/superkaramba-4.8.4/src/python/meter.cpp:141:
> error: 'PyString_FromString' was not declared in this scope
> *** [src/CMakeFiles/superkaramba.dir/python/meter.o] Error code 1
> 2 errors
> *** [src/CMakeFiles/superkaramba.dir/all] Error code 2
> 1 error
> *** [all] Error code 2
> 1 error
> *** [do-build] Error code 1

I found it myself: It has nothing to do with the icu update, but with
python-3 having been installed in the meantime. The patch attached does
the same as revision aa6e68c6cddbd2a4fb7df43c635d41aa45607ba6.

With the patch, superkaramba builds and installs, but cmake emits some
non-fatal errors about icu not being present. (I had deleted recursively
everything depending on the old version of icu.)

Cheers,
Jan Henrik
-------------- next part --------------
--- deskutils/superkaramba/files/patch-CMakeLists.txt.orig	1970-01-01 01:00:00.000000000 +0100
+++ deskutils/superkaramba/files/patch-CMakeLists.txt	2012-12-19 11:23:38.000000000 +0100
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2012-01-10 14:19:11.187678000 +0000
++++ CMakeLists.txt	2012-12-19 10:22:18.000000000 +0000
+@@ -20,7 +20,7 @@
+ macro_optional_find_package( QImageBlitz )
+ macro_log_feature( QIMAGEBLITZ_FOUND "QImageBlitz" "An image effects library" "kdesupport" ${IMAGEBLITZ_REQUIRED} "" "Required for building SuperKaramba.")
+ 
+-macro_optional_find_package(PythonLibs)
++macro_optional_find_package(PythonLibs 2)
+ #Laurent doesn't compile for the moment
+ remove_definitions( -DQT_NO_CAST_FROM_ASCII )
+ remove_definitions( -DQT_NO_CAST_TO_ASCII )


More information about the kde-freebsd mailing list