* Protection against ever-more-talented fools...
@ 2012-05-09 19:20 Peter Seebach
2012-05-09 19:49 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Peter Seebach @ 2012-05-09 19:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Time for some shell trivia!
Trivia point: PATH=:/usr/bin and PATH=.:/usr/bin are equivalent.
Trivia point: So are PATH=/bin::/usr/bin and PATH=/bin:.:/usr/bin
Trivia point: People love to write stuff like:
PATH=$(THAT_DIRECTORY):$PATH
Trivia point: The shell expands undefined variables to empty strings.
Which is to say:
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 687ddeb..1384592 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -298,8 +298,9 @@ def check_sanity(e):
if not check_app_exists("qemu-arm", e.data):
messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
- if "." in data.getVar('PATH', e.data, True).split(":"):
- messages = messages + "PATH contains '.' which will break the build, please remove this"
+ paths = data.getVar('PATH', e.data, True).split(":")
+ if "." in paths or "" in paths:
+ messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
if data.getVar('TARGET_ARCH', e.data, True) == "arm":
# This path is no longer user-readable in modern (very recent) Linux
--
Listen, get this. Nobody with a good compiler needs to be justified.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Protection against ever-more-talented fools...
2012-05-09 19:20 Protection against ever-more-talented fools Peter Seebach
@ 2012-05-09 19:49 ` Richard Purdie
2012-05-09 20:07 ` Peter Seebach
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-05-09 19:49 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2012-05-09 at 14:20 -0500, Peter Seebach wrote:
> Time for some shell trivia!
>
> Trivia point: PATH=:/usr/bin and PATH=.:/usr/bin are equivalent.
> Trivia point: So are PATH=/bin::/usr/bin and PATH=/bin:.:/usr/bin
> Trivia point: People love to write stuff like:
> PATH=$(THAT_DIRECTORY):$PATH
> Trivia point: The shell expands undefined variables to empty strings.
>
> Which is to say:
I like the patch and I can live with the commit message but could we
have the right subject line and a signed-off-by please? :)
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Protection against ever-more-talented fools...
2012-05-09 19:49 ` Richard Purdie
@ 2012-05-09 20:07 ` Peter Seebach
0 siblings, 0 replies; 3+ messages in thread
From: Peter Seebach @ 2012-05-09 20:07 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 9 May 2012 20:49:23 +0100
Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
> I like the patch and I can live with the commit message but could we
> have the right subject line and a signed-off-by please? :)
Heh. I hadn't actually intended this as a pull request, just
commentary, but I can do a proper pull request with a meaningful
subject, commit message, etc.
-s
--
Listen, get this. Nobody with a good compiler needs to be justified.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-09 20:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 19:20 Protection against ever-more-talented fools Peter Seebach
2012-05-09 19:49 ` Richard Purdie
2012-05-09 20:07 ` Peter Seebach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox