SOURCES: kdebase-dbus-qt3.patch - correct fix.

pluto pluto at pld-linux.org
Fri Aug 18 16:20:48 CEST 2006


Author: pluto                        Date: Fri Aug 18 14:20:48 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- correct fix.

---- Files affected:
SOURCES:
   kdebase-dbus-qt3.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/kdebase-dbus-qt3.patch
diff -u SOURCES/kdebase-dbus-qt3.patch:1.1 SOURCES/kdebase-dbus-qt3.patch:1.2
--- SOURCES/kdebase-dbus-qt3.patch:1.1	Fri Aug 18 14:02:33 2006
+++ SOURCES/kdebase-dbus-qt3.patch	Fri Aug 18 16:20:43 2006
@@ -1,11 +1,94 @@
---- kdebase-3.5.4/configure.in.orig	2006-08-18 11:47:38.000000000 +0200
-+++ kdebase-3.5.4/configure.in	2006-08-18 14:00:24.332329750 +0200
-@@ -1463,7 +1463,7 @@
-   dbus_lib=NOTFOUND
-   dbus=NOTFOUND
+diff -uNr kdebase-3.5.4/kioslave/media/configure.in.in kdebase-3.5.4.patched/kioslave/media/configure.in.in
+--- kdebase-3.5.4/kioslave/media/configure.in.in	2006-07-22 08:15:45.000000000 +0000
++++ kdebase-3.5.4.patched/kioslave/media/configure.in.in	2006-08-18 14:17:29.489632500 +0000
+@@ -106,12 +106,12 @@
+   dbusqt_lib=NOTFOUND
+   dbusqt=NOTFOUND
  
 -  search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/dbus-1.0 /usr/local/include /usr/local/include/dbus-1.0"
+-  AC_FIND_FILE(dbus/connection.h, $search_incs, dbusqt_incdir)
 +  search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/dbus-1.0/qt3 /usr/local/include /usr/local/include/dbus-1.0"
-   AC_FIND_FILE(dbus/dbus.h, $search_incs, dbus_incdir)
++  AC_FIND_FILE(dbus/qdbusconnection.h, $search_incs, dbusqt_incdir)
  
-   search_incs_arch_deps="$kde_includes $kde_extra_includes /usr/lib$kdelibsuff/dbus-1.0/include /usr/local/lib$kdelibsuff/dbus-1.0/include"
+-  if test -r $dbusqt_incdir/dbus/connection.h ; then
++  if test -r $dbusqt_incdir/dbus/qdbusconnection.h ; then
+     have_qt_patch=0
+-    grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/connection.h \
++    grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/qdbusconnection.h \
+     > /dev/null 2>&1 && have_qt_patch=1
+     if test $have_qt_patch = 1 ; then
+       DBUSQT_INCS="-I$dbusqt_incdir"
+@@ -120,20 +120,20 @@
+   fi
+ 
+   search_libs="$kde_libraries $kde_extra_libs /usr/lib$kdelibsuff /usr/local/lib$kdelibsuff"
+-  AC_FIND_FILE(libdbus-qt-1.so, $search_libs, dbusqt_libdir)
++  AC_FIND_FILE(libdbus-1-qt3.so, $search_libs, dbusqt_libdir)
+ 
+-  if test -r $dbusqt_libdir/libdbus-qt-1.so ; then
+-    DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-qt-1"
++  if test -r $dbusqt_libdir/libdbus-1-qt3.so ; then
++    DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-1-qt3"
+     dbusqt_lib=FOUND
+   fi
+ 
+   if test $dbusqt_inc != FOUND  || test $dbusqt_lib != FOUND ; then 
+ 
+     search_incs="`pkg-config --cflags dbus-1  |sed 's/-I//g'`"
+-    AC_FIND_FILE(dbus/connection.h, $search_incs, dbusqt_incdir)
+-    if test -r $dbusqt_incdir/dbus/connection.h ; then
++    AC_FIND_FILE(dbus/qdbusconnection.h, $search_incs, dbusqt_incdir)
++    if test -r $dbusqt_incdir/dbus/qdbusconnection.h ; then
+       have_qt_patch=0
+-      grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/connection.h \
++      grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/qdbusconnection.h \
+       > /dev/null 2>&1 && have_qt_patch=1
+       if test $have_qt_patch = 1 ; then
+         DBUSQT_INCS="-I$dbusqt_incdir"
+@@ -142,10 +142,10 @@
+     fi
+ 
+     search_libs="`pkg-config --libs dbus-1 --libs-only-L | sed 's/-L//g'`"
+-    AC_FIND_FILE(libdbus-qt-1.so, $search_libs, dbusqt_libdir)
++    AC_FIND_FILE(libdbus-1-qt3.so, $search_libs, dbusqt_libdir)
+ 
+-    if test -r $dbusqt_libdir/libdbus-qt-1.so ; then
+-      DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-qt-1"
++    if test -r $dbusqt_libdir/libdbus-1-qt3.so ; then
++      DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-1-qt3"
+       dbusqt_lib=FOUND
+     fi
+ 
+diff -uNr kdebase-3.5.4/kioslave/media/mediamanager/halbackend.cpp kdebase-3.5.4.patched/kioslave/media/mediamanager/halbackend.cpp
+--- kdebase-3.5.4/kioslave/media/mediamanager/halbackend.cpp	2006-08-18 14:15:56.115797000 +0000
++++ kdebase-3.5.4.patched/kioslave/media/mediamanager/halbackend.cpp	2006-08-18 14:07:18.865346000 +0000
+@@ -346,7 +346,7 @@
+ 
+ void HALBackend::MainLoopIntegration(DBusConnection *dbusConnection)
+ {
+-    m_dBusQtConnection = new DBusQt::Connection(m_parent);
++    m_dBusQtConnection = new QDBusConnection();
+     m_dBusQtConnection->dbus_connection_setup_with_qt_main(dbusConnection);
+ }
+ 
+diff -uNr kdebase-3.5.4/kioslave/media/mediamanager/halbackend.h kdebase-3.5.4.patched/kioslave/media/mediamanager/halbackend.h
+--- kdebase-3.5.4/kioslave/media/mediamanager/halbackend.h	2006-07-22 08:15:45.000000000 +0000
++++ kdebase-3.5.4.patched/kioslave/media/mediamanager/halbackend.h	2006-08-18 14:04:38.091715250 +0000
+@@ -40,7 +40,7 @@
+ /* We acknowledge the the dbus API is unstable */
+ #define DBUS_API_SUBJECT_TO_CHANGE
+ /* DBus-Qt bindings */
+-#include <dbus/connection.h>
++#include <dbus/qdbusconnection.h>
+ /* HAL libraries */
+ #include <libhal.h>
+ #include <libhal-storage.h>
+@@ -207,7 +207,7 @@
+ 	/**
+ 	* The DBus-Qt bindings connection for mainloop integration
+ 	*/
+-	DBusQt::Connection*	m_dBusQtConnection;
++	QDBusConnection*	m_dBusQtConnection;
+ 
+ 	/**
+ 	* Object for the kded module
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/kdebase-dbus-qt3.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list