[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS

Stan Gammons sg063015 at gmail.com
Fri Sep 19 21:18:19 UTC 2014


On 09/19/14 07:23, Charles Lepple wrote:
> On Sep 19, 2014, at 7:26 AM, Stan Gammons <sg063015 at gmail.com> wrote:
>
>> --enable-debug-log was in the original makefile.  I added --enable-debug.  At this point I guess trying to build from source or go back to OpenBSD 5.5 are the only options left.
> Ah, my confusion was that --enable-debug-log was wrapped in ".ifdef DEBUG", which I suspect is not enabled by default.
>
> On the other hand, if you add --enable-debug outside that .ifdef, it should work: I forgot that autoconf scripts allow abbreviations of long option flags.
>
> If you do have to go back to 5.5, you may want to log something with the OpenBSD folks to mention the regression.
>

Looks like this patch fixed the problem.  I see the status change now.

Index: usb_quirks.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.73
diff -u -p -r1.73 usb_quirks.c
--- usb_quirks.c	20 Mar 2014 15:07:11 -0000	1.73
+++ usb_quirks.c	19 Sep 2014 13:29:43 -0000
@@ -109,6 +109,8 @@ const struct usbd_quirk_entry {
   { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY920,	    ANY,   { UQ_BROKEN_BIDIR }},
   { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY800,	    ANY,   { UQ_BROKEN_BIDIR }},
  
+ { USB_VENDOR_APC, USB_PRODUCT_APC_UPS,			ANY,	{ UQ_BAD_HID }},
+ { USB_VENDOR_APC, USB_PRODUCT_APC_UPS5G,		ANY,	{ UQ_BAD_HID }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE,		ANY,	{ UQ_BAD_HID }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_3G,	ANY,	{ UQ_BAD_HID }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_3GS,	ANY,	{ UQ_BAD_HID }},



Stan




More information about the Nut-upsuser mailing list