Bug 252348 - comms/libticables2: libusb support is broken
Summary: comms/libticables2: libusb support is broken
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 15:17 UTC by Nico Sonack
Modified: 2021-01-02 15:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
PATCH: configure.ac patch for libusb-2.0 (806 bytes, patch)
2021-01-02 15:17 UTC, Nico Sonack
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Sonack 2021-01-02 15:17:37 UTC
Created attachment 221198 [details]
PATCH: configure.ac patch for libusb-2.0

As documented in a discussion upstream at https://github.com/debrouxl/tilibs/issues/49 libusb support in comms/libticables2 seems to be broken:

(tilp:92109): ticables-WARNING **: 16:58:22.966: usb_bulk_read (Unknown error).

Complete log with system information is at: https://gist.githubusercontent.com/herrhotzenplotz/3ed5f0cb4df98f299feab8484c2d3972/raw/070f5d78fc5dda6156ef50799b684fff13d22837/gistfile1.txt

I was walking in circles for a few hours but managed to build from Git; initially to debug but it then already worked.

What works is:

Link against libusb-2.0 using the autotools approach. CMake is totally broken and the upstream people appear not to be concerned.
The git diff is upstream, but I shall also attach it to this issue.

Also, the port appears to be fetching the tarballs from Sourceforge, which only provides outdated versions. Moving over to the GitHub sources would be necessary in order to update the port.