8
0
Files
nodejs-electron/partition_root-attribute.patch
Bruno Pitrus 267719b9ea Accepting request 1119084 from home:dziobian:gulgul-ultron:19
- New upstream release 27.0.1
  * Updated Chromium to 118.0.5993.89.
  * Fixed an issue where calling loadURL during some webContents url loading events could crash.
  * Fixed an issue where fully occluded windows would return an empty image from webContents.capturePage()
  * Fixed some redundant permission dialogs while screen sharing on Wayland.
- Fix typo installing icon file to wrong folder.
- Update to 27.0.0:
  * ABI break: NODE_MODULE_VERSION is now 118
  * Chromium 118.0.5993.32
  * Node 18.17.1
  * V8 11.8
  * The deprecated color scheme changed events in systemPreferences have been removed.
  * The systemPreferences.getAppLevelAppearance, systemPreferences.setAppLevelAppearance and systemPreferences.appLevelAppearance APIs have been removed,
    as well as the alternate-selected-control-text value for systemPreferences.getColor.
  * see https://www.electronjs.org/blog/electron-27-0 and https://www.electronjs.org/blog/electron-26-0 for new features
- Drop upstreamed patches
  * absl-uint128-do-not-assume-abi.patch
  * cpu-missing-uint8_t.patch
  * electron-24-components-missing-headers.patch
  * mojom-python3.12-imp.patch
  * re2-11-StringPiece.patch
  * swiftshader-llvm17.patch
- (Fedora) switch to bundled avif as Chromium no longer builds with avif 0.x
  * drop avif_image_decoder-AVIF_PIXEL_FORMAT_COUNT.patch
  * drop avif_image_decoder-libavif-1-mode.patch
  * drop avif_image_decoder-repetitionCount-clli.patch
- Drop no longer relevant chromium-86-fix-vaapi-on-intel.patch
- (Leap and Fedora) reverse upstream changes to build with re2 10
  * replace-StringPiece-with-string_view.patch
- (Fedora <39) reverse upstream changes to build with icu 71
  * v8-icu73-alt_calendar.patch
  * v8-icu73-simple-case-folding.patch
- Reverse upstream changes to build against old brotli
  * brotli-remove-shared-dictionary.patch
- Add patches to fix build errors
  * absl-make_unique-missing-include.patch
  * autofill_i18n_parsing_expressions-constexpr.patch
  * chromium-117-blink-BUILD-mnemonic.patch
  * decoder_buffer_side_data-missing-uint8_t.patch
  * disable-tests.patch
  * keyboard_util-gcc12-invalid-constexpr.patch
  * kwallet_dbus-missing-uint8_t.patch
  * material_color_utilities-tones-missing-round.patch
  * page_content_annotations_common-remove-tflite.patch
  * partition_root-attribute.patch
  * perfetto-numeric_storage-double_t.patch
  * sensor_reading-missing-int64_t-size_t.patch
  * simple_font_data-freetype-include.patch
  * utf_string_conversion_utils-missing-numeric_limits.patch

OBS-URL: https://build.opensuse.org/request/show/1119084
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=103
2023-10-19 17:09:42 +00:00

127 lines
6.5 KiB
Diff

From 3c2c77cff5f7965d6ef3b55a18400533f640b0e1 Mon Sep 17 00:00:00 2001
From: Ivan Murashov <ivan.murashov@lge.com>
Date: Fri, 8 Sep 2023 15:43:18 +0000
Subject: [PATCH] GCC: Put attributes before function name in partition_root.h
By GCC attributes are not allowed to be placed after function name
in a function definition. This breaks compilation in GCC.
The error example:
base/allocator/partition_allocator/partition_alloc_forward.h:80:27:
error: attributes are not allowed on a function-definition
base/allocator/partition_allocator/partition_root.h:467:7:
note: in expansion of macro 'PA_MALLOC_ALIGNED'
Bug: 819294
Change-Id: Ife233d6fe7c2bab0cd503dad5c284879d896936d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4853717
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Commit-Queue: Ivan Murashov <ivan.murashov@lge.com>
Cr-Commit-Position: refs/heads/main@{#1194132}
---
.../partition_allocator/partition_root.h | 44 +++++++++----------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/base/allocator/partition_allocator/partition_root.h b/base/allocator/partition_allocator/partition_root.h
index d4b2e6c5d23fd12..ff681854ba00850 100644
--- a/base/allocator/partition_allocator/partition_root.h
+++ b/base/allocator/partition_allocator/partition_root.h
@@ -462,15 +462,15 @@ struct PA_ALIGNAS(64) PA_COMPONENT_EXPORT(PARTITION_ALLOC) PartitionRoot {
// increasing cache footprint). Set PA_NOINLINE on the "basic" top-level
// functions to mitigate that for "vanilla" callers.
template <unsigned int flags = 0>
- PA_NOINLINE PA_MALLOC_FN void* Alloc(size_t requested_size,
- const char* type_name)
- PA_MALLOC_ALIGNED {
+ PA_NOINLINE PA_MALLOC_FN PA_MALLOC_ALIGNED void* Alloc(
+ size_t requested_size,
+ const char* type_name) {
return AllocInline<flags>(requested_size, type_name);
}
template <unsigned int flags = 0>
- PA_ALWAYS_INLINE PA_MALLOC_FN void* AllocInline(size_t requested_size,
- const char* type_name)
- PA_MALLOC_ALIGNED {
+ PA_ALWAYS_INLINE PA_MALLOC_FN PA_MALLOC_ALIGNED void* AllocInline(
+ size_t requested_size,
+ const char* type_name) {
static_assert((flags & AllocFlags::kNoHooks) == 0); // Internal only.
return AllocInternal<flags>(requested_size, internal::PartitionPageSize(),
type_name);
@@ -482,10 +482,10 @@ struct PA_ALIGNAS(64) PA_COMPONENT_EXPORT(PARTITION_ALLOC) PartitionRoot {
// alignment, otherwise a sub-optimal allocation strategy is used to
// guarantee the higher-order alignment.
template <unsigned int flags>
- PA_ALWAYS_INLINE PA_MALLOC_FN void* AllocInternal(size_t requested_size,
- size_t slot_span_alignment,
- const char* type_name)
- PA_MALLOC_ALIGNED;
+ PA_ALWAYS_INLINE PA_MALLOC_FN PA_MALLOC_ALIGNED void* AllocInternal(
+ size_t requested_size,
+ size_t slot_span_alignment,
+ const char* type_name);
// Same as |Alloc()|, but bypasses the allocator hooks.
//
// This is separate from Alloc() because other callers of
@@ -496,15 +496,15 @@ struct PA_ALIGNAS(64) PA_COMPONENT_EXPOR
// for the malloc() case, the compiler correctly removes the branch, since
// this is marked |PA_ALWAYS_INLINE|.
template <unsigned int flags = 0>
- PA_ALWAYS_INLINE PA_MALLOC_FN void* AllocNoHooks(size_t requested_size,
- size_t slot_span_alignment)
- PA_MALLOC_ALIGNED;
+ PA_ALWAYS_INLINE PA_MALLOC_FN PA_MALLOC_ALIGNED void* AllocNoHooks(
+ size_t requested_size,
+ size_t slot_span_alignment);
// Deprecated compatibility method.
// TODO(mikt): remove this once all third party usage is gone.
- PA_ALWAYS_INLINE PA_MALLOC_FN void* AllocWithFlags(unsigned int flags,
+ PA_ALWAYS_INLINE PA_MALLOC_FN PA_MALLOC_ALIGNED void* AllocWithFlags(unsigned int flags,
size_t requested_size,
const char* type_name)
- PA_MALLOC_ALIGNED {
+ {
// These conditional branching should be optimized away.
if (flags == (AllocFlags::kReturnNull)) {
return AllocInline<AllocFlags::kReturnNull>(requested_size, type_name);
@@ -520,28 +520,28 @@ struct PA_ALIGNAS(64) PA_COMPONENT_EXPOR
}
template <unsigned int flags = 0>
- PA_NOINLINE void* Realloc(void* ptr,
- size_t new_size,
- const char* type_name) PA_MALLOC_ALIGNED {
+ PA_NOINLINE PA_MALLOC_ALIGNED void* Realloc(void* ptr,
+ size_t new_size,
+ const char* type_name) {
return ReallocInline<flags>(ptr, new_size, type_name);
}
template <unsigned int flags = 0>
- PA_ALWAYS_INLINE void* ReallocInline(void* ptr,
- size_t new_size,
- const char* type_name) PA_MALLOC_ALIGNED;
+ PA_ALWAYS_INLINE PA_MALLOC_ALIGNED void* ReallocInline(void* ptr,
+ size_t new_size,
+ const char* type_name);
// Overload that may return nullptr if reallocation isn't possible. In this
// case, |ptr| remains valid.
- PA_NOINLINE void* TryRealloc(void* ptr,
- size_t new_size,
- const char* type_name) PA_MALLOC_ALIGNED {
+ PA_NOINLINE PA_MALLOC_ALIGNED void* TryRealloc(void* ptr,
+ size_t new_size,
+ const char* type_name) {
return ReallocInline<AllocFlags::kReturnNull>(ptr, new_size, type_name);
}
// Deprecated compatibility method.
// TODO(mikt): remove this once all third party usage is gone.
- PA_NOINLINE void* ReallocWithFlags(unsigned int flags,
+ PA_NOINLINE PA_MALLOC_ALIGNED void* ReallocWithFlags(unsigned int flags,
void* ptr,
size_t new_size,
- const char* type_name) PA_MALLOC_ALIGNED {
+ const char* type_name) {
PA_CHECK(flags == AllocFlags::kReturnNull);
return ReallocInline<AllocFlags::kReturnNull>(ptr, new_size, type_name);
}