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
=== modified file 'debian/changelog'
--- debian/changelog 2011-02-27 13:12:07 +0000
+++ debian/changelog 2011-03-03 01:11:16 +0000
@@ -1,3 +1,10 @@
1kde4libs (4:4.6.1-0ubuntu2) natty; urgency=low
2
3 * Add remove-direct-OpenGL-dependency-for-libplasma.diff
4 to remove direct OpenGL dependency for libplasma
5
6 -- Kunal Goel <kunal.goel@linaro.org> Wed, 02 Mar 2011 22:37:31 +0530
7
1kde4libs (4:4.6.1-0ubuntu1) UNRELEASED; urgency=low8kde4libs (4:4.6.1-0ubuntu1) UNRELEASED; urgency=low
29
3 * New upstream release10 * New upstream release
411
=== added file 'debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff'
--- debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff 1970-01-01 00:00:00 +0000
+++ debian/patches/remove-direct-OpenGL-dependency-for-libplasma.diff 2011-03-03 01:11:16 +0000
@@ -0,0 +1,104 @@
1Description: Remove OpenGL dependency
2 Remove direct OpenGL dependency for libplasma.
3Author: Kunal Goel <kunal.goel@linaro.org>
4Last-Update: 2011-03-01
5
6--- kde4libs-4.6.1.orig/CMakeLists.txt
7+++ kde4libs-4.6.1/CMakeLists.txt
8@@ -99,9 +99,6 @@ macro_log_feature(OPENSSL_FOUND "OpenSSL
9 macro_optional_find_package(Libintl)
10 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")
11
12-macro_optional_find_package(OpenGL)
13-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")
14-
15 set(SOPRANO_MIN_VERSION "2.5.60")
16 macro_optional_find_package(Soprano ${SOPRANO_MIN_VERSION} COMPONENTS PLUGIN_RAPTORPARSER PLUGIN_REDLANDBACKEND)
17 macro_log_feature(SOPRANO_FOUND "Soprano" "Support for the Nepomuk semantic desktop system" "http://soprano.sourceforge.net" FALSE "${SOPRANO_MIN_VERSION}" "")
18--- kde4libs-4.6.1.orig/includes/CMakeLists.txt
19+++ kde4libs-4.6.1/includes/CMakeLists.txt
20@@ -1148,11 +1148,11 @@ install(FILES
21 Plasma/VideoWidget
22 DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
23
24-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
25+if(QT_QTOPENGL_FOUND)
26 install(FILES
27 Plasma/GLApplet
28 DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
29-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
30+endif(QT_QTOPENGL_FOUND)
31
32 if(NOT KDE_NO_DEPRECATED)
33 install( FILES
34--- kde4libs-4.6.1.orig/plasma/glapplet.cpp
35+++ kde4libs-4.6.1/plasma/glapplet.cpp
36@@ -188,10 +188,6 @@ void GLApplet::paintInterface(QPainter *
37 }
38 d->pbuf->makeCurrent();
39
40- // handle background filling
41- glClearColor(0, 0, 0, 0);
42- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
43-
44 QMatrix m = painter->worldMatrix();
45 QRect deviceRect = m.mapRect(QRect(QPoint(23, 25), boundingRect().size().toSize()));
46 d->updateGlSize(deviceRect.size());
47--- kde4libs-4.6.1.orig/plasma/CMakeLists.txt
48+++ kde4libs-4.6.1/plasma/CMakeLists.txt
49@@ -46,13 +46,6 @@ if(QCA2_FOUND)
50 endif(QCA2_FOUND)
51 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h)
52
53-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
54- # libGL needs dlopen() and friends from the dl library
55- find_library(DL_LIBRARY dl)
56- mark_as_advanced(DL_LIBRARY)
57- include_directories(${OPENGL_INCLUDE_DIR})
58-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
59-
60 add_subdirectory(tests)
61 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
62
63@@ -231,12 +224,12 @@ kde4_add_ui_files(plasma_LIB_SRCS
64 # TEST_INCLUDES
65 #)
66
67-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
68+if(QT_QTOPENGL_FOUND)
69 message(STATUS "Adding support for OpenGL applets to libplasma")
70 set(plasma_LIB_SRCS
71 ${plasma_LIB_SRCS}
72 glapplet.cpp)
73-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
74+endif(QT_QTOPENGL_FOUND)
75
76 if (PHONON_FOUND)
77 message(STATUS "Adding support for Phonon to libplasma")
78@@ -271,9 +264,9 @@ if(DL_LIBRARY)
79 target_link_libraries(plasma ${DL_LIBRARY})
80 endif(DL_LIBRARY)
81
82-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
83- target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
84-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
85+if(QT_QTOPENGL_FOUND)
86+ target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY})
87+endif(QT_QTOPENGL_FOUND)
88
89 target_link_libraries(plasma LINK_INTERFACE_LIBRARIES kdeui kdecore ${QT_QTGUI_LIBRARY})
90
91@@ -354,11 +347,11 @@ if(NOT KDE_NO_DEPRECATED)
92 endif(NOT KDE_NO_DEPRECATED)
93
94
95-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
96+if(QT_QTOPENGL_FOUND)
97 set(plasma_LIB_INCLUDES
98 ${plasma_LIB_INCLUDES}
99 glapplet.h)
100-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
101+endif(QT_QTOPENGL_FOUND)
102
103 install(FILES
104 ${plasma_LIB_INCLUDES}
0105
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-02-21 15:28:25 +0000
+++ debian/patches/series 2011-03-03 01:11:16 +0000
@@ -27,3 +27,4 @@
27security_01_CVE-2009-2702.diff27security_01_CVE-2009-2702.diff
28kubuntu_77_ksambashare.diff28kubuntu_77_ksambashare.diff
29kubuntu_78_hide_old_file_share.diff29kubuntu_78_hide_old_file_share.diff
30remove-direct-OpenGL-dependency-for-libplasma.diff

Subscribers

People subscribed via source and target branches

to all changes: