From 055252e983a4b5e7603086cf24ebb4cfdf7f2893 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 2 Feb 2024 15:17:09 +0100 Subject: [PATCH] Refresh gettext patch for git builds --- ...d-gettext-to-avoid-cross-compiling-g.patch | 24 +++++++++++++++++++ recipes-slint/slint/slint-cpp_git.bb | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 recipes-slint/slint/slint-cpp/0001-WIP-git-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch diff --git a/recipes-slint/slint/slint-cpp/0001-WIP-git-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch b/recipes-slint/slint/slint-cpp/0001-WIP-git-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch new file mode 100644 index 0000000..a0e6c09 --- /dev/null +++ b/recipes-slint/slint/slint-cpp/0001-WIP-git-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch @@ -0,0 +1,24 @@ +From d2fc63661cb510a8a1952702447361abf7aaf9dd Mon Sep 17 00:00:00 2001 +From: Simon Hausmann +Date: Sun, 18 Jun 2023 11:35:07 +0200 +Subject: [PATCH] WIP: Use a patched gettext to avoid cross-compiling gettext + when building with Ycoto + +--- + Cargo.toml | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Cargo.toml b/Cargo.toml +index 383b17c3a..3c7b14fc0 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -139,6 +139,9 @@ strum = { version = "0.26.1", default-features = false, features = ["derive"] } + toml_edit = { version = "0.21" } + cfg_aliases = { version = "0.2.0" } + ++[patch.crates-io] ++gettext-sys = { git = "https://github.com/slint-ui/gettext-rs", branch = "simon/fix-linux-detection" } ++ + [profile.release] + lto = true + panic = "abort" diff --git a/recipes-slint/slint/slint-cpp_git.bb b/recipes-slint/slint/slint-cpp_git.bb index e69c2b8..3d50b2c 100644 --- a/recipes-slint/slint/slint-cpp_git.bb +++ b/recipes-slint/slint/slint-cpp_git.bb @@ -2,7 +2,7 @@ require recipes-slint/slint/slint-cpp-v2.inc # Either REMOVE or REPLACE this patch, but never change it, as it's also referenced # from 1.1.0 release -SRC_URI += "file://0001-WIP-v-1-3-0-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch" +SRC_URI += "file://0001-WIP-git-Use-a-patched-gettext-to-avoid-cross-compiling-g.patch" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=0cfef883ea34026eab43837344667cfe" SLINT_REV = "master"