Package: libmtp7
Version: 0.2.4-1
Severity: normal
Tags: patch

libmtp7 depends on udev | hotplug on all systems. However udev and
hotplug are only available on Linux systems. For example on
GNU/kFreeBSD, the job udev does is done directly by the kernel.

Please find a patch below to fix that.


diff -u libmtp-0.2.4/debian/rules libmtp-0.2.4/debian/rules
--- libmtp-0.2.4/debian/rules
+++ libmtp-0.2.4/debian/rules
@@ -70,0 +71,6 @@
+
+binary-predeb/libmtp7::
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+       echo "udev=udev | hotplug" >> debian/libmtp7.substvars
+endif
+
diff -u libmtp-0.2.4/debian/control libmtp-0.2.4/debian/control
--- libmtp-0.2.4/debian/control
+++ libmtp-0.2.4/debian/control
@@ -12,7 +12,7 @@
 Package: libmtp7
 Section: libs
 Architecture: any
-Depends: udev | hotplug, ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${udev}
 Description: Media Transfer Protocol (MTP) library
  A library for communicating with MTP aware devices.  MTP (Media
  Transfer Protocol) is necessary to communicate with some USB portable


-- System Information:
Debian Release: lenny/sid
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 6.2-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to