Hi,
On Thu, Jan 06, 2022 at 10:52:00PM +0100, Christian Melki wrote:
> On 1/5/22 13:38, Michael Olbrich wrote:
> > On Wed, Dec 22, 2021 at 02:03:02PM +0100, Christian Melki wrote:
> >> Usbutils depends on libudev, add it.
> >> Clear out some old configure options.
> >> Also, usb.ids are not supplied anymore.
> >> It is expected the user provides it.
> >
> > I think, the idea is to use hwdb instead. I've waited with this update for
> > some time because I wanted to avoid the systemd dependency. But now we have
> > a systemd-hwdb package.
> > We should probably just depend on that instead of keeping our own version
> > of usb.ids.
> >
> > Michael
>
> Cut for less server spam size.
>
> I just realized it could depend on the hwdata package?
> https://github.com/vcrhonek/hwdata
>
> Which apparently the usbip package already has as dependency?
> usbip.make: --with-usbids-dir=/usr/share/hwdata
>
> hwdata is used by several distributions.
> I'm not sure how well all the lspci, lsusb whatever is integrated with
> systemd-hwdb binary database? Busybox versions?
Right, this is a bit of a mess:
- udev and through that libinput and others only use hwdb
- lsusb and lspci in ptxdist currently install their own .ids files.
Latest upstream versions don't contain the .ids file any more but support
both hwdb and the .ids file.
- usbip only supports the .ids file and in ptxdist looks in the wrong
location :-/
- lshw only supports the .ids files and installs it's own versions of it
:-/
I would prefer to use hwdb for everything (there is a reason why it was
introduced in the first place) but that's clearly not yet possible.
So I think for now the best would be:
- create a hwdata package with suboptions for usb and pci.
- in usbutils.in:
select HWDATA if !SYSTEMD_HWDB
select HWDATA_USB if !SYSTEMD_HWDB
If you use /usr/share/hwdata to install the files, then usbip will be fixed
automatically. Make sure that lsusb find the file as well.
Bonus points for updating lshw to use the same files :-)
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to
[email protected]