Blame SOURCES/kdelibs-solid_qt_no_debug_output.patch

92cace
diff -up kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp
92cace
--- kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp.solid_qt_no_debug_output	2012-11-14 09:58:29.000000000 -0600
92cace
+++ kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp	2012-12-12 16:18:25.817495558 -0600
92cace
@@ -340,9 +340,11 @@ bool StorageAccess::requestPassphrase()
92cace
                                                 returnService, m_lastReturnObject,
92cace
                                                 wId, appId);
92cace
     m_passphraseRequested = reply.isValid();
92cace
+#ifndef QT_NO_DEBUG_STREAM
92cace
     if (!m_passphraseRequested) {
92cace
         qWarning() << "Failed to call the SolidUiServer, D-Bus said:" << reply.error();
92cace
     }
92cace
+#endif
92cace
     return m_passphraseRequested;
92cace
 }
92cace
 
92cace
diff -up kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp
92cace
--- kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp.solid_qt_no_debug_output	2012-11-14 09:58:29.000000000 -0600
92cace
+++ kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp	2012-12-12 16:17:36.922022895 -0600
92cace
@@ -341,9 +341,10 @@ bool StorageAccess::requestPassphrase()
92cace
     QDBusReply<void> reply = soliduiserver.call("showPassphraseDialog", udi, returnService,
92cace
                                                 m_lastReturnObject, wId, appId);
92cace
     m_passphraseRequested = reply.isValid();
92cace
+#ifndef QT_NO_DEBUG_STREAM
92cace
     if (!m_passphraseRequested)
92cace
         qWarning() << "Failed to call the SolidUiServer, D-Bus said:" << reply.error();
92cace
-
92cace
+#endif
92cace
     return m_passphraseRequested;
92cace
 }
92cace
 
92cace
diff -up kdelibs-4.9.90/solid/solid/CMakeLists.txt.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/CMakeLists.txt
92cace
--- kdelibs-4.9.90/solid/solid/CMakeLists.txt.solid_qt_no_debug_output	2012-11-14 09:58:29.000000000 -0600
92cace
+++ kdelibs-4.9.90/solid/solid/CMakeLists.txt	2012-12-12 16:17:36.922022895 -0600
92cace
@@ -268,7 +268,7 @@ if(NOT WIN32 AND NOT APPLE)
92cace
 
92cace
        if ( WITH_SOLID_UDISKS2 )
92cace
            message(STATUS "Building Solid UDisks2 backend." )
92cace
-           add_definitions(-DWITH_SOLID_UDISKS2)
92cace
+           add_definitions(-DWITH_SOLID_UDISKS2 -DQT_NO_DEBUG_OUTPUT)
92cace
            set(solid_LIB_SRCS ${solid_LIB_SRCS}
92cace
            backends/udisks2/udisksmanager.cpp
92cace
            backends/udisks2/udisksdevice.cpp