Bug#729545: libgphoto2-2-dev: libusb dependency issue on kfreebsd
Package: libgphoto2-2-dev
Version: 2.4.14-2.3
Severity: serious
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Control: block 725951 by -1
Hi,
The recent change to the libusb dependency of libgphoto2-2-dev created
an odd problem on kfreebsd when trying to build gvfs:
https://buildd.debian.org/status/package.php?p=gvfs
> gvfs build-depends on:
> - libgphoto2-2-dev (>= 2.4.0)
> libgphoto2-2-dev depends on:
> - libusb-1.0-0-dev | --virtual-libusb-1.0-0-dev
> gvfs build-depends on:
> - libmtp-dev (>= 1.1.0)
> libmtp-dev depends on:
> - libusb-dev
> libusb2-dev conflicts with:
> - libusb-dev
kfreebsd has its own libusb-dev different from the implementations
available on linux. I'm not 100% sure this is the best way to express
it, but this patch works for me:
--- debian/control.orig 2013-07-25 22:25:49.000000000 +0100
+++ debian/control 2013-11-14 02:50:19.196889819 +0000
@@ -11,7 +11,7 @@
, libtool
, libltdl-dev
, zlib1g-dev
- , libusb-1.0-0-dev [!hurd-i386]
+ , libusb-1.0-0-dev [linux-any], libusb-dev [kfreebsd-any]
, libgpmg1-dev [linux-any]
, pkg-config
, libexif-dev (>= 0.5.9)
@@ -32,7 +32,7 @@
Depends:
libgphoto2-2 (= ${binary:Version})
, libexif-dev
- , libusb-1.0-0-dev [!hurd-i386]
+ , libusb-1.0-0-dev [linux-any], libusb-dev [kfreebsd-any]
, libc-dev
, pkg-config
, ${misc:Depends}
After rebuilding the libgphoto2 package this way on kfreebsd, it can
satisfy the build-deps of gvfs.
The above change should not have any affect on hurd-i386, where
libgphoto2 is built without any USB functionality currently.
Thanks!
-- System Information:
Debian Release: 7.1
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 9.0-2-amd64-xenhvm
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: