Merge lp:~goelkunal/kdelibs/debian into lp:~kubuntu-packagers/kubuntu-packaging/kdelibs

Proposed by KunalGoel
Status: Merged
Merge reported by: Jonathan Riddell
Merged at revision: not available
Proposed branch: lp:~goelkunal/kdelibs/debian
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/kdelibs
Diff against target: 132 lines (+112/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff (+104/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~goelkunal/kdelibs/debian
Reviewer Review Type Date Requested Status
Jonathan Riddell Approve
Steve Langasek Approve
Review via email: mp+51994@code.launchpad.net

Description of the change

remove direct OpenGL dependency for libplasma

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

The patch itself seems to be straightforward, but why are the glClearColor(), glClear() calls not needed here? Presumably they were added for a reason, and we should be sure that reason no longer applies before making such a change.

I see that these API calls are also part of GLES; so if these calls need to be kept, an alternative would be for plasma to select either GL or GLES as needed.

review: Needs Information
Revision history for this message
KunalGoel (goelkunal) wrote :

The glClearColor and glClear were used in GLApplet, which is targeted to write plasmoid using OpenGL, but currently the GLApplet is not used anymore in KDE, and there is plan to re-write this part in the future for libplasma2.

For more details please check: https://git.reviewboard.kde.org/r/100705/

Revision history for this message
Steve Langasek (vorlon) wrote :

As the upstream discussion shows, even for applets using the GLApplet interface (of which there appear to not be any), these calls should not be needed here. So this change is needed on ARM, and has no adverse affects elsewhere.

review: Approve
Revision history for this message
Jonathan Riddell (jr) wrote :

Merged by Harald

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-02-27 13:12:07 +0000
3+++ debian/changelog 2011-03-03 01:11:16 +0000
4@@ -1,3 +1,10 @@
5+kde4libs (4:4.6.1-0ubuntu2) natty; urgency=low
6+
7+ * Add remove-direct-OpenGL-dependency-for-libplasma.diff
8+ to remove direct OpenGL dependency for libplasma
9+
10+ -- Kunal Goel <kunal.goel@linaro.org> Wed, 02 Mar 2011 22:37:31 +0530
11+
12 kde4libs (4:4.6.1-0ubuntu1) UNRELEASED; urgency=low
13
14 * New upstream release
15
16=== added file 'debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff'
17--- debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff 1970-01-01 00:00:00 +0000
18+++ debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff 2011-03-03 01:11:16 +0000
19@@ -0,0 +1,104 @@
20+Description: Remove OpenGL dependency
21+ Remove direct OpenGL dependency for libplasma.
22+Author: Kunal Goel <kunal.goel@linaro.org>
23+Last-Update: 2011-03-01
24+
25+--- kde4libs-4.6.1.orig/CMakeLists.txt
26++++ kde4libs-4.6.1/CMakeLists.txt
27+@@ -99,9 +99,6 @@ macro_log_feature(OPENSSL_FOUND "OpenSSL
28+ macro_optional_find_package(Libintl)
29+ macro_log_feature(LIBINTL_FOUND "Libintl" "Support for multiple languages" "http://www.gnu.org/software/gettext" FALSE "" "STRONGLY RECOMMENDED: Enables KDE to be available in many different languages")
30+
31+-macro_optional_find_package(OpenGL)
32+-macro_log_feature(OPENGL_FOUND "OpenGL" "Support for hardware-accelerated graphics" "http://mesa3d.sourceforge.net" FALSE "" "STRONGLY RECOMMENDED: The 3D hardware acceleration available through the OpenGL API is used in applications ranging from graphics and modellers to screensavers and video players")
33+-
34+ set(SOPRANO_MIN_VERSION "2.5.60")
35+ macro_optional_find_package(Soprano ${SOPRANO_MIN_VERSION} COMPONENTS PLUGIN_RAPTORPARSER PLUGIN_REDLANDBACKEND)
36+ macro_log_feature(SOPRANO_FOUND "Soprano" "Support for the Nepomuk semantic desktop system" "http://soprano.sourceforge.net" FALSE "${SOPRANO_MIN_VERSION}" "")
37+--- kde4libs-4.6.1.orig/includes/CMakeLists.txt
38++++ kde4libs-4.6.1/includes/CMakeLists.txt
39+@@ -1148,11 +1148,11 @@ install(FILES
40+ Plasma/VideoWidget
41+ DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
42+
43+-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
44++if(QT_QTOPENGL_FOUND)
45+ install(FILES
46+ Plasma/GLApplet
47+ DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
48+-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
49++endif(QT_QTOPENGL_FOUND)
50+
51+ if(NOT KDE_NO_DEPRECATED)
52+ install( FILES
53+--- kde4libs-4.6.1.orig/plasma/glapplet.cpp
54++++ kde4libs-4.6.1/plasma/glapplet.cpp
55+@@ -188,10 +188,6 @@ void GLApplet::paintInterface(QPainter *
56+ }
57+ d->pbuf->makeCurrent();
58+
59+- // handle background filling
60+- glClearColor(0, 0, 0, 0);
61+- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
62+-
63+ QMatrix m = painter->worldMatrix();
64+ QRect deviceRect = m.mapRect(QRect(QPoint(23, 25), boundingRect().size().toSize()));
65+ d->updateGlSize(deviceRect.size());
66+--- kde4libs-4.6.1.orig/plasma/CMakeLists.txt
67++++ kde4libs-4.6.1/plasma/CMakeLists.txt
68+@@ -46,13 +46,6 @@ if(QCA2_FOUND)
69+ endif(QCA2_FOUND)
70+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h)
71+
72+-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
73+- # libGL needs dlopen() and friends from the dl library
74+- find_library(DL_LIBRARY dl)
75+- mark_as_advanced(DL_LIBRARY)
76+- include_directories(${OPENGL_INCLUDE_DIR})
77+-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
78+-
79+ add_subdirectory(tests)
80+ add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
81+
82+@@ -231,12 +224,12 @@ kde4_add_ui_files(plasma_LIB_SRCS
83+ # TEST_INCLUDES
84+ #)
85+
86+-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
87++if(QT_QTOPENGL_FOUND)
88+ message(STATUS "Adding support for OpenGL applets to libplasma")
89+ set(plasma_LIB_SRCS
90+ ${plasma_LIB_SRCS}
91+ glapplet.cpp)
92+-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
93++endif(QT_QTOPENGL_FOUND)
94+
95+ if (PHONON_FOUND)
96+ message(STATUS "Adding support for Phonon to libplasma")
97+@@ -271,9 +264,9 @@ if(DL_LIBRARY)
98+ target_link_libraries(plasma ${DL_LIBRARY})
99+ endif(DL_LIBRARY)
100+
101+-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
102+- target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
103+-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
104++if(QT_QTOPENGL_FOUND)
105++ target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY})
106++endif(QT_QTOPENGL_FOUND)
107+
108+ target_link_libraries(plasma LINK_INTERFACE_LIBRARIES kdeui kdecore ${QT_QTGUI_LIBRARY})
109+
110+@@ -354,11 +347,11 @@ if(NOT KDE_NO_DEPRECATED)
111+ endif(NOT KDE_NO_DEPRECATED)
112+
113+
114+-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
115++if(QT_QTOPENGL_FOUND)
116+ set(plasma_LIB_INCLUDES
117+ ${plasma_LIB_INCLUDES}
118+ glapplet.h)
119+-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
120++endif(QT_QTOPENGL_FOUND)
121+
122+ install(FILES
123+ ${plasma_LIB_INCLUDES}
124
125=== modified file 'debian/patches/series'
126--- debian/patches/series 2011-02-21 15:28:25 +0000
127+++ debian/patches/series 2011-03-03 01:11:16 +0000
128@@ -27,3 +27,4 @@
129 security_01_CVE-2009-2702.diff
130 kubuntu_77_ksambashare.diff
131 kubuntu_78_hide_old_file_share.diff
132+remove-direct-OpenGL-dependency-for-libplasma.diff

Subscribers

People subscribed via source and target branches

to all changes: