mozjs-78: Get rid of erroneous dependency trying to satisfy llvm_objdump
A message that is not in the archive (sent off-list or not yet received): [email protected]
On Mon, Nov 1, 2021 at 11:44 PM Andreas Müller <[email protected]> wrote:
Just saw this one did not make it to master-next. Is there an issue or was it just overseen?
Asking because it should fix builds without meta-clang in layers
Andreas
Quoted 167 lines
* It was tested improperly so configure faile for meta-clang not in layers
* It is not necessary for building js only - see mozjs-91Signed-off-by Andreas Müller <[email protected]>--- ...03-Do-not-check-binaries-after-build.patch | 55 +++++++++++++++++++ ...04-Cargo.toml-do-not-abort-on-panic.patch} | 0 ...bility-of-mozbuild-with-Python-3.10.patch} | 0 ...s.h.patch => 0006-use-asm-sgidefs.h.patch} | 0 ...-build.patch => 0007-fix-musl-build.patch} | 0 .../{0007-riscv.patch => 0008-riscv.patch} | 0 ...009-riscv-Disable-atomic-operations.patch} | 0 ...h => 0010-riscv-Set-march-correctly.patch} | 0 ...ce-include-by-code-to-fix-arm-build.patch} | 0 ...redArrayRawBufferRefs-to-public-API.patch} | 0 .../mozjs/mozjs-78_78.15.0.bb | 20 +++---- 11 files changed, 65 insertions(+), 10 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0003-Do-not-check-binaries-after-build.patch rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0003-Cargo.toml-do-not-abort-on-panic.patch => 0004-Cargo.toml-do-not-abort-on-panic.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0004-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch => 0005-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0005-use-asm-sgidefs.h.patch => 0006-use-asm-sgidefs.h.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0006-fix-musl-build.patch => 0007-fix-musl-build.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0007-riscv.patch => 0008-riscv.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0008-riscv-Disable-atomic-operations.patch => 0009-riscv-Disable-atomic-operations.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0009-riscv-Set-march-correctly.patch => 0010-riscv-Set-march-correctly.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0010-replace-include-by-code-to-fix-arm-build.patch => 0011-replace-include-by-code-to-fix-arm-build.patch} (100%) rename meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/{0011-Add-SharedArrayRawBufferRefs-to-public-API.patch => 0012-Add-SharedArrayRawBufferRefs-to-public-API.patch} (100%)meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0003-Do-not-check-binaries-after-build.patch new file +55
-0@@ -0,0 +1,55 @@ +From 1a47eac590f57c765033c7797b0759dc314f2128 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Mon, 1 Nov 2021 22:52:57 +0100 +Subject: [PATCH] Do not check binaries after build +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* It buys us a dependency hard to fulfill in different layer setups +* Mozjs-91 does not perform these checks when setting --enable-project=js. Here + for old configuration style --enable-project changes nothing and build wants + to check binaries created. + +So omit checks by not searching for llvm_objdump and making check_binary.py a +stub to prevent errors by using unset LLVM_OBJDUMP. + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Andreas Müller <[email protected]> +--- + moz.configure | 7 ------- + python/mozbuild/mozbuild/action/check_binary.py | 2 +- + 2 files changed, 1 insertion(+), 8 deletions(-) + +diff --git a/moz.configure b/moz.configure +index 9b0e784..41e3e4d 100755 +--- a/moz.configure ++++ b/moz.configure +@@ -648,13 +648,6 @@ def llvm_objdump(host_c_compiler, c_compiler, bindgen_config_paths): + return (llvm_objdump,) + + +-llvm_objdump = check_prog('LLVM_OBJDUMP', llvm_objdump, what='llvm-objdump', +- when='--enable-compile-environment', +- paths=toolchain_search_path) +- +-add_old_configure_assignment('LLVM_OBJDUMP', llvm_objdump) +- +- + js_option('--enable-dtrace', help='Build with dtrace support') + + dtrace = check_header('sys/sdt.h', when='--enable-dtrace', +diff --git a/python/mozbuild/mozbuild/action/check_binary.py b/python/mozbuild/mozbuild/action/check_binary.py +index 57ccfa6..bd2c167 100644 +--- a/python/mozbuild/mozbuild/action/check_binary.py ++++ b/python/mozbuild/mozbuild/action/check_binary.py +@@ -366,4 +366,4 @@ def main(args): + + + if __name__ == '__main__': +- sys.exit(main(sys.argv[1:])) ++ sys.exit(0) +-- +2.31.1 +meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0004-Cargo.toml-do-not-abort-on-panic.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0003-Cargo.toml-do-not-abort-on-panic.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0005-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0004-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0006-use-asm-sgidefs.h.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0005-use-asm-sgidefs.h.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0007-fix-musl-build.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0006-fix-musl-build.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0008-riscv.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0007-riscv.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0009-riscv-Disable-atomic-operations.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0008-riscv-Disable-atomic-operations.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0010-riscv-Set-march-correctly.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0009-riscv-Set-march-correctly.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0011-replace-include-by-code-to-fix-arm-build.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0010-replace-include-by-code-to-fix-arm-build.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0012-Add-SharedArrayRawBufferRefs-to-public-API.patch renamed from meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78/0011-Add-SharedArrayRawBufferRefs-to-public-API.patch +0
-0meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb +10
-11@@ -7,15 +7,16 @@ SRC_URI = " \ https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \ file://0001-rust.configure-Skip-all-target-manipulations.patch \ file://0002-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \ - file://0003-Cargo.toml-do-not-abort-on-panic.patch \ - file://0004-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch \ - file://0005-use-asm-sgidefs.h.patch \ - file://0006-fix-musl-build.patch \ - file://0007-riscv.patch \ - file://0008-riscv-Disable-atomic-operations.patch \ - file://0009-riscv-Set-march-correctly.patch \ - file://0010-replace-include-by-code-to-fix-arm-build.patch \ - file://0011-Add-SharedArrayRawBufferRefs-to-public-API.patch \ + file://0003-Do-not-check-binaries-after-build.patch \ + file://0004-Cargo.toml-do-not-abort-on-panic.patch \ + file://0005-Fixup-compatibility-of-mozbuild-with-Python-3.10.patch \ + file://0006-use-asm-sgidefs.h.patch \ + file://0007-fix-musl-build.patch \ + file://0008-riscv.patch \ + file://0009-riscv-Disable-atomic-operations.patch \ + file://0010-riscv-Set-march-correctly.patch \ + file://0011-replace-include-by-code-to-fix-arm-build.patch \ + file://0012-Add-SharedArrayRawBufferRefs-to-public-API.patch \ " SRC_URI[sha256sum] = "a4438d84d95171a6d4fea9c9f02c2edbf0475a9c614d968ebe2eedc25a672151"@@ -25,7 +26,6 @@ DEPENDS = " \ autoconf-2.13-native \ icu-native \ cargo-native \ - ${@bb.utils.contains("BBFILE_COLLECTIONS", "clang-layer", "clang-native", "llvm-native", d)} \ zlib \ python3-six \ python3-six-native \ --2.31.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Khem Raj
Quoted 4 lines · Andreas Müller
On Mon, Nov 1, 2021 at 11:44 PM Andreas Müller <[email protected]> wrote:
Just saw this one did not make it to master-next. Is there an issue or was it just overseen?I squashed this into original patch.
Ah - OK thanks
Andreas