All of lore.kernel.org
 help / color / mirror / Atom feed
From: <mingli.yu@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH v2] bjam-native: do not search all PATHs variable
Date: Sun, 28 Apr 2019 15:02:51 +0800	[thread overview]
Message-ID: <1556434971-251075-1-git-send-email-mingli.yu@windriver.com> (raw)
In-Reply-To: <1556434683-140874-1-git-send-email-mingli.yu@windriver.com>

From: Li Wang <li.wang@windriver.com>

By default, it searches all paths specified by $PATH.

But if the directory of the $PATH variable on
build host includes nfs(build host as nfs client),
it causes the build hung when the nfs server is
unavailable.

Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta/recipes-support/boost/bjam-native_1.69.0.bb   |  1 +
 .../bjam-do-not-search-all-PATHs-varibale.patch    | 53 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 meta/recipes-support/boost/files/bjam-do-not-search-all-PATHs-varibale.patch

diff --git a/meta/recipes-support/boost/bjam-native_1.69.0.bb b/meta/recipes-support/boost/bjam-native_1.69.0.bb
index 94f96e6..395ad34 100644
--- a/meta/recipes-support/boost/bjam-native_1.69.0.bb
+++ b/meta/recipes-support/boost/bjam-native_1.69.0.bb
@@ -6,6 +6,7 @@ SECTION = "devel"
 inherit native
 
 SRC_URI += "file://bjam-native-build-bjam.debug.patch \
+            file://bjam-do-not-search-all-PATHs-varibale.patch \
 "
 
 do_compile() {
diff --git a/meta/recipes-support/boost/files/bjam-do-not-search-all-PATHs-varibale.patch b/meta/recipes-support/boost/files/bjam-do-not-search-all-PATHs-varibale.patch
new file mode 100644
index 0000000..742603a
--- /dev/null
+++ b/meta/recipes-support/boost/files/bjam-do-not-search-all-PATHs-varibale.patch
@@ -0,0 +1,53 @@
+bjam: do not search all PATHs varibale
+
+By default, it searches all paths specified by $PATH.
+But if the directory of the $PATH variable on
+build host includes nfs, it causes system hung
+when nfs server is unavailable.
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Li Wang <li.wang@windriver.com>
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ tools/build/src/engine/build.jam | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/tools/build/src/engine/build.jam b/tools/build/src/engine/build.jam
+index a92b70f..f866619 100644
+--- a/tools/build/src/engine/build.jam
++++ b/tools/build/src/engine/build.jam
+@@ -781,8 +781,8 @@ if $(OS) = NT
+ }
+ SUFEXE ?= "" ;
+ 
+-yacc ?= [ GLOB $(PATH) : yacc$(SUFEXE) ] ;
+-yacc ?= [ GLOB $(PATH) : bison$(SUFEXE) ] ;
++yacc ?= [ GLOB "" : yacc$(SUFEXE) ] ;
++yacc ?= [ GLOB "" : bison$(SUFEXE) ] ;
+ yacc ?= [ GLOB "$(ProgramFiles:J= )\\GnuWin32\\bin"
+     "C:\\Program Files\\GnuWin32\\bin" : bison$(SUFEXE) ] ;
+ yacc = $(yacc[1]) ;
+@@ -966,7 +966,7 @@ if $(OS) = NT
+ }
+ if $(UNIX) = true
+ {
+-    tar ?= [ GLOB $(PATH) : star bsdtar tar ] ;
++    tar ?= [ GLOB "" : star bsdtar tar ] ;
+     tar = $(tar[1]) ;
+     switch $(tar:D=:S=)
+     {
+@@ -1047,8 +1047,8 @@ rule .package ( dst-dir : src-files + )
+ }
+ 
+ # RPM distro file.
+-rpm-tool = [ GLOB $(PATH) : "rpmbuild" ] ;
+-rpm-tool ?= [ GLOB $(PATH) : "rpm" ] ;
++rpm-tool = [ GLOB "" : "rpmbuild" ] ;
++rpm-tool ?= [ GLOB "" : "rpm" ] ;
+ rpm-tool = $(rpm-tool[1]) ;
+ rule .rpm ( name : source )
+ {
+-- 
+2.18.1
+
-- 
2.7.4



  reply	other threads:[~2019-04-28  7:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-28  6:58 [PATCH] bjam-native: do not search all PATHs variable mingli.yu
2019-04-28  7:02 ` mingli.yu [this message]
2019-04-28  9:38   ` [PATCH v2] " Alexander Kanavin
2019-04-28 10:55     ` Richard Purdie
2019-04-29  3:12       ` Yu, Mingli

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=1556434971-251075-1-git-send-email-mingli.yu@windriver.com \
    --to=mingli.yu@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 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.