--- Begin Message ---
Package: libgphoto2
Version: 2.3.1-7
Severity: important
Hi,
The Hurd doesn't have USB support, so libusb can't be build. In the
meanwhile, please disable the libusb-dev dependency in libgphoto2, as
the attached patch does.
Also attached is a patch that fixes compilation: the Hurd has no such
hard limit like PATH_MAX, and actually the tmppath buffer is useless.
Samuel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-xen
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
--
Samuel Thibault <[EMAIL PROTECTED]>
PS> Salut ! J'ai un sujet de philo à vous soumettre : "Suffit-il
PS> d'observer pour connaître" Idées + plan Merçi
Oui, ya qu'a t'observer pour connaître le fait que tu es une feignasse.
-+- FF in: Guide du Neuneu d'Usenet - Neuneu fait de la philo -+-
--- libgphoto2-2.3.1/debian/control.orig 2007-07-24 21:21:23.000000000
+0200
+++ libgphoto2-2.3.1/debian/control 2007-07-24 21:21:42.000000000 +0200
@@ -2,7 +2,7 @@
Section: libs
Priority: optional
Maintainer: Frederic Peters <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 5.0.0), zlib1g-dev, libtool, libusb-dev (>=
1:0.1.5), libgpmg1-dev [alpha amd64 arm armeb armel hppa i386 ia64 lpia m32r
m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc],
pkg-config, libexif-dev (>= 0.5.9), libjpeg62-dev, type-handling (>= 0.2.1),
libhal-dev (>= 0.5.0-1) [alpha amd64 arm armeb armel hppa i386 ia64 lpia m32r
m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc], doxygen,
libdbus-1-dev, dpatch
+Build-Depends: debhelper (>> 5.0.0), zlib1g-dev, libtool, libusb-dev (>=
1:0.1.5) [!hurd-i386], libgpmg1-dev [alpha amd64 arm armeb armel hppa i386 ia64
lpia m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc],
pkg-config, libexif-dev (>= 0.5.9), libjpeg62-dev, type-handling (>= 0.2.1),
libhal-dev (>= 0.5.0-1) [alpha amd64 arm armeb armel hppa i386 ia64 lpia m32r
m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc], doxygen,
libdbus-1-dev, dpatch
Build-Conflicts: liblockdev1-dev
Standards-Version: 3.7.2
@@ -12,7 +12,7 @@
Provides: libgphoto2port-dev, libgphoto2-dev
Replaces: libgphoto2port-dev, libgphoto2-dev
Conflicts: libgphoto2port-dev, gphoto2-dev (<= 2.1.1)
-Depends: libgphoto2-2 (=${Source-Version}), libexif-dev, libusb-dev,
libc6-dev, pkg-config
+Depends: libgphoto2-2 (=${Source-Version}), libexif-dev, libusb-dev
[!hurd-i386], libc6-dev, pkg-config
Description: gphoto2 digital camera library (development files)
The gphoto2 library can be used by applications to access various
digital camera models.
reverted:
--- libgphoto2-2.3.1/debian/control.in.orig 2007-07-24 21:23:39.000000000
+0200
+++ libgphoto2-2.3.1/debian/control.in 2007-07-24 21:23:55.000000000 +0200
@@ -2,7 +2,7 @@
Section: libs
Priority: optional
Maintainer: Frederic Peters <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 5.0.0), zlib1g-dev, libtool, libusb-dev (>=
1:0.1.5), libgpmg1-dev [EMAIL PROTECTED]@], pkg-config, libexif-dev (>= 0.5.9),
libjpeg62-dev, type-handling (>= 0.2.1), libhal-dev (>= 0.5.0-1) [EMAIL
PROTECTED]@], doxygen, libdbus-1-dev, dpatch
+Build-Depends: debhelper (>> 5.0.0), zlib1g-dev, libtool, libusb-dev (>=
1:0.1.5) [!hurd-i386], libgpmg1-dev [EMAIL PROTECTED]@], pkg-config,
libexif-dev (>= 0.5.9), libjpeg62-dev, type-handling (>= 0.2.1), libhal-dev (>=
0.5.0-1) [EMAIL PROTECTED]@], doxygen, libdbus-1-dev, dpatch
Build-Conflicts: liblockdev1-dev
Standards-Version: 3.7.2
@@ -12,7 +12,7 @@
Provides: libgphoto2port-dev, libgphoto2-dev
Replaces: libgphoto2port-dev, libgphoto2-dev
Conflicts: libgphoto2port-dev, gphoto2-dev (<= 2.1.1)
-Depends: libgphoto2-2 (=${Source-Version}), libexif-dev, libusb-dev,
libc6-dev, pkg-config
+Depends: libgphoto2-2 (=${Source-Version}), libexif-dev, libusb-dev
[!hurd-i386], libc6-dev, pkg-config
Description: gphoto2 digital camera library (development files)
The gphoto2 library can be used by applications to access various
digital camera models.
--- libgphoto2-2.3.1/debian/rules.orig 2007-07-24 19:39:03.674278000 +0000
+++ libgphoto2-2.3.1/debian/rules 2007-07-24 19:40:00.000000000 +0000
@@ -15,6 +15,10 @@
endif
endif
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
+ CONFIGURE_OPTIONS += --without-libusb
+endif
+
major=2
CFLAGS = -g
@@ -31,7 +35,7 @@
configure: configure-stamp
configure-stamp: patch
dh_testdir
- CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --sysconfdir=/etc
--mandir=\$${prefix}/share/man --with-drivers=all
+ CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --sysconfdir=/etc
--mandir=\$${prefix}/share/man --with-drivers=all $(CONFIGURE_OPTIONS)
touch configure-stamp
build: build-stamp
--- camlibs/digita/digita.c.orig 2007-07-24 20:06:30.579858000 +0000
+++ camlibs/digita/digita.c 2007-07-24 20:10:19.000000000 +0000
@@ -137,7 +137,6 @@
/* Walk through all of the pictures building a list of folders */
for (i = 0; i < camera->pl->num_pictures; i++) {
int found;
- char tmppath[PATH_MAX + 1];
char *path;
/* Check to make sure the path matches the folder we're */
@@ -158,22 +157,19 @@
if (strchr(path, '/') != path + strlen(path) - 1)
continue;
- strncpy(tmppath, path, MIN(strlen(path) - 1, PATH_MAX));
- tmppath[strlen(path) - 1] = 0;
-
found = 0;
for (i1 = 0; i1 < gp_list_count(list); i1++) {
const char *name;
gp_list_get_name(list, i1, &name);
- if (!strcmp(name, tmppath)) {
+ if (!strcmp(name, path)) {
found = 1;
break;
}
}
if (!found)
- gp_list_append(list, tmppath, NULL);
+ gp_list_append(list, path, NULL);
}
return GP_OK;
--- End Message ---