[oe] [PATCH] gpsd_2.94.bb: fix CROSS COMPILE badness
Koen Kooi
k.kooi at student.utwente.nl
Mon Jul 5 21:23:07 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05-07-10 03:39, Graham Gower wrote:
> configure.ac shouldn't check the host system for includes/libraries,
> disable checking for libusb.
I actually need libusb support for gpsd :(
>
> Signed-off-by: Graham Gower <graham.gower at gmail.com>
> ---
> .../gpsd/files/2.94-remove-libusb-badness.patch | 32 ++++++++++++++++++++
> recipes/gpsd/gpsd_2.94.bb | 5 ++-
> 2 files changed, 35 insertions(+), 2 deletions(-)
> create mode 100644 recipes/gpsd/files/2.94-remove-libusb-badness.patch
>
> diff --git a/recipes/gpsd/files/2.94-remove-libusb-badness.patch b/recipes/gpsd/files/2.94-remove-libusb-badness.patch
> new file mode 100644
> index 0000000..1517ede
> --- /dev/null
> +++ b/recipes/gpsd/files/2.94-remove-libusb-badness.patch
> @@ -0,0 +1,32 @@
> +--- gpsd-2.94/configure.ac.orig 2010-07-05 11:01:08.000000000 +0930
> ++++ gpsd-2.94/configure.ac 2010-07-05 11:01:44.000000000 +0930
> +@@ -243,18 +243,18 @@
> + # /usr/include/libusb-*/libusb.h
> + #
> + AC_MSG_CHECKING([for libusb version >= 1.0.0])
> +-if test -f /usr/include/libusb-*/libusb.h ;
> +-then
> +- usb=$(basename /usr/lib/libusb-*.so | sed -e s/\.so// -e s/^lib//)
> +- AC_DEFINE([HAVE_LIBUSB], [], [will link with -l$usb; ])
> +- LIBUSB=-l${usb}
> +- INCUSB=-I/usr/include/lib${usb}
> +- ac_libusb=yes
> +- AC_MSG_RESULT([found.])
> +-else
> +- ac_libusb=yes
> ++#if test -f /usr/include/libusb-*/libusb.h ;
> ++#then
> ++# usb=$(basename /usr/lib/libusb-*.so | sed -e s/\.so// -e s/^lib//)
> ++# AC_DEFINE([HAVE_LIBUSB], [], [will link with -l$usb; ])
> ++# LIBUSB=-l${usb}
> ++# INCUSB=-I/usr/include/lib${usb}
> ++# ac_libusb=yes
> ++# AC_MSG_RESULT([found.])
> ++#else
> ++ ac_libusb=no
> + AC_MSG_RESULT([not found.])
> +-fi
> ++#fi
> + AC_SUBST(LIBUSB)
> + AC_SUBST(INCUSB)
> +
> diff --git a/recipes/gpsd/gpsd_2.94.bb b/recipes/gpsd/gpsd_2.94.bb
> index 5cf8b2e..2d63b32 100644
> --- a/recipes/gpsd/gpsd_2.94.bb
> +++ b/recipes/gpsd/gpsd_2.94.bb
> @@ -1,9 +1,10 @@
> require gpsd.inc
>
> -SRC_URI += "file://libtool.patch"
> +SRC_URI += "file://libtool.patch \
> + file://2.94-remove-libusb-badness.patch"
> SRC_URI[gpsd.md5sum] = "ce70bcd707ac1df861d4c72f503c09d1"
> SRC_URI[gpsd.sha256sum] = "1520b87d106d198aa42137db4b230615dbd0d06b04e6fcc84e010172fba2da41"
>
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>
> PARALLEL_MAKE = ""
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMMk07MkyGM64RGpERAi1IAJ0YOlrlMIto2vYkZ4xssH1sbRGpGACghMZZ
ByEOFbWFL6KdcXEId6J/Zu4=
=vI5w
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list