From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: [PATCH] sanity: Drop pseudo test, now unneeded
Date: Fri, 07 Jun 2013 18:18:35 +0100 [thread overview]
Message-ID: <1370625515.6864.63.camel@ted> (raw)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 6cea423..3c70a7b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -204,29 +204,6 @@ def check_sanity_version_change(data):
# Sanity checks to be done when SANITY_VERSION changes
return ""
-def check_pseudo_wrapper():
- import sys
- if not sys.argv[0].endswith('/bitbake'):
- return ""
-
- import subprocess as sub
- # Check if bitbake wrapper is being used
- pseudo_build = os.environ.get( 'PSEUDO_BUILD' )
- if not pseudo_build:
- bb.warn("Bitbake has not been run using the bitbake wrapper (scripts/bitbake); this is likely because your PATH has been altered from that normally set up by the oe-init-build-env script. Not using the wrapper may result in failures during package installation, so it is highly recommended that you set your PATH back so that the wrapper script is being executed.")
-
- if (not pseudo_build) or pseudo_build == '2':
- # pseudo ought to be working, let's see if it is...
- p = sub.Popen(['sh', '-c', 'PSEUDO_DISABLED=0 id -u'],stdout=sub.PIPE,stderr=sub.PIPE)
- out, err = p.communicate()
- if out.rstrip() != '0':
- msg = "Pseudo is not functioning correctly, which will cause failures during package installation. Please check your configuration."
- if pseudo_build == '2':
- return msg
- else:
- bb.warn(msg)
- return ""
-
def check_create_long_filename(filepath, pathname):
testfile = os.path.join(filepath, ''.join([`num`[-1] for num in xrange(1,200)]))
try:
@@ -552,10 +529,6 @@ def check_sanity(sanity_data):
missing = missing.rstrip(',')
messages = messages + "Please install the following missing utilities: %s\n" % missing
- pseudo_msg = check_pseudo_wrapper()
- if pseudo_msg != "":
- messages = messages + pseudo_msg + '\n'
-
check_supported_distro(sanity_data)
if machinevalid:
toolchain_msg = check_toolchain(sanity_data)
reply other threads:[~2013-06-07 17:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1370625515.6864.63.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