Bug#820147: openocd: FTBFS[kfreebsd]: doesn't find libusb-1.0
Package: src:openocd
Version: 0.9.0-1
Severity: important
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi!
openocd stopped building on kfreebsd when it was switched to
libusb-1.0 API. This can be easily fixed though, as kfreebsd has a
libusb2-dev that Provides: libusb-1.0-0-dev.
The patch below changes the Build-Depends appropriately, and changes to
libftdi1 while here - I tested that this builds in kfreebsd-amd64 sid:
--- debian/control.orig 2016-04-05 21:15:49.870835961 +0100
+++ debian/control 2016-04-05 21:20:52.222814737 +0100
@@ -3,8 +3,8 @@
Priority: extra
Maintainer: Uwe Hermann <uwe@debian.org>
Uploaders: Luca Bruno <lucab@debian.org>
-Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libftdi-dev,
- libusb-1.0-0-dev [linux-any], libusb-dev [kfreebsd-any hurd-any],
+Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libftdi1-dev,
+ libusb-1.0-0-dev,
texinfo, texlive,
autotools-dev, autoconf,
libhidapi-dev,
This change also removes the hurd-* Build-Depends on libusb-dev (that's
libusb-0.1, which is going to be removed soon from sid).
Thanks!
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: