Debian Bug report logs -
#819998
garmin-forerunner-tools: FTBFS on !linux after switch to libusb 1.0
Reported by: Andreas Beckmann <anbe@debian.org>
Date: Mon, 4 Apr 2016 17:45:02 UTC
Severity: important
Tags: moreinfo
Found in version garmin-forerunner-tools/0.10repacked-8
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>:
Bug#819998; Package src:garmin-forerunner-tools.
(Mon, 04 Apr 2016 17:45:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Beckmann <anbe@debian.org>:
New Bug report received and forwarded. Copy sent to Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>.
(Mon, 04 Apr 2016 17:45:07 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Source: garmin-forerunner-tools
Version: 0.10repacked-8
Severity: important
Hi,
the non-linux architectures have a different implementation for libusb,
available from different packages. The recent switch to libusb 1.0
caused a FTBFS since there is no libusb-1.0-0-dev.
Andreas
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>:
Bug#819998; Package src:garmin-forerunner-tools.
(Tue, 05 Apr 2016 07:45:13 GMT) (full text, mbox, link).
Acknowledgement sent
to Christian PERRIER <bubulle@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>.
(Tue, 05 Apr 2016 07:45:13 GMT) (full text, mbox, link).
Message #10 received at 819998@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Quoting Andreas Beckmann (anbe@debian.org):
> Source: garmin-forerunner-tools
> Version: 0.10repacked-8
> Severity: important
>
> Hi,
>
> the non-linux architectures have a different implementation for libusb,
> available from different packages. The recent switch to libusb 1.0
> caused a FTBFS since there is no libusb-1.0-0-dev.
Doh. I blindly followed instructions from the bug reporter for this
change.
I suppose that this probably affects several packages and not this
one, only. If so, are there guidelines somewhere about Doing The Right
Thing?
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>:
Bug#819998; Package src:garmin-forerunner-tools.
(Tue, 05 Apr 2016 08:42:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Beckmann <anbe@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>.
(Tue, 05 Apr 2016 08:42:06 GMT) (full text, mbox, link).
Message #15 received at 819998@bugs.debian.org (full text, mbox, reply):
On 2016-04-05 09:33, Christian PERRIER wrote:
> Quoting Andreas Beckmann (anbe@debian.org):
>> Source: garmin-forerunner-tools
>> Version: 0.10repacked-8
>> Severity: important
>>
>> Hi,
>>
>> the non-linux architectures have a different implementation for libusb,
>> available from different packages. The recent switch to libusb 1.0
>> caused a FTBFS since there is no libusb-1.0-0-dev.
>
>
> Doh. I blindly followed instructions from the bug reporter for this
> change.
>
> I suppose that this probably affects several packages and not this
> one, only. If so, are there guidelines somewhere about Doing The Right
> Thing?
I don't know the details ... Cc:ing Steven who might help with the
kfreebsd side.
Andreas
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>:
Bug#819998; Package src:garmin-forerunner-tools.
(Tue, 05 Apr 2016 10:54:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Steven Chamberlain <steven@pyro.eu.org>:
Extra info received and forwarded to list. Copy sent to Debian running develpment group <pkg-running-devel@lists.alioth.debian.org>.
(Tue, 05 Apr 2016 10:54:09 GMT) (full text, mbox, link).
Message #20 received at 819998@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
# waiting on more info from me; see last paragraph
tags 819998 + moreinfo
thanks
Hi!
Christian PERRIER wrote:
> I suppose that this probably affects several packages and not this
> one, only. If so, are there guidelines somewhere about Doing The Right
> Thing?
On kfreebsd we have a libusb2-dev, a different codebase that
provides an interface generally compatible with libusb-1.0 (and others).
Although it has a Provides: libusb-1.0-0-dev, that can only work if the
Build-Depends: libusb-1.0-0-dev doesn't specify a version constrain, and
in this case it does.
This is quite common. So I typically recommend this:
Build-Depends: libusb-1.0-0-dev (>= 1.0.9) [!kfreebsd-any], libusb2-dev [kfreebsd-any]
and I perhaps should add this to some porting FAQ. Or, perhaps
someone can suggest something better we could do than the Provides:.
(Also note the comma between the alternative dependencies; a pipe does
not do the obvious thing).
For hurd, there is no USB stack yet, so... I guess there is no solution
at the mooment. When there is, I'm not sure what the Build-Depends will
need to be. With the above, it would stay BD-Uninstallable on hurd,
waiting on libusb-1.0-0-dev, which is nice for porters to see clearly it
is waiting on USB support. The out-of-date package can be decrufted on
hurd-i386 if it is non-functional without USB.
On kfreebsd, the next problem is that garmin-forerunner-tools
./configure uses /usr/bin/$(DEB_HOST_GNU_TYPE)-pkg-config and not the
regular pkg-config. It scans only the multiarch path such as:
/usr/lib/x86_64-linux-gnu/pkgconfig/libusb-1.0.pc
but on kfreebsd it cannot find the libusb-1.0.pc provided by
libusb2-dev:
/usr/lib/pkgconfig/libusb-1.0.pc
because we did not convert libusb2-dev to multiarched paths yet.
This is the first time I'm seeing this; I suppose it is caused by
--host=$(DEB_HOST_GNU_TYPE). I could multiarch libusb2-dev, but I
worry some other packages do the opposite, and look in only
/usr/lib/pkgconfig and not the multiarch paths...
I think I should look into that, do some test rebuilds of reverse-deps
in the archive, and then get back to you.
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
[signature.asc (application/pgp-signature, inline)]
Added tag(s) moreinfo.
Request was from Steven Chamberlain <steven@pyro.eu.org>
to control@bugs.debian.org.
(Tue, 05 Apr 2016 10:54:17 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 15:24:41 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.