From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] gpsd_2.94.bb: fix CROSS COMPILE badness
Date: Mon, 05 Jul 2010 23:23:07 +0200 [thread overview]
Message-ID: <i0tifs$aq3$1@dough.gmane.org> (raw)
In-Reply-To: <4C3137CF.8090503@gmail.com>
-----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@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-----
next prev parent reply other threads:[~2010-07-05 21:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 1:39 [PATCH] gpsd_2.94.bb: fix CROSS COMPILE badness Graham Gower
2010-07-05 17:44 ` Khem Raj
2010-07-05 21:23 ` Koen Kooi [this message]
2010-07-05 21:40 ` Henning Heinold
2010-07-06 1:06 ` Graham Gower
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i0tifs$aq3$1@dough.gmane.org' \
--to=k.kooi@student.utwente.nl \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.