<div dir="auto">Coincidentally, a discussion this week in libusb issue tracker suggested to use HIDAPI library for USB HID devices (note there are quite a few non-HID drivees too).<div dir="auto"><br></div><div dir="auto">It allegedly is better portable, layering over libusb on some platforms abd over better native low-level facilities on others (win, lin, mac).</div><div dir="auto"><br></div><div dir="auto">If someone were to explore if it can easily fit into our web of libusbX, usb-common, libhid ... sources as a yet-another abstraction over a backend library, and drivers could be built to take advantage of it, that would be very welcome.</div><div dir="auto"><br></div><div dir="auto">Jim</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 22, 2024, 04:24 Charles Lepple via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="">On Aug 21, 2024, at 12:34 PM, Heath Smith via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br><div><blockquote type="cite"><br><div><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">1) Who is deciding what goes in to fink and port packages? Do the maintainers of NUT have any say with fink, Mac Ports, and Home Brew (for MacOs machines)?</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div></blockquote></div>As Jim mentioned, the distributions like Fink and MacPorts are free to choose the subset of dependencies that they can easily handle.<div><br></div><div>Speaking as someone who coincidentally maintained the NUT package in Fink for a few years, it can be tricky to strike a balance between complexity and maintainability, and altering that dependency chain usually takes quite a bit of testing. I no longer have a working Fink install, so I would have to rely on others to test any changes.</div><div><br></div><div>That said, since Fink moved their package tree to Git a few years ago, it is not too hard to maintain a patch against upstream to trim down the dependencies. If you don't need the Eaton NetXML driver and its dependencies like neon, don't build it. You can change any "BuildDepends: foo" to a "BuildConflicts: foo", and remove the splitoff that packages that up (e.g. <a href="https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/net/nut.info#L225" target="_blank" rel="noreferrer">https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/net/nut.info#L225</a> ). Sometimes there are ./configure options that need to be removed as well, but usually the BuildConflicts will prevent the library from being visible to the configuration process.</div><div><br></div><div>Similarly, low-level USB support on MacOS has been withering away for some time now. It is especially difficult to detach the incumbent USB HID PDC driver, to the point that I wrote a separate NUT driver (<a href="https://networkupstools.org/docs/man/macosx-ups.html" target="_blank" rel="noreferrer">macosx-ups</a>) to read from the system power monitoring code. libusb doesn't have a ton of dependencies, but it too is a candidate for the chopping block, especially if you are just monitoring a remote UPS on non-Mac hardware.</div><div><br></div><div>I'm not sure what that patch process looks like for MacPorts or Homebrew.</div><div><br></div><div>-- </div><div><div>Charles Lepple<br>clepple@gmail</div></div></div>_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>