Skip to contentSkip to conversation

mozjs: Fix python3 build with gold

PATCH In review Andreas Müller 2 participants 2 messages Feb 10, 2020 – Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mozjs: Fix python3 build with gold

Fixes [1]

[1] http://errors.yoctoproject.org/Errors/Details/390559/

---
 .../mozjs/mozjs/0001-Port-build-to-python3.patch      | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/mozjs/mozjs/0001-Port-build-to-python3.patch +10 -1
index 695dd97f6..e525047df 100644
@@ -35,7 +35,7 @@ Signed-off-by: Andreas Müller <[email protected]>
  build/moz.configure/init.configure            |  31 +-
  build/moz.configure/keyfiles.configure        |   4 +-
  build/moz.configure/old.configure             |  32 +-
- build/moz.configure/toolchain.configure       |  16 +-
+ build/moz.configure/toolchain.configure       |  18 +-
  build/moz.configure/util.configure            |   9 +-
  build/moz.configure/windows.configure         |  10 +-
  build/templates.mozbuild                      |   2 +-
@@ -451,6 +451,15 @@ index fc640c75e..c5508dfb7 100755
  def pgo_flags(compiler):
      if compiler.type in ('gcc', 'clang'):
          return namespace(
+@@ -1517,6 +1517,8 @@ def enable_gnu_linker(enable_gold_option, c_compiler, developer_options, build_e
+         gold = check_cmd_output(*detection_cmd).strip()
+         if not gold:
+             return
++        if isinstance(gold, bytes):
++            gold = gold.decode('utf-8')
+ 
+         goldFullPath = find_program(gold)
+         if goldFullPath is None:
 diff --git a/build/moz.configure/util.configure b/build/moz.configure/util.configure
 index 3284fd8b5..218813e2d 100644
 --- a/build/moz.configure/util.configure
Signature · 1 line
2.21.0
#1 lore raw

I will take this one instead of patch I posted. Thanks for quick response

Quoted 47 lines · Andreas Müller

Fixes [1]

[1] http://errors.yoctoproject.org/Errors/Details/390559/

---
 .../mozjs/mozjs/0001-Port-build-to-python3.patch      | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/mozjs/mozjs/0001-Port-build-to-python3.patch +10 -2
index 695dd97f6..e525047df 100644
@@ -35,7 +35,7 @@ Signed-off-by: Andreas Müller <[email protected]>
  build/moz.configure/init.configure            |  31 +-
  build/moz.configure/keyfiles.configure        |   4 +-
  build/moz.configure/old.configure             |  32 +-
- build/moz.configure/toolchain.configure       |  16 +-
+ build/moz.configure/toolchain.configure       |  18 +-
  build/moz.configure/util.configure            |   9 +-
  build/moz.configure/windows.configure         |  10 +-
  build/templates.mozbuild                      |   2 +-
@@ -451,6 +451,15 @@ index fc640c75e..c5508dfb7 100755
  def pgo_flags(compiler):
      if compiler.type in ('gcc', 'clang'):
          return namespace(
+@@ -1517,6 +1517,8 @@ def enable_gnu_linker(enable_gold_option, c_compiler, developer_options, build_e
+         gold = check_cmd_output(*detection_cmd).strip()
+         if not gold:
+             return
++        if isinstance(gold, bytes):
++            gold = gold.decode('utf-8')
+
+         goldFullPath = find_program(gold)
+         if goldFullPath is None:
 diff --git a/build/moz.configure/util.configure b/build/moz.configure/util.configure
 index 3284fd8b5..218813e2d 100644
 --- a/build/moz.configure/util.configure
--

2.21.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel