From 95207e1500cb3e578dfab936638f75f369c7d0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 29 Mar 2024 20:55:47 +0700 Subject: [PATCH] electron24: s/libgnome-keyring/libsecret/ --- srcpkgs/electron24/patches/fix-include.patch | 252 +++++++++++++++++++ srcpkgs/electron24/template | 11 +- 2 files changed, 258 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/electron24/patches/fix-include.patch diff --git a/srcpkgs/electron24/patches/fix-include.patch b/srcpkgs/electron24/patches/fix-include.patch new file mode 100644 index 00000000000000..af644db18e7d34 --- /dev/null +++ b/srcpkgs/electron24/patches/fix-include.patch @@ -0,0 +1,252 @@ +--- a/src/base/debug/profiler.h ++++ b/src/base/debug/profiler.h +@@ -6,7 +6,7 @@ + #define BASE_DEBUG_PROFILER_H_ + + #include +- ++#include + #include + + #include "base/base_export.h" +--- a/src/cc/trees/target_property.cc ++++ b/src/cc/trees/target_property.cc +@@ -5,6 +5,7 @@ + #include "cc/trees/target_property.h" + + #include "ui/gfx/animation/keyframe/target_property.h" ++#include + + namespace cc { + +--- a/src/components/crash/core/app/crash_reporter_client.h ++++ b/src/components/crash/core/app/crash_reporter_client.h +@@ -5,6 +5,7 @@ + #ifndef COMPONENTS_CRASH_CORE_APP_CRASH_REPORTER_CLIENT_H_ + #define COMPONENTS_CRASH_CORE_APP_CRASH_REPORTER_CLIENT_H_ + ++#include + #include + #include + +--- a/src/components/feature_engagement/internal/event_storage_validator.h ++++ b/src/components/feature_engagement/internal/event_storage_validator.h +@@ -5,6 +5,7 @@ + #ifndef COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_EVENT_STORAGE_VALIDATOR_H_ + #define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_EVENT_STORAGE_VALIDATOR_H_ + ++#include + #include + + namespace feature_engagement { +--- a/src/components/password_manager/core/browser/generation/password_generator.h ++++ b/src/components/password_manager/core/browser/generation/password_generator.h +@@ -5,6 +5,7 @@ + #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_GENERATION_PASSWORD_GENERATOR_H_ + #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_GENERATION_PASSWORD_GENERATOR_H_ + ++#include + #include + + +--- a/src/components/viz/common/view_transition_element_resource_id.h ++++ b/src/components/viz/common/view_transition_element_resource_id.h +@@ -5,6 +5,7 @@ + #ifndef COMPONENTS_VIZ_COMMON_VIEW_TRANSITION_ELEMENT_RESOURCE_ID_H_ + #define COMPONENTS_VIZ_COMMON_VIEW_TRANSITION_ELEMENT_RESOURCE_ID_H_ + ++#include + #include + #include + +--- a/src/device/base/synchronization/one_writer_seqlock.h ++++ b/src/device/base/synchronization/one_writer_seqlock.h +@@ -6,6 +6,7 @@ + #define DEVICE_BASE_SYNCHRONIZATION_ONE_WRITER_SEQLOCK_H_ + + #include ++#include + #include + + #include "base/atomicops.h" +--- a/src/gpu/config/gpu_feature_info.h ++++ b/src/gpu/config/gpu_feature_info.h +@@ -5,6 +5,7 @@ + #ifndef GPU_CONFIG_GPU_FEATURE_INFO_H_ + #define GPU_CONFIG_GPU_FEATURE_INFO_H_ + ++#include + #include + #include + +--- a/src/net/cert/pki/string_util.h ++++ b/src/net/cert/pki/string_util.h +@@ -7,6 +7,7 @@ + + #include "net/base/net_export.h" + ++#include + #include + #include + +--- a/src/net/cookies/cookie_inclusion_status.h ++++ b/src/net/cookies/cookie_inclusion_status.h +@@ -5,6 +5,7 @@ + #ifndef NET_COOKIES_COOKIE_INCLUSION_STATUS_H_ + #define NET_COOKIES_COOKIE_INCLUSION_STATUS_H_ + ++#include + #include + #include + #include +--- a/src/net/third_party/quiche/src/quiche/quic/core/crypto/quic_hkdf.h ++++ b/src/net/third_party/quiche/src/quiche/quic/core/crypto/quic_hkdf.h +@@ -5,6 +5,7 @@ + #ifndef QUICHE_QUIC_CORE_CRYPTO_QUIC_HKDF_H_ + #define QUICHE_QUIC_CORE_CRYPTO_QUIC_HKDF_H_ + ++#include + #include + + #include "absl/strings/string_view.h" +--- a/src/net/third_party/quiche/src/quiche/quic/core/quic_connection_id.h ++++ b/src/net/third_party/quiche/src/quiche/quic/core/quic_connection_id.h +@@ -5,6 +5,7 @@ + #ifndef QUICHE_QUIC_CORE_QUIC_CONNECTION_ID_H_ + #define QUICHE_QUIC_CORE_QUIC_CONNECTION_ID_H_ + ++#include + #include + #include + +--- a/src/third_party/dawn/src/dawn/native/stream/ByteVectorSink.h ++++ b/src/third_party/dawn/src/dawn/native/stream/ByteVectorSink.h +@@ -15,6 +15,7 @@ + #ifndef SRC_DAWN_NATIVE_STREAM_BYTEVECTORSINK_H_ + #define SRC_DAWN_NATIVE_STREAM_BYTEVECTORSINK_H_ + ++#include + #include + #include + +--- a/src/third_party/maldoca/src/maldoca/ole/header.h ++++ b/src/third_party/maldoca/src/maldoca/ole/header.h +@@ -43,6 +43,7 @@ + #ifndef MALDOCA_OLE_HEADER_H_ + #define MALDOCA_OLE_HEADER_H_ + ++#include + #include "absl/strings/string_view.h" + + namespace maldoca { +--- a/src/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h ++++ b/src/third_party/openscreen/src/discovery/dnssd/public/dns_sd_txt_record.h +@@ -5,6 +5,7 @@ + #ifndef DISCOVERY_DNSSD_PUBLIC_DNS_SD_TXT_RECORD_H_ + #define DISCOVERY_DNSSD_PUBLIC_DNS_SD_TXT_RECORD_H_ + ++#include + #include + #include + #include +--- a/src/third_party/openscreen/src/util/base64.h ++++ b/src/third_party/openscreen/src/util/base64.h +@@ -5,6 +5,7 @@ + #ifndef UTIL_BASE64_H_ + #define UTIL_BASE64_H_ + ++#include + #include + #include + +--- a/src/third_party/perfetto/include/perfetto/ext/base/uuid.h ++++ b/src/third_party/perfetto/include/perfetto/ext/base/uuid.h +@@ -18,6 +18,7 @@ + #define INCLUDE_PERFETTO_EXT_BASE_UUID_H_ + + #include ++#include + #include + + #include "perfetto/ext/base/optional.h" +--- a/src/third_party/ruy/src/ruy/profiler/instrumentation.h ++++ b/src/third_party/ruy/src/ruy/profiler/instrumentation.h +@@ -20,6 +20,7 @@ limitations under the License. + #include + #include + #include ++#include + #endif + + namespace ruy { +--- a/src/third_party/swiftshader/src/System/LRUCache.hpp ++++ b/src/third_party/swiftshader/src/System/LRUCache.hpp +@@ -18,6 +18,7 @@ + #include "System/Debug.hpp" + + #include ++#include + #include + #include + #include +--- a/src/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc ++++ b/src/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc +@@ -17,6 +17,7 @@ limitations under the License. + + #include + #include ++#include + + #include "third_party/fft2d/fft.h" + +--- a/src/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h ++++ b/src/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h +@@ -2389,6 +2389,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeV + #undef VMA_IMPLEMENTATION + + #include ++#include + #include + #include + #include +--- a/src/third_party/webrtc/rtc_base/third_party/base64/base64.h ++++ b/src/third_party/webrtc/rtc_base/third_party/base64/base64.h +@@ -12,6 +12,7 @@ + #ifndef RTC_BASE_THIRD_PARTY_BASE64_BASE64_H_ + #define RTC_BASE_THIRD_PARTY_BASE64_BASE64_H_ + ++#include + #include + #include + +--- a/src/ui/base/prediction/kalman_filter.h ++++ b/src/ui/base/prediction/kalman_filter.h +@@ -5,6 +5,7 @@ + #ifndef UI_BASE_PREDICTION_KALMAN_FILTER_H_ + #define UI_BASE_PREDICTION_KALMAN_FILTER_H_ + ++#include + #include "base/component_export.h" + #include "ui/gfx/geometry/matrix3_f.h" + +--- a/src/ui/events/types/scroll_types.h ++++ b/src/ui/events/types/scroll_types.h +@@ -5,6 +5,8 @@ + #ifndef UI_EVENTS_TYPES_SCROLL_TYPES_H_ + #define UI_EVENTS_TYPES_SCROLL_TYPES_H_ + ++#include ++ + namespace ui { + + enum class ScrollGranularity : uint8_t { +--- a/src/ui/gfx/geometry/linear_gradient.h ++++ b/src/ui/gfx/geometry/linear_gradient.h +@@ -6,6 +6,7 @@ + #define UI_GFX_LINEAR_GRADIENT_H_ + + #include ++#include + #include + + #include "ui/gfx/geometry/geometry_skia_export.h" diff --git a/srcpkgs/electron24/template b/srcpkgs/electron24/template index 7b4e28812f483e..eafb9a0c696131 100644 --- a/srcpkgs/electron24/template +++ b/srcpkgs/electron24/template @@ -1,7 +1,7 @@ # Template file for 'electron24' pkgname=electron24 version=24.3.0 -revision=2 +revision=3 _nodever=18.14.0 _chromiumver=112.0.5615.165 archs="x86_64* aarch64*" @@ -14,7 +14,7 @@ hostmakedepends="$(vopt_if clang "clang lld") pkgconf perl gperf bison ninja nod alsa-lib-devel re2-devel snappy-devel mit-krb5-devel $(vopt_if pulseaudio pulseaudio-devel) $(vopt_if sndio sndio-devel) jq python3.11" makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel - libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel + libXi-devel libgcrypt-devel libsecret-devel cups-devel elfutils-devel libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel libXScrnSaver-devel alsa-lib-devel snappy-devel libdrm-devel libxml2-devel libxslt-devel $(vopt_if pulseaudio pulseaudio-devel) libexif-devel @@ -131,7 +131,7 @@ _git_init() { } -post_patch() { +pre_patch() { cd $wrksrc for x in $FILESDIR/patches/*.patch; do case "${x##*/}" in @@ -206,7 +206,7 @@ post_patch() { } pre_configure() { - ln -s "/usr/bin/python3.11" "${XBPS_WRAPPERDIR}/python3" + ln -sf "/usr/bin/python3.11" "${XBPS_WRAPPERDIR}/python3" cd "$wrksrc/$build_wrksrc" @@ -226,7 +226,8 @@ pre_configure() { # compile gn early, so it can be used to generate gni stuff msg_normal "Bootstrapping GN\n" CC="${CC_FOR_BUILD:-$CC}" CXX="${CXX_FOR_BUILD:-$CXX}" LD="${LD_FOR_BUILD:-$LD}" \ - CFLAGS="${CFLAGS_FOR_BUILD:-$CFLAGS}" CXXFLAGS="${CXXFLAGS_FOR_BUILD:-$CXXFLAGS}" \ + CFLAGS="${CFLAGS_FOR_BUILD:-$CFLAGS}" \ + CXXFLAGS="${CXXFLAGS_FOR_BUILD:-$CXXFLAGS} -Wno-error=redundant-move" \ LDFLAGS="${XBPS_LDFLAGS}" \ python3.11 tools/gn/bootstrap/bootstrap.py -s -v --skip-generate-buildfiles