From makoto at ki.nu Thu Oct 10 00:37:12 2013 From: makoto at ki.nu (Makoto Fujiwara) Date: Thu, 10 Oct 2013 09:37:12 +0900 Subject: [libhid-discuss] On DragonFlyBSD Message-ID: Hi, I'm just subscribed to this list, thank you. I'm packaging libhid on pkgsrc, Mainly-for-NetBSD-application-packing. Pkgsrc also supports several operating systems, such that DragonFly BSD etc. At packaging for DragonFly, I needed attached patch for libhid-0.2.16. Just for your information, (Please ignore '== -> =' fix in file configure) Thanks again, --- Makoto Fujiwara, Chiba, Japan, Narita Airport and Disneyland prefecture. ---- $NetBSD$ (1) ERROR: [check-portability.awk] => Found test ... == ...: ERROR: [check-portability.awk] configure: if test "$py_version" == "None"; then (2) Add DragonflyBSD --- configure.orig 2007-04-26 09:25:25.000000000 +0900 +++ configure 2013-10-10 07:33:08.485190000 +0900 @@ -2757,7 +2757,7 @@ _ACEOF { echo "$as_me:$LINENO: result: Linux" >&5 echo "${ECHO_T}Linux" >&6; } ;; - *-freebsd*|*-openbsd*|*-netbsd*|*-k*bsd*-gnu) + *-freebsd*|*-openbsd*|*-netbsd*|*-k*bsd*-gnu|*-dragonfly*) cat >>confdefs.h <<\_ACEOF #define OS_BSD @@ -22774,7 +22774,7 @@ echo $ECHO_N "checking for Python librar py_version=`$PYTHON -c "from distutils.sysconfig import *; \ from string import join; \ print join(get_config_vars('VERSION'))"` - if test "$py_version" == "None"; then + if test "$py_version" = "None"; then if test -n "$PYTHON_VERSION"; then py_version=$PYTHON_VERSION else $NetBSD$ lshid.c:32:87: error: parameter 'len' set but not used [-Werror=unused-but-set-parameter] --- test/lshid.c.orig 2007-03-31 23:27:51.000000000 +0900 +++ test/lshid.c 2013-10-10 07:40:18.961805000 +0900 @@ -29,7 +29,7 @@ char *hid_id[32]; /* FIXME: 32 devices M struct usb_dev_handle; -bool device_iterator (struct usb_dev_handle const* usbdev, void* custom, unsigned int len) +bool device_iterator (struct usb_dev_handle const* usbdev, void* custom __attribute((unused)), unsigned int len __attribute((unused))) { bool ret = false; int i; @@ -37,8 +37,10 @@ bool device_iterator (struct usb_dev_han const struct usb_device *device = usb_device((struct usb_dev_handle *)usbdev); /* only here to prevent the unused warning */ +#if 0 /* TODO remove */ len = *((unsigned long*)custom); +#endif /* Obtain the device's full path */ //sprintf(current_dev_path, "%s/%s", usbdev->bus->dirname, usbdev->device->filename);