From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 6/6] insane.bbclass: Make ldd exec_prefix error reporting easier to read
Date: Wed, 6 Jun 2012 09:53:00 -0500 [thread overview]
Message-ID: <4FCF6ECC.8010503@windriver.com> (raw)
In-Reply-To: <8d70e60114dace932ce1f205758593c931f59ed2.1338994308.git.mark.hatle@windriver.com>
Sorry please ignore this one, I sent it by accident.. The patch wasn't finished.
--Mark
On 6/6/12 9:53 AM, Mark Hatle wrote:
> Remove the long obtuse sysroot path from the ldd output, making the error
> message significantly easier to read and understand.
>
> Signed-off-by: Mark Hatle<mark.hatle@windriver.com>
> ---
> meta/classes/insane.bbclass | 9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 4d139e8..e845250 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -251,7 +251,14 @@ def package_qa_check_unsafe_references_in_binaries(path, name, d, elf, messages)
> return False
>
> if sysroot_path_usr in ldd_output:
> - error_msg = pn + ": %s links to something under exec_prefix" % path
> + ldd_output = ldd_output.replace(sysroot_path, "")
> +
> + pkgdest = d.getVar('PKGDEST', True)
> + packages = d.getVar('PACKAGES', True)
> +
> + short_path = path.replace('%s/%s' % (pkgdest, packages), "", 1)
> +
> + error_msg = pn + ": %s links to something under exec_prefix (%s)" % (short_path, exec_prefix)
> package_qa_handle_error("unsafe-references-in-binaries", error_msg, d)
> error_msg = "ldd reports: %s" % ldd_output
> package_qa_handle_error("unsafe-references-in-binaries", error_msg, d)
next prev parent reply other threads:[~2012-06-06 15:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 14:53 [PATCH 0/6] Misc package fixes Mark Hatle
2012-06-06 14:53 ` [PATCH 1/6] beecrypt: disable java Mark Hatle
2012-06-06 14:53 ` [PATCH 2/6] groff: Fix build on Fedora 17 Mark Hatle
2012-06-06 14:53 ` [PATCH 3/6] shadow-native: Disable nscd support Mark Hatle
2012-06-06 14:53 ` [PATCH 4/6] shared-mime-info: fix build race condition Mark Hatle
2012-06-07 1:26 ` Colin Walters
2012-06-06 14:53 ` [PATCH 5/6] gettext: install libgettextlib.a before removing it Mark Hatle
2012-06-06 14:53 ` [PATCH 6/6] insane.bbclass: Make ldd exec_prefix error reporting easier to read Mark Hatle
2012-06-06 14:53 ` Mark Hatle [this message]
2012-06-08 10:45 ` [PATCH 0/6] Misc package fixes Richard Purdie
2012-06-11 17:33 ` Flanagan, Elizabeth
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=4FCF6ECC.8010503@windriver.com \
--to=mark.hatle@windriver.com \
--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