<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On 5 Apr 2022, at 3:08 pm, Christoph Kukulies <kuku@kukulies.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">Thanks. Assumed I have downloaded a binary release from libusb’s github Releases and it looks like that in the tree:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ find macos_11.6</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/.DS_Store</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/dpfp</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/listdevs</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/sam3u_benchmark</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/fxload</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/xusb</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/testlibusb</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/hotplugtest</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/bin/stress</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/include</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/include/.DS_Store</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/include/libusb-1.0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/include/libusb-1.0/libusb.h</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/pkgconfig</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/pkgconfig/libusb-1.0.pc</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/libusb-1.0.dylib</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/libusb-1.0.0.dylib</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/libusb-1.0.a</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: "Courier New"; background-color: rgb(254, 244, 139);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">macos_11.6/lib/<a href="http://libusb-1.0.la" class="">libusb-1.0.la</a></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div>
<div>How can I make these active in libusb-devel or otherwise available?</div></div></div></blockquote><div><br></div>You cannot. Macports strongly prefers to build ports from source itself, and only redistributes rebuilt binaries in extreme circumstances.<div><br></div><div>You need to update the port file to fetch and then build a newer github revision for the devel subport. See</div><div><br></div><div><a href="https://github.com/macports/macports-ports/blob/584723a8c2a65990bd0566b226f8c31b7f30fce5/devel/libusb/Portfile">https://github.com/macports/macports-ports/blob/584723a8c2a65990bd0566b226f8c31b7f30fce5/devel/libusb/Portfile</a></div><div><br></div><div>See line 60 onwards.</div><div><br></div><div>That said, the devel port currently builds a revision that appears to be from the 3rd of April this year, so is pretty recent. Is this not new enough ?</div><div><br></div><div>Chris</div><div><br><div><br><div><blockquote type="cite"><div dir="ltr"><div class=""><div><br class=""></div><div>Do the pkgconfig .pc files play a role in the installation mechanism?</div><div><br class=""></div><div>—</div><div>Christoph</div><div><br class=""><blockquote type="cite" class=""><div class="">Am 05.04.2022 um 15:36 schrieb Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">On 05/04/2022 1:54 pm, Christoph Kukulies wrote:<br class=""><blockquote type="cite" class="">Thanks. Nonetheless I don‘t get how I can aim at a specific version or 1.0.26-rc1 „HEAD“<br class=""></blockquote><br class="">you cannot. You still get whatever version libusb-devel is current set to provide. The idea of a X-devel port though is these can be updated and tested without affecting the default X port.<br class=""><br class="">If you want a different version than libusb-devel currently provides, then you need to update the port to provide this.<br class=""><br class=""><blockquote type="cite" class="">Btw, what is the correspondent to<br class="">ldd<br class="">under macOS?<br class=""></blockquote><br class="">otool -L<br class=""><br class=""><blockquote type="cite" class="">—<br class="">Christoph<br class=""><blockquote type="cite" class="">Am 05.04.2022 um 12:56 schrieb Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>>:<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 05/04/2022 11:50 am, Christoph Kukulies wrote:<br class="">$ sudo port deactivate libusb @1.0.25_0<br class="">Password:<br class="">Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.<br class="">The following ports will break:<br class="">  libusb-compat @0.1.7_0<br class="">  openocd @0.11.0_0<br class="">  usbutils @007_1<br class="">  libftdi1 @1.5_1<br class="">  qemu @6.2.0_0<br class="">  stlink @1.7.0_1<br class="">Continue? [y/N]:<br class=""><br class="">OK to continue?<br class=""></blockquote><br class="">yes.<br class=""><br class="">ports that depend on libusb should use a path style dependency, to allow libusb or libusb-devel to satisfy it<br class=""><br class="">path:lib/pkgconfig/libusb-1.0.pc:libusb<br class=""><br class="">so assuming you are about to install libusb-devel its fine.<br class=""></blockquote></blockquote></div></div></blockquote></div><br class=""></div></div></blockquote></div></div></div></body></html>