Upgrade gnome-bluetooth to drop libhal dependency

Bug #418401 reported by Javier Jardón
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-bluetooth (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-bluetooth

Hal is deprecated, see http://www.freedesktop.org/wiki/Software/hal

gnome-bluetooth from git doesn't depend on hal, so libhal1 dependency is not necessary

You can check the configure.ac file in the git repo: http://git.gnome.org/cgit/gnome-bluetooth/tree/configure.ac

ProblemType: Bug
Architecture: i386
Date: Tue Aug 25 04:24:20 2009
DistroRelease: Ubuntu 9.10
Package: gnome-bluetooth 2.27.8-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-6.26-generic
SourcePackage: gnome-bluetooth
Uname: Linux 2.6.31-6-generic i686

Revision history for this message
Javier Jardón (jjardon) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

The current version does, though:

$ find -name '*.c' | xargs grep -i 'hal' |egrep -v 'marshal|half'
./lib/bluetooth-killswitch.c:#include <hal/libhal.h>
./lib/bluetooth-killswitch.c: LibHalContext *halctx;
./lib/bluetooth-killswitch.c: message = dbus_message_new_method_call ("org.freedesktop.Hal",
./lib/bluetooth-killswitch.c: "org.freedesktop.Hal.Device.KillSwitch",
./lib/bluetooth-killswitch.c: message = dbus_message_new_method_call("org.freedesktop.Hal",
./lib/bluetooth-killswitch.c: "org.freedesktop.Hal.Device.KillSwitch",
./lib/bluetooth-killswitch.c: type = libhal_device_get_property_string (priv->halctx,
./lib/bluetooth-killswitch.c: message = dbus_message_new_method_call ("org.freedesktop.Hal",
./lib/bluetooth-killswitch.c: "org.freedesktop.Hal.Device.KillSwitch",
./lib/bluetooth-killswitch.c: priv->halctx = libhal_ctx_new();
./lib/bluetooth-killswitch.c: if (priv->halctx == NULL) {
./lib/bluetooth-killswitch.c: if (libhal_ctx_set_dbus_connection(priv->halctx, priv->connection) == FALSE) {
./lib/bluetooth-killswitch.c: libhal_ctx_free(priv->halctx);
./lib/bluetooth-killswitch.c: priv->halctx = NULL;
./lib/bluetooth-killswitch.c: if (libhal_ctx_init(priv->halctx, NULL) == FALSE) {
./lib/bluetooth-killswitch.c: g_printerr("Couldn't init HAL context\n");
./lib/bluetooth-killswitch.c: libhal_ctx_free(priv->halctx);
./lib/bluetooth-killswitch.c: priv->halctx = NULL;
./lib/bluetooth-killswitch.c: list = libhal_find_device_by_capability(priv->halctx, "killswitch", &num, NULL);
./lib/bluetooth-killswitch.c: libhal_free_string_array (list);
./lib/bluetooth-killswitch.c: if (priv->halctx != NULL) {
./lib/bluetooth-killswitch.c: libhal_ctx_shutdown(priv->halctx, NULL);
./lib/bluetooth-killswitch.c: libhal_ctx_free(priv->halctx);
./lib/bluetooth-killswitch.c: priv->halctx = NULL;

But of course this needs to be rewritten to use udev at some point.

Changed in gnome-bluetooth (Ubuntu):
status: New → Triaged
summary: - gnome-bluetooth doesn't depend on HAL
+ port killswitch handling from hal to udev
Revision history for this message
Martin Pitt (pitti) wrote : Re: port killswitch handling from hal to udev
Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

yeah it is in the release 2.27.9 which was released few weeks ago already, but not packaged :)

Javier Jardón (jjardon)
description: updated
Javier Jardón (jjardon)
summary: - port killswitch handling from hal to udev
+ Upgrade gnome-bluetooth to drop libhal dependency
Alexander Sack (asac)
Changed in gnome-bluetooth (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

should be fixed in latest package in karmic.

Changed in gnome-bluetooth (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.