From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [v2 1/4] eglibc: fix builds on fedora 17 alpha
Date: Sat, 14 Apr 2012 11:14:50 +0100 [thread overview]
Message-ID: <1334398490.7309.93.camel@ted> (raw)
In-Reply-To: <b903308f5d95b5c7987c251cbf9da62682363149.1334390876.git.nitin.a.kamble@intel.com>
On Sat, 2012-04-14 at 01:59 -0700, nitin.a.kamble@intel.com wrote:
> From: Nitin A Kamble <nitin.a.kamble@intel.com>
>
> Generally distros keep perl at /sur/bin/perl
> Fedora 17 alpha also has /bin/perl
>
> this causes eglibc build on such distros to put perl interpreter path in
> the perl scripts as /bin/perl
>
> But we set perl location for target as /usr/bin/perl
>
> This mismatch of perl path causes failure of rootfs image creation
> like this:
>
> | error: Failed dependencies:
> | /bin/perl is needed by eglibc-utils-2.13-r23+svnr15508.i586
> NOTE: package core-image-sato-1.0-r0: task do_rootfs: Failed
> ERROR: Task 8
> (/home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato.bb,
> do_rootfs) failed with exit code '1'
>
> This Fixes bug : [YOCTO #2286]
>
> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
> ---
> meta/recipes-core/eglibc/eglibc-package.inc | 5 +++++
> meta/recipes-core/eglibc/eglibc_2.13.bb | 2 +-
> meta/recipes-core/eglibc/eglibc_2.15.bb | 2 +-
> 3 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
> index 9e45fc1..d13cb35 100644
> --- a/meta/recipes-core/eglibc/eglibc-package.inc
> +++ b/meta/recipes-core/eglibc/eglibc-package.inc
> @@ -76,6 +76,11 @@ do_install_append () {
> rm -f ${D}${sysconfdir}/localtime
>
> oe_multilib_header bits/syscall.h
> +
> + if [ -f ${D}${bindir}/mtrace ]
> + then
> + sed -e "s# /bin/perl# ${bindir}/perl#" -i ${D}${bindir}/mtrace
> + fi
> }
I'd recommend something like:
sed -i -e '1s,#!.*perl,#! ${bindir}/perl,' ${D}${bindir}/mtrace
which will only match on the first line and matches .*perl rather
than /bin/perl.
Cheers,
Richard
next prev parent reply other threads:[~2012-04-14 10:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-14 8:59 [v2 0/4] grub & eglibc fixes for fedora 17 alpha nitin.a.kamble
2012-04-14 8:59 ` [v2 1/4] eglibc: fix builds on " nitin.a.kamble
2012-04-14 10:14 ` Richard Purdie [this message]
2012-04-14 12:27 ` Richard Purdie
2012-04-14 8:59 ` [v2 2/4] grub-1.99: use gcc-cross for building the target binaries nitin.a.kamble
2012-04-14 8:59 ` [v2 3/4] grub-efi-native, grub: fix build with gcc 4.7 nitin.a.kamble
2012-04-14 8:59 ` [v2 4/4] grub-1.99: fix configure error nitin.a.kamble
2012-04-16 15:36 ` [v2 0/4] grub & eglibc fixes for fedora 17 alpha Saul Wold
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=1334398490.7309.93.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@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