packages: polkit-kde-1/polkit-kde-1-gcc4.5.patch (NEW) - fix build with gcc...

shadzik shadzik at pld-linux.org
Tue Aug 31 19:17:33 CEST 2010


Author: shadzik                      Date: Tue Aug 31 17:17:33 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix build with gcc 4.5

---- Files affected:
packages/polkit-kde-1:
   polkit-kde-1-gcc4.5.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/polkit-kde-1/polkit-kde-1-gcc4.5.patch
diff -u /dev/null packages/polkit-kde-1/polkit-kde-1-gcc4.5.patch:1.1
--- /dev/null	Tue Aug 31 19:17:33 2010
+++ packages/polkit-kde-1/polkit-kde-1-gcc4.5.patch	Tue Aug 31 19:17:28 2010
@@ -0,0 +1,21 @@
+--- agent/AuthDialog.cpp.orig	2010-08-31 19:12:10.449912847 +0200
++++ agent/AuthDialog.cpp	2010-08-31 19:12:33.034286166 +0200
+@@ -169,7 +169,7 @@
+         foreach(PolkitQt1::Identity *identity, identities) {
+             // First check to see if the user is valid
+             qDebug() << "User: " << identity;
+-            KUser user = KUser::KUser(identity->toString().remove("unix-user:"));
++            KUser user = KUser(identity->toString().remove("unix-user:"));
+             if (!user.isValid()) {
+                 kWarning() << "User invalid: " << user.loginName();
+                 continue;
+--- agent/CMakeLists.txt.orig	2010-08-31 19:13:23.516583753 +0200
++++ agent/CMakeLists.txt	2010-08-31 19:13:51.034486058 +0200
+@@ -12,6 +12,7 @@
+ target_link_libraries(polkit-kde-authentication-agent-1
+                                          ${KDE4_KDEUI_LIBS}
+                                          ${POLKITQT-1_AGENT_LIBRARY}
++					 ${POLKITQT-1_CORE_LIBRARY}
+ )
+ 
+ configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)
================================================================


More information about the pld-cvs-commit mailing list