Package: gphoto2
Severity: important
Tags: patch
Dear Maintainer,
gphoto2 currently FTBFS on hurd-i386 because of the unconditional use of
PATH_MAX in gphoto2/main.c. The attached patch should fix this issue.
I've set the size of the buf variable to 256 instead of PATH_MAX, as it is done
a few lines above. I'm not sure there is a way to get the real size of the
buffer, but it seems to be supposed to be 256
(http://libgphoto2.sourcearchive.com/documentation/2.4.6/structSetting.html).
WBR,
Cyril Roelandt.
-- System Information:
Debian Release: wheezy/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff --git a/gphoto2/main.c b/gphoto2/main.c
index d523486..1ea824f 100644
--- a/gphoto2/main.c
+++ b/gphoto2/main.c
@@ -43,7 +43,6 @@
#include <locale.h>
#include <fcntl.h>
#include <utime.h>
-#include <limits.h>
#include <errno.h>
#include <sys/time.h>
@@ -1952,7 +1951,7 @@ main (int argc, char **argv, char **envp)
}
}
if (!gp_params.hook_script) {
- char buf[PATH_MAX];
+ char buf[256];
if (gp_setting_get("gphoto2","hook-script",buf)>=0) {
gp_params.hook_script = strdup(buf);
/* Run init hook */
_______________________________________________
Pkg-phototools-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel