8
0
Files
nodejs-electron/partition_alloc-no-lto.patch
Bruno Pitrus 27bbbd6d17 Accepting request 1059202 from home:dziobian:gulgul-ultron:19
- Update to 22.0.2
  * ABI break: NODE_MODULE_VERSION is now 110. Native modules may need recompiling
  * Chromium to 108.0.5359.179
  * Node v16.17.1
  * V8 v10.8
  * Added WebContents input-event event.
  * Deprecated BrowserWindow scroll-touch-* events.
  * The deprecated new-window event has been removed.
  * Added contextBridge.exposeInIsolatedWorld(worldId, key, api) to expose
    an API to an isolatedWorld within a renderer from a preload script.
  * Added webContents.close() method.
  * Added new UtilityProcess API to launch chromium child process with node integration.
  * Added new WebContents event content-bounds-updated.
  * Added support for navigator.mediaDevices.getDisplayMedia via a new
    session handler, ses.setDisplayMediaRequestHandler.
  * Added support for serialPort.forget() as well as a new event
    serial-port-revoked emitted when a given origin is revoked.
- Drop patches applied upstream
  * argument_spec-missing-isnan-isinf.patch
  * chromium-103.0.5060.53-python3-do-not-use-deprecated-mode-U.patch
  * content_language_parser-missing-string.patch
  * gtk_ui_platform_stub-incomplete-type-LinuxInputMethodContext.patch
  * node-system-libs.patch
  * pending_beacon_dispatcher-virtual-functions-cannot-be-constexpr.patch
  * std_lib_extras-missing-intptr_t.patch
  * system-abseil-missing-shims.patch
- Re-add electron_serial_delegate-ambiguous-Observer.patch due to upstream reintroducing the invalid code
- Add patches to fix build errors
  * chromium-108-abseil-shims.patch
  * crashpad-elf_image_reader-ProgramHeaderTableSpecific-expected-unqualified-id.patch
  * document_loader-private-DecodedBodyData.patch
  * first_party_set_parser-IssueWithMetadata-no-known-conversion.patch
  * print_dialog_gtk-no-kEnableOopPrintDriversJobPrint.patch
  * swiftshader-LLVMJIT-AddressSanitizerPass-dead-code-remove.patch
- Conditionally reverse upstream changes to fix build with old harfbuzz
  * harfbuzz-replace-chromium-scoped-type.patch
- Switch to bundled libjxl on Fedora 36 due to system version being too old

OBS-URL: https://build.opensuse.org/request/show/1059202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=57
2023-01-18 06:07:26 +00:00

62 lines
2.2 KiB
Diff

Compile files which declare functions in inline assembly without LTO due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703
--- src/base/allocator/partition_allocator/BUILD.gn.old 2022-10-01 13:53:03.367797474 +0200
+++ src/base/allocator/partition_allocator/BUILD.gn 2022-10-05 14:23:53.999860356 +0200
@@ -51,6 +51,24 @@
}
}
+static_library("partition_alloc_asm") {
+ defines = [ "PA_PCSCAN_STACK_SUPPORTED" ]
+ if (gcc_lto) {
+ configs -= [ "//build/config/compiler:gcc_lto" ]
+ }
+ if (current_cpu == "x64") {
+ sources = [ "starscan/stack/asm/x64/push_registers_asm.cc" ]
+ } else if (current_cpu == "x86") {
+ sources = [ "starscan/stack/asm/x86/push_registers_asm.cc" ]
+ } else if (current_cpu == "arm") {
+ sources = [ "starscan/stack/asm/arm/push_registers_asm.cc" ]
+ } else if (current_cpu == "arm64") {
+ sources = [ "starscan/stack/asm/arm64/push_registers_asm.cc" ]
+ } else {
+ # To support a trampoline for another arch, please refer to v8/src/heap/base.
+ }
+}
+
component("partition_alloc") {
sources = [
"address_pool_manager.cc",
@@ -262,20 +278,10 @@
}
}
if (build_with_chromium) {
- if (current_cpu == "x64") {
- defines += [ "PA_PCSCAN_STACK_SUPPORTED" ]
- sources += [ "starscan/stack/asm/x64/push_registers_asm.cc" ]
- } else if (current_cpu == "x86") {
- defines += [ "PA_PCSCAN_STACK_SUPPORTED" ]
- sources += [ "starscan/stack/asm/x86/push_registers_asm.cc" ]
- } else if (current_cpu == "arm") {
- defines += [ "PA_PCSCAN_STACK_SUPPORTED" ]
- sources += [ "starscan/stack/asm/arm/push_registers_asm.cc" ]
- } else if (current_cpu == "arm64") {
+ deps = []
+ if (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm" || current_cpu == "arm64") {
defines += [ "PA_PCSCAN_STACK_SUPPORTED" ]
- sources += [ "starscan/stack/asm/arm64/push_registers_asm.cc" ]
- } else {
- # To support a trampoline for another arch, please refer to v8/src/heap/base.
+ deps += [ ":partition_alloc_asm" ]
}
}
public_deps = [
@@ -289,7 +295,6 @@
":partition_alloc_implementation",
":memory_tagging",
]
- deps = []
public_configs = []
if (is_android) {
# tagging.cc requires __arm_mte_set_* functions.