All of lore.kernel.org
 help / color / mirror / Atom feed
From: Holger Freyther <holger+oe@freyther.de>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] sanity.bbclass: Check for the presennce of libc.a
Date: Sun, 12 Sep 2010 17:24:54 +0800	[thread overview]
Message-ID: <4C8C9C66.7030006@freyther.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]


The insmod.static binary links statically and requires the libc.a
to be present. On Fedora glibc-static is not installed by default
when installing development headers. Warn the user that he needs
to have that installed.

Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
---
 classes/sanity.bbclass |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)



[-- Attachment #2: 0001-sanity.bbclass-Check-for-the-presennce-of-libc.a.patch --]
[-- Type: text/x-patch, Size: 934 bytes --]

diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 575530a..7f99251 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -99,6 +99,18 @@ def check_sanity(e):
 		missing = missing.rstrip(',')
 		messages = messages + "Please install following missing utilities: %s\n" % missing
 
+	# Libs that need to be present. E.g. libc.a for insmod.static
+	required_libs = "libc.a"
+	missing = ""
+	for lib in required_libs.split():
+		if not os.path.exists("/lib/%s" % lib) and not os.path.exists("/usr/lib/%s" % lib):
+			missing = "%s, %s" % (missing, lib)
+
+	if missing != "":
+		missing = missing.rstrip(',')
+		messages = "%sPlease install the following libraries: %s\n" % (messages, missing)
+
+
 	try:
 	    if os.path.basename(os.readlink('/bin/sh')) == 'dash':
 		    messages = messages + "Using dash as /bin/sh causes various subtle build problems, please use bash instead.\n"


             reply	other threads:[~2010-09-12  9:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-12  9:24 Holger Freyther [this message]
2010-09-12 10:54 ` [PATCH] sanity.bbclass: Check for the presennce of libc.a Phil Blundell
2010-09-12 10:36   ` Richard Purdie
2010-09-12 12:52     ` Philip Balister
2010-09-12 13:01       ` Frans Meulenbroeks
2010-09-12 15:01         ` Holger Freyther

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=4C8C9C66.7030006@freyther.de \
    --to=holger+oe@freyther.de \
    --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.