[Pkg-utopia-maintainers] Bug#472664: libsane: hal property info.bus is deprecated

Martin Pitt mpitt at debian.org
Tue Mar 25 18:54:31 UTC 2008


Hi Julien,

Julien BLACHE [2008-03-25 19:26 +0100]:
> Oh $DEITY. There was already this kind of shit with udev which is a
> support nightmare, and now that crap.
> 
> Don't these people learn? Crap, crap, crap.

In fact, I suppose that's a direct consequence of kernel/udev changes,
since low-level things like bus types and numbers are read straight
out of sysfs.

> Thanks. Do you know if we can have both info.bus and info.subsystem in
> this file, so as to support newer and older versions of that pile of
> crap that HAL is?

Unfortunately not, AFAICS. You can do "AND" by nesting <match> rules,
but not "OR". And you don't really want to duplicate the entire file
contents by writing every rule twice.

What you could do in theory is to mimic the
/usr/share/hal/fdi/information/10freedesktop/01-deprecated-keys.fdi
file, which is enabled if you build hal with --with-deprecated-keys
(which is not done in Debian ATM, though, and unfortunately does not
even help with libgphoto):

<deviceinfo version="0.2">
  <device>
      <!-- info.bus - finally removed: 2008-03-03 -->
      <!-- readd info.bus for usb/usb_device to prevent problems with (lib)gphoto2 and libmtp -->
      <match key="info.subsystem" contains="usb">
        <merge key="info.bus" type="copy_property">info.subsystem</merge>
      </match>
  </device>
</deviceinfo>

If you copy the <device> block at the top of the file, it *should*
work (untested, though). This would then apply to *all* hal device
nodes, so it should rather be fixed in the hal package itself.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080325/4643f6fb/attachment.pgp 


More information about the Pkg-utopia-maintainers mailing list