* [PATCH 1/1] improve the sanity check for PATH and BBPATH
@ 2014-12-04 2:29 Shiqun.Lin
2014-12-04 17:28 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Shiqun.Lin @ 2014-12-04 2:29 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: 0001-improve-the-sanity-check-for-PATH-and-BBPATH.patch --]
[-- Type: text/x-patch, Size: 2088 bytes --]
From 583f97149ed3122e7b196f08c6bceca9d5a4961c Mon Sep 17 00:00:00 2001
From: Shiqun Lin <Shiqun.Lin@windriver.com>
Date: Thu, 4 Dec 2014 09:50:18 +0800
Subject: [PATCH] improve the sanity check for PATH and BBPATH
Issue: LIN5-19447, Build fails if "./" is in the PATH
a customer was using "./" in his PATH, and this breaks the build.
$ export PATH="./:$PATH"
$ make -C build-tools elfutils
Signed-off-by: Shiqun Lin <Shiqun.Lin@windriver.com>
---
meta/classes/sanity.bbclass | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c2e7bee..1ade542 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -388,15 +388,15 @@ def check_sanity(sanity_data):
messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
paths = sanity_data.getVar('PATH', True).split(":")
- if "." in paths or "" in paths:
- messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
+ if "." in paths or "./" in paths or "" in paths:
+ messages = messages + "PATH contains '.', './' or '', which will break the build, please remove this."
bbpaths = sanity_data.getVar('BBPATH', True).split(":")
- if "." in bbpaths or "" in bbpaths:
+ if "." in bbpaths or "./" in bbpaths or "" in bbpaths:
# TODO: change the following message to fatal when all BBPATH issues
# are fixed
bb.warn("BBPATH references the current directory, either through " \
- "an empty entry, or a '.'.\n\t This is unsafe and means your "\
+ "an empty entry, a './', or a '.'.\n\t This is unsafe and means your "\
"layer configuration is adding empty elements to BBPATH.\n\t "\
"Please check your layer.conf files and other BBPATH " \
"settings to remove the current working directory " \
--
1.8.5.2.233.g932f7e4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] improve the sanity check for PATH and BBPATH
2014-12-04 2:29 [PATCH 1/1] improve the sanity check for PATH and BBPATH Shiqun.Lin
@ 2014-12-04 17:28 ` Burton, Ross
2015-05-19 2:28 ` wenzong fan
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2014-12-04 17:28 UTC (permalink / raw)
To: Shiqun.Lin; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 349 bytes --]
This doesn't apply to master, can you rebase?
Ross
On 4 December 2014 at 02:29, Shiqun.Lin <Shiqun.Lin@windriver.com> wrote:
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
[-- Attachment #2: Type: text/html, Size: 839 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] improve the sanity check for PATH and BBPATH
2014-12-04 17:28 ` Burton, Ross
@ 2015-05-19 2:28 ` wenzong fan
0 siblings, 0 replies; 3+ messages in thread
From: wenzong fan @ 2015-05-19 2:28 UTC (permalink / raw)
To: Burton, Ross, Shiqun.Lin; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
Hi Ross,
Please refer to attachment for the rebased patch.
Thanks
Wenzong
On 12/05/2014 01:28 AM, Burton, Ross wrote:
> This doesn't apply to master, can you rebase?
>
> Ross
>
> On 4 December 2014 at 02:29, Shiqun.Lin <Shiqun.Lin@windriver.com
> <mailto:Shiqun.Lin@windriver.com>> wrote:
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> <mailto:Openembedded-core@lists.openembedded.org>
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
>
[-- Attachment #2: 0001-sanity.bbclass-improve-the-sanity-check-for-PATH-and.patch --]
[-- Type: application/mbox, Size: 2286 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-19 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-04 2:29 [PATCH 1/1] improve the sanity check for PATH and BBPATH Shiqun.Lin
2014-12-04 17:28 ` Burton, Ross
2015-05-19 2:28 ` wenzong fan
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.