Package: libhid Severity: important Tags: patch Hi,
libhid fails to build on GNU/kFreeBSD because the configure script does not detect this system correctly. Also there is a warning because the retries variable is not use on such a system. As -Wall is used to build the package, their is a failure. Please find attached a patch to fix the problem. Could you please add it in the next upload? Thanks in advance, Aurelien -- System Information: Debian Release: testing/unstable Architecture: kfreebsd-i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: GNU/kFreeBSD 5.4-1-686 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32 Status: in BTS --- libhid-0.2.15.orig/m4/md_check_os.m4 +++ libhid-0.2.15/m4/md_check_os.m4 @@ -9,7 +9,7 @@ MD_OS=linux AC_MSG_RESULT(Linux) ;; - *-freebsd*|*-openbsd*|*-netbsd*) + *-freebsd*|*-openbsd*|*-netbsd*|*-k*bsd*-gnu) AC_DEFINE(OS_BSD, [], [define to 1 if building for BSD]) AC_SUBST(OS_BSD) MD_OS=bsd --- libhid-0.2.15.orig/configure +++ libhid-0.2.15/configure @@ -2280,7 +2280,7 @@ echo "$as_me:$LINENO: result: Linux" >&5 echo "${ECHO_T}Linux" >&6 ;; - *-freebsd*|*-openbsd*|*-netbsd*) + *-freebsd*|*-openbsd*|*-netbsd*|*-k*bsd*-gnu) cat >>confdefs.h <<\_ACEOF #define OS_BSD --- libhid-0.2.15.orig/src/bsd.c +++ libhid-0.2.15/src/bsd.c @@ -12,6 +12,8 @@ hid_return hid_os_force_claim(HIDInterface* const hidif, int const interface, HIDInterfaceMatcher const* const matcher, unsigned short retries) { + retries = retries; + if (!hidif) { ERROR("cannot open NULL HIDInterface."); return HID_RET_INVALID_PARAMETER;