Package: gnome-pilot
Version: 2.0.15-2.1
Severity: important
Tags: patch
gpilotd did not communicate with HAL since ~30/03 in lenny, so synchronisation
never begins, altough it could be forced via pilot-link CLI.
I found HAL key "info.bus" is no more used, and this information is now in
"info.subsystem" key.
With the attached patch, I'm able to sync my Zire 72 using gpilotd.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnome-pilot depends on:
ii gconf2 2.22.0-1 GNOME configuration database syste
ii libart-2.0-2 2.3.20-2 Library of functions for 2D graphi
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libbonobo2-0 2.22.0-1 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.22.0-1 The Bonobo UI library
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcairo2 1.6.4-1+b1 The Cairo 2D vector graphics libra
ii libdbus-1-3 1.2.1-2 simple interprocess messaging syst
ii libdbus-glib-1-2 0.74-2 simple interprocess messaging syst
ii libgconf2-4 2.22.0-1 GNOME configuration database syste
ii libglade2-0 1:2.6.2-1 library to load .glade files at ru
ii libglib2.0-0 2.16.3-2 The GLib library of C routines
ii libgnome-pilot2 2.0.15-2.1 Support libraries for gnome-pilot
ii libgnome2-0 2.20.1.1-1 The GNOME 2 library - runtime file
ii libgnomecanvas2-0 2.20.1.1-1 A powerful object-oriented display
ii libgnomeui-0 2.20.1.1-1 The GNOME 2 libraries (User Interf
ii libgnomevfs2-0 1:2.22.0-2 GNOME Virtual File System (runtime
ii libgtk2.0-0 2.12.9-3 The GTK+ graphical user interface
ii libhal1 0.5.11~rc2-1 Hardware Abstraction Layer - share
ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library
ii liborbit2 1:2.14.12-0.1 libraries for ORBit2 - a CORBA ORB
ii libpanel-applet2-0 2.20.3-3 library for GNOME Panel applets
ii libpango1.0-0 1.20.2-2 Layout and rendering of internatio
ii libpisock9 0.12.3-4+b1 library for communicating with a P
ii libpisync1 0.12.3-4+b1 synchronization library for PalmOS
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libsm6 2:1.0.3-1+b1 X11 Session Management library
ii libxml2 2.6.32.dfsg-2 GNOME XML library
Versions of packages gnome-pilot recommends:
ii gnome-pilot-conduits 2.0.15-1.2 conduits for gnome-pilot
-- no debconf information
diff -u gnome-pilot-2.0.15.debian.orig/gpilotd/gpilotd.c
gnome-pilot-2.0.15/gpilotd/gpilotd.c
--- gnome-pilot-2.0.15.debian.orig/gpilotd/gpilotd.c 2006-11-18
14:50:10.000000000 +0100
+++ gnome-pilot-2.0.15/gpilotd/gpilotd.c 2008-05-25 17:48:12.000000000
+0200
@@ -1048,8 +1048,13 @@
* and then try to match the usb_device.product_id and
usb_device.vendor_id
* against the list in devices.xml.
*/
- if (!(bus = libhal_device_get_property_string (hal_ctx, udi,
"info.bus", NULL)))
- return;
+ if (!(bus = libhal_device_get_property_string (hal_ctx, udi,
"info.bus", NULL))) {
+ /* Bastien Durel: newer HAL seems to use info.subsystem, not
info.bus */
+ if (!(bus = libhal_device_get_property_string (hal_ctx, udi,
"info.subsystem", NULL))) {
+ return;
+ }
+ }
+
if (strcmp (bus, "usb_device") != 0) {
libhal_free_string (bus);
return;