[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#754678: openocd: FTBFS on kfreebsd-*: configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices



found 754678 0.8.0-3
tags 754678 + patch
thanks

Hi,

openocd still FTBFS on kfreebsd-*:
https://buildd.debian.org/status/fetch.php?pkg=openocd&arch=kfreebsd-amd64&ver=0.8.0-3&stamp=1413746707

If you want something equivalent to Linux libusb 1.0 API, I think you
need to Build-Depend on libusb2-dev [kfreebsd-any] rather than libusb-dev.

The next problem is, libftdi-dev was built against the older libusb-dev
and they cannot be used together here.

Dropping libftdi-dev from Build-Depends on kfreebsd-amd64, I actually
get a successful build;  how does that work?  Does MPSSE mode not need
ftdi.h any more?  If so, libftdi-dev can be dropped from Build-Depends
on linux, too.  But I have no way of testing openocd.

I've attached my build log, as well as a patch for the Build-Depends I
used to build it.

Thanks,
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org

Attachment: openocd.log.gz
Description: GNU Zip compressed data

--- openocd-0.8.0.orig/debian/control	2014-10-19 18:19:44.000000000 +0100
+++ openocd-0.8.0/debian/control	2014-10-19 22:22:08.213682557 +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 (>= 10.1~) [kfreebsd-any hurd-any], 
+Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libftdi-dev [!kfreebsd-any],
+               libusb-1.0-0-dev [linux-any], libusb2-dev (>= 10.1~) [kfreebsd-any], libusb-dev [hurd-any], 
                texinfo, texlive, 
                autotools-dev, autoconf, automake1.11, libtool, 
                libhidapi-dev, pkg-config

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: