Bug 221501 - build python plasma requires sip/pyqt4/pykde4 which isn't required in reality
Summary: build python plasma requires sip/pyqt4/pykde4 which isn't required in reality
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: scriptengines (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 10:56 UTC by Arkadiusz Miskiewicz
Modified: 2012-05-01 15:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadiusz Miskiewicz 2010-01-06 10:56:03 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Unlisted Binary Package


To get python plasma stuff built and installed you don't need python/sip/pyqt4/pykde4! These are only needed at runtime and NOT build time.

This patch fixes this weirdness:

--- kdebase-workspace-4.3.4/CMakeLists.txt~     2009-11-27 14:01:58.000000000 +0100
+++ kdebase-workspace-4.3.4/CMakeLists.txt      2010-01-05 14:23:22.615963105 +0100
@@ -59,10 +59,7 @@
 endif(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")

 macro_optional_find_package(PyKDE4)
-set(PythonSupport_FOUND FALSE)
-if(PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
-  set(PythonSupport_FOUND TRUE)
-endif(PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
+set(PythonSupport_FOUND TRUE)

 macro_log_feature(PythonSupport_FOUND "Python" "KDE Python support" "http://techbase.kde.org/Development/Languages/Python" FALSE "" "Needed to build plasma scriptengine for Python")
 #### End Python support ####
Comment 1 Beat Wolf 2010-01-06 11:52:48 UTC
submitting this patch to the plasma mailing list is probably more effective..
Comment 2 Beat Wolf 2010-05-17 11:59:07 UTC
Is this commited, what is the status of this patch?
Comment 3 Nicolas L. 2010-06-07 23:39:50 UTC
no this have not been commited yet
this seems OK

can some plasma dev give their opinion please ?
Comment 4 Aaron J. Seigo 2010-06-07 23:55:30 UTC
should be fine; just remove the macro_log_feature line as well since it isn't being checked for anymore.
Comment 5 Nicolas L. 2010-06-08 00:35:39 UTC
Just to be sure, i can commit this ?

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (révision 1132806)
+++ CMakeLists.txt      (copie de travail)
@@ -60,12 +60,8 @@
 endif(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")
 
 macro_optional_find_package(PyKDE4)
-set(PythonSupport_FOUND FALSE)
-if(PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
-  set(PythonSupport_FOUND TRUE)
-endif(PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
+set(PythonSupport_FOUND TRUE)
 
-macro_log_feature(PythonSupport_FOUND "Python" "KDE Python support" "http://techbase.kde.org/Development/Languages/Python" FALSE "" "Needed to build plasma scriptengine for Python")
 #### End Python support ####
 
 include(MacroLibrary)
Comment 6 Aaron J. Seigo 2010-06-08 01:19:19 UTC
yes
Comment 7 Nicolas L. 2010-06-08 09:19:38 UTC
SVN commit 1135756 by nlecureuil:

Remove unneeded deps at build time
BUG: 221501


 M  +0 -4      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1135756
Comment 8 Nicolas L. 2010-06-08 09:37:54 UTC
SVN commit 1135770 by nlecureuil:

Forwardport commit 1135756
CCBUG: 221501


 M  +0 -4      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1135770
Comment 9 Michael Jansen 2012-05-01 15:17:19 UTC
Git commit 21ba979f72d70d33d6775831512bb8820dab82a3 by Michael Jansen.
Committed on 01/05/2012 at 17:16.
Pushed by mjansen into branch 'master'.

Remove checks for sip, pyqt4 and pykde4. They are unneeded.

Correct fix for the given bug.
REVIEW: 104619

M  +2    -20   CMakeLists.txt
M  +2    -2    plasma/generic/scriptengines/CMakeLists.txt

http://commits.kde.org/kde-workspace/21ba979f72d70d33d6775831512bb8820dab82a3