Stan Gammons
2014-Sep-19 11:26 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
On Sep 19, 2014 5:55 AM, "Charles Lepple" <clepple at gmail.com> wrote:> > On Sep 18, 2014, at 10:09 PM, Stan Gammons <sg063015 at gmail.com> wrote: > > > > > On 09/17/14 22:31, Charles Lepple wrote: > >> Can you rebuild the libusb1 pkg as a port, with the DEBUG flag turnedon?> > > > > > Is --enable-debug the way one turns it on? I modified the Makefile asshown below, then did a make and make install.> > I am not sure how to tell OpenBSD to use that ".ifdef DEBUG" section. Ithink FreeBSD would let you set a DEBUG checkbox when you run "make config", but that doesn't seem to work.> > In any event, it looks like the right option is the existing"--enable-debug-log" flag. The path of least resistance is probably to add it to the first CONFIGURE_ARGS, after ${CONFIGURE_SHARED}:> > CONFIGURE_ARGS += ${CONFIGURE_SHARED} --enable-debug-log > > -- > Charles Lepple > clepple at gmail > >--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. Thanks for all the help. Stan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140919/5d7248d3/attachment.html>
Charles Lepple
2014-Sep-19 12:23 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
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. -- Charles Lepple clepple at gmail
Stan Gammons
2014-Sep-19 21:18 UTC
[Nut-upsuser] Nut 2.7.2 on OpenBSD 5.6 with APC USB UPS
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