From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] libatasmart-0.13: resolve cross compile problem
Date: Fri, 24 Sep 2010 11:29:25 +0200 [thread overview]
Message-ID: <i7hr1l$kte$1@dough.gmane.org> (raw)
In-Reply-To: <1285320191-22618-1-git-send-email-sledz@dresearch.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24-09-10 11:23, Steffen Sledz wrote:
> * This patch solves a cross/native compile problem:
> | ./strpool atasmart.c atasmart.strpool.c
> | ./strpool: ./strpool: cannot execute binary file
>
> Signed-off-by: Steffen Sledz <sledz@dresearch.de>
Acked-by: Koen Kooi <koen@openembedded.org>
> ---
> recipes/devicekit/libatasmart-0.13/strpool.patch | 11 +++++++++++
> recipes/devicekit/libatasmart_0.13.bb | 12 +++---------
> 2 files changed, 14 insertions(+), 9 deletions(-)
> create mode 100644 recipes/devicekit/libatasmart-0.13/strpool.patch
>
> diff --git a/recipes/devicekit/libatasmart-0.13/strpool.patch b/recipes/devicekit/libatasmart-0.13/strpool.patch
> new file mode 100644
> index 0000000..e9f6ab3
> --- /dev/null
> +++ b/recipes/devicekit/libatasmart-0.13/strpool.patch
> @@ -0,0 +1,11 @@
> +--- git/Makefile.am.orig 2010-09-24 11:03:40.917602895 +0200
> ++++ git/Makefile.am 2010-09-24 11:07:04.145852660 +0200
> +@@ -81,5 +81,8 @@
> + BUILT_SOURCES = \
> + atasmart.strpool.c
> +
> ++strpool: $(strpool_SOURCES)
> ++ $(BUILD_CC) -o $@ $?
> ++
> + atasmart.strpool.c: atasmart.c strpool
> + $(top_builddir)/strpool $< $@
> diff --git a/recipes/devicekit/libatasmart_0.13.bb b/recipes/devicekit/libatasmart_0.13.bb
> index 992ff3e..4a4986e 100644
> --- a/recipes/devicekit/libatasmart_0.13.bb
> +++ b/recipes/devicekit/libatasmart_0.13.bb
> @@ -2,20 +2,14 @@ DEPENDS = "udev"
> LICENSE = "LGPL"
>
> SRCREV = "a80d7d5c25e88adea7b8e843cdb57143e6cfb46b"
> -SRC_URI = "git://git.0pointer.de/libatasmart.git;protocol=git"
> +SRC_URI = "git://git.0pointer.de/libatasmart.git;protocol=git \
> + file://strpool.patch"
>
> S = "${WORKDIR}/git"
> -PR = "r1"
> +PR = "r2"
>
> inherit autotools lib_package
>
> -do_compile_prepend() {
> - rm strpool -f
> - ${BUILD_CC} -o strpool strpool.c
> - chmod +x strpool
> -}
> -
> do_install_append() {
> sed -i -e s://:/:g -e s:${base_libdir}/libudev.la:-ludev:g ${D}${libdir}/libatasmart.la
> }
> -
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMnG91MkyGM64RGpERAlY2AJ9wplA9f6GVaujRIBGDCnAoxS55JgCfZ4Aq
9hQELdWnRM7EXaeK4hxcdSI=
=zbi2
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2010-09-24 9:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 11:30 libatasmart_0.13.bb: `No package 'libudev' found` and `./strpool: ./strpool: cannot execute binary file` Paul Menzel
2010-09-23 12:21 ` Steffen Sledz
2010-09-23 13:36 ` Steffen Sledz
2010-09-23 14:13 ` Steffen Sledz
2010-09-24 9:03 ` Steffen Sledz
2010-09-24 9:23 ` [PATCH] libatasmart-0.13: resolve cross compile problem Steffen Sledz
2010-09-24 9:29 ` Koen Kooi [this message]
2010-09-24 9:55 ` Paul Menzel
2010-09-24 10:01 ` Steffen Sledz
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='i7hr1l$kte$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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox