From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 07 Jan 2022 09:10:16 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n5kKG-00DaQW-EU for lore@lore.pengutronix.de; Fri, 07 Jan 2022 09:10:16 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1n5kKF-0000lj-Ey; Fri, 07 Jan 2022 09:10:15 +0100 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5kJc-0000la-VR; Fri, 07 Jan 2022 09:09:36 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1n5kJc-0003BI-Ax; Fri, 07 Jan 2022 09:09:36 +0100 Date: Fri, 7 Jan 2022 09:09:36 +0100 From: Michael Olbrich To: Christian Melki Message-ID: <20220107080936.GC1071@pengutronix.de> Mail-Followup-To: Christian Melki , ptxdist@pengutronix.de References: <20211222130304.2549154-1-christian.melki@t2data.com> <20211222130304.2549154-21-christian.melki@t2data.com> <17645b7b-e4a5-84e5-2239-c3ea8f52244a@t2data.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <17645b7b-e4a5-84e5-2239-c3ea8f52244a@t2data.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:56:26 up 27 days, 16:42, 70 users, load average: 0.22, 0.27, 0.24 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [WIP: PATCH] usbutils: Version bump 007 -> 014. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de