Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
The new version uses asm/byteorder.h and its function __le16_to_cpu, which do not exist in FreeBSD. I will attach a patch. Please let me know if it is OK to check in the patch.
Created an attachment (id=134833) [details] files/usbutils-0.73-freebsd.patch Patch to use an alternate method in FreeBSD
Created an attachment (id=134834) [details] usbutils-0.73.ebuild The ebuild change to use this patch
usbutils uses autotools ... so should you
Mike, can you elaborate: how would you patch this?
system related defines are not valid in autotool based systems add proper configure checks and key off of those defines
Created an attachment (id=134912) [details] usbutils-0.73.ebuild New ebuild to patch and reconf autotools instead
Created an attachment (id=134913) [details] files/usbutils-0.73-byteorder.patch New patch using autotools to determine how to deal with byteorder. Mike, let me know what you think.
This patch has been submitted to upstream. Please advise on how to proceed for 0.73. Thanks, Joe
i'd indent stuff myself ... #if moo # include ... # if ... # .... but otherwise looks fine did you submit this upstream ?
on second thought, dont use _BYTE_ORDER there is an AC macro: AC_C_BIGENDIAN this will define "WORDS_BIGENDIAN" if targetting a big endian machine
Created an attachment (id=135897) [details] files/usbutils-0.73-byteorder.patch OK, see new patch and let me know how this looks. I did submit to upstream, but I'm sure they will accept this change as well.
Created an attachment (id=135899) [details] files/usbutils-0.73-byteorder.patch Use this one instead.
Created an attachment (id=135900) [details] files/usbutils-0.73-byteorder.patch This one is even more clear I think...
one space, not two ... but otherwise looks fine side note, never use "#" comments in configure.ac files ... use "dnl"
Fixed the indentation (using one space now) and committed. Thanks Mike! Submitted new AC endian macro tweak upstream.