Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431838 - kde-base/kig-4.9.0 does not find boost-python
Summary: kde-base/kig-4.9.0 does not find boost-python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 430804
  Show dependency tree
 
Reported: 2012-08-18 10:38 UTC by Franz Trischberger
Modified: 2012-09-04 18:58 UTC (History)
0 users

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


Attachments
Modified patch to enable optional scripting features (python.patch,14.62 KB, text/plain)
2012-08-31 11:53 UTC, Franz Trischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2012-08-18 10:38:42 UTC
In consequence USE="kig-scripting" has no effect - scripting is never eactivated.
The problem is, that they hardcode some boost_python-libnames in their FindBoostPython.cmake-file, none of them matching one installed by Gentoo:

set(PYTHON_LIBS "boost_python-gcc-mt;boost_python-mt;boost_python-gcc-mt-1_33;boost_python-gcc-mt-1_33_1;boost_python;boost_python-gcc-mt-1_32;boost_python")

A sed like
sed -ie 's/\(set(PYTHON_LIBS \)"\(.*\)"/\1"boost_python-2.7-1_49"/' cmake/FindBoostPython.cmake
fixes the issue, of course using gentoo-tools instead of hardcoding another name ;) (I don't know how to do this, as there is no boost.eclass - eselect probably?"

I am sure kig <4.9.0 is affected, too.
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2012-08-30 14:43:09 UTC
Made a patch applied to kde-base/kig-4.9.49.9999 and kde-base/kig-9999. Please test and review
Comment 2 Franz Trischberger 2012-08-31 11:53:12 UTC
Created attachment 322633 [details]
Modified patch to enable optional scripting features

The patch from the overlay made kig compile and build files from scripting-subdir.
When following
http://docs.kde.org/stable/en/kdeedu/kig/scripting.html
the mentioned action in the menu was not present. That was because the "KIG_ENABLE_PYTHON_SCRIPTING" was not set. The modified patch sets it and now the option is available and the example script works.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2012-08-31 14:13:24 UTC
(In reply to comment #2)
> Created attachment 322633 [details]
> Modified patch to enable optional scripting features
> 
> The patch from the overlay made kig compile and build files from
> scripting-subdir.
> When following
> http://docs.kde.org/stable/en/kdeedu/kig/scripting.html
> the mentioned action in the menu was not present. That was because the
> "KIG_ENABLE_PYTHON_SCRIPTING" was not set. The modified patch sets it and
> now the option is available and the example script works.

Thanks for testing, updated the patch according your changes.
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2012-09-04 18:58:37 UTC
Thanks all. KDE SC 4.9.1 is now in tree. Sync in some hours to get the change.

+  04 Sep 2012; Johannes Huber <johu@gentoo.org>
+  +files/kig-4.9.0-boostpython.patch, +kig-4.9.1.ebuild, metadata.xml:
+  Version bump KDE SC 4.9.1