From 84e56dac1aa74b2b391e725399956322a6809c91 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 19 Jul 2025 18:51:24 +0200 Subject: [PATCH] electron-tasje: fix arm and i686 builds --- .../electron-tasje/patches/effac118ba.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 srcpkgs/electron-tasje/patches/effac118ba.patch diff --git a/srcpkgs/electron-tasje/patches/effac118ba.patch b/srcpkgs/electron-tasje/patches/effac118ba.patch new file mode 100644 index 00000000000..e69c379c1d9 --- /dev/null +++ b/srcpkgs/electron-tasje/patches/effac118ba.patch @@ -0,0 +1,38 @@ +From effac118bafb18e33ecde9a60721045609381a76 Mon Sep 17 00:00:00 2001 +From: LN Liberda +Date: Tue, 19 Nov 2024 23:08:50 +0100 +Subject: [PATCH] fix invalid target-gated code + +--- + src/environment.rs | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/environment.rs b/src/environment.rs +index 4ef5059..7eebf42 100644 +--- a/src/environment.rs ++++ b/src/environment.rs +@@ -44,13 +44,13 @@ impl Architecture { + #[cfg(target_arch = "x86_64")] + pub static HOST_ARCHITECTURE: Architecture = Architecture::X86_64; + +-#[cfg(any(target_arch = "i586", target_arch = "i686"))] ++#[cfg(target_arch = "x86")] + pub static HOST_ARCHITECTURE: Architecture = Architecture::X86; + + #[cfg(target_arch = "aarch64")] + pub static HOST_ARCHITECTURE: Architecture = Architecture::Aarch64; + +-#[cfg(any(target_arch = "armv6", target_arch = "armv7"))] ++#[cfg(target_arch = "arm")] + pub static HOST_ARCHITECTURE: Architecture = Architecture::ArmV7; + + #[non_exhaustive] +@@ -91,7 +91,7 @@ pub static HOST_PLATFORM: Platform = Platform::Linux; + #[cfg(target_os = "windows")] + pub static HOST_PLATFORM: Platform = Platform::Windows; + +-#[cfg(target_os = "darwin")] ++#[cfg(target_os = "macos")] + pub static HOST_PLATFORM: Platform = Platform::Darwin; + + #[derive(Debug, Clone, Copy, PartialEq, Eq)]