Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[compatibility] libusbx replaced by libusb-1.0 in most distros #897

@Nightwalker-87

Description

@Nightwalker-87

As of March 2020 on most distros libusbx has been replaced by the maintained libusb-1.0.
This reflects the re-merging of the libusbx-project-fork back into the libusb-project (see https://github.com/libusb/libusb/wiki/FAQ#libusborg_libusbxorg_and_libusbinfo) as referenced by @slyshykO in #782. As mentioned in PR #895, I did some small research on this topic to find out about the current state of support by various distributions currently maintained.

Here is the result from https://pkgs.org/search/?q=libusb (as of Mar 2020):

1.0.23

  • Alpine Edge
  • Alpine 3.11
  • ALT Linux Sisyphus
  • Arch Linux
  • Debian Sid
  • Fedora Rawhide --> libusbx, but compatible, as libusb-codebase is used
  • KaOS
  • OpenMandriva Cooker
  • OpenMandriva Lx 4.1
  • openSUSE Tumbleweed
  • Slackware Current
  • Solus
  • Ubuntu 20.04 LTS
  • Ubuntu 19.10

1.0.22

  • Alpine 3.10
  • Alpine 3.9
  • CentOS 8 --> libusbx, but compatible, as libusb-codebase is used
  • Debian 10 (Buster)
  • Fedora 31 --> libusbx, but compatible, as libusb-codebase is used
  • Fedora 30 --> libusbx, but compatible, as libusb-codebase is used
  • Mageia Cauldron
  • Mageia 7.1
  • NetBSD 9.0
  • NetBSD 8.1
  • NetBSD 7.2

1.0.21

  • CentOS 7 --> libusbx, but compatible, as libusb-codebase is used
  • Debian 9 (Stretch)
  • openSUSE Leap 15.2
  • openSUSE Leap 15.1
  • Ubuntu 18.04 LTS

1.0.20

  • OpenMandriva Lx 3.0
  • Slackware 14.2
  • Ubuntu 16.04 LTS

... older libusb versions --> would no longer be supported

  • Debian 8 (Jessie) - 1.0.19
  • Ubuntu 14.04 LTS - 1.0.17
  • CentOS 6 - 1.0.9
  • Slackware 14.1 - 1.0.9

Special case
... on FreeBSD libusb is integrated into the system:

  • FreeBSD 13 - linux_libusb-13.0r358841 --> libusb-codebase 1.0.16 - 1.0.18 used
  • FreeBSD 12 - linux_libusb-11.0r261448_4 --> libusb-codebase 1.0.16 - 1.0.18 used
  • FreeBSD 11 - linux_libusb-11.0r261448_4 --> libusb-codebase 1.0.16 - 1.0.18 used

Looking at this, we should set libusb 1.0.20 as the minimum required version (apart from FreeBSD) to ensure widespread compatibility.

Metadata

Metadata

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions