From 269c2f6d98cfbb708c3a53c742365607ddd6ac11790d8b395d320b507331cdeb Mon Sep 17 00:00:00 2001 From: xtexChooser Date: Thu, 1 Feb 2024 23:57:44 +0000 Subject: [PATCH] - Use system lua 5.4 OBS-URL: https://build.opensuse.org/package/show/utilities/yazi?expand=0&rev=4 --- 0001-use-system-jit.patch | 11 +++++++++++ yazi-0.2.2.obscpio | 3 --- yazi.spec | 2 ++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 0001-use-system-jit.patch delete mode 100644 yazi-0.2.2.obscpio diff --git a/0001-use-system-jit.patch b/0001-use-system-jit.patch new file mode 100644 index 0000000..bf14d92 --- /dev/null +++ b/0001-use-system-jit.patch @@ -0,0 +1,11 @@ +--- yazi-plugin/Cargo.toml.orig 2024-02-02 07:53:14.641950555 +0800 ++++ yazi-plugin/Cargo.toml 2024-02-02 07:53:59.589599854 +0800 +@@ -19,7 +19,7 @@ + crossterm = "^0" + futures = "^0" + md-5 = "^0" +-mlua = { version = "^0", features = [ "lua54", "vendored", "serialize", "macros", "async" ] } ++mlua = { version = "^0", features = [ "lua54", "serialize", "macros", "async" ] } + parking_lot = "^0" + ratatui = "^0" + serde = "^1" diff --git a/yazi-0.2.2.obscpio b/yazi-0.2.2.obscpio deleted file mode 100644 index 944909f..0000000 --- a/yazi-0.2.2.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90581e14e5ab679b2cdf15f8056e2249f9588450b764886a0e66e26311731898 -size 1207820 diff --git a/yazi.spec b/yazi.spec index e4e6955..a5a6973 100644 --- a/yazi.spec +++ b/yazi.spec @@ -25,8 +25,10 @@ Group: Productivity/Text/Utilities URL: https://github.com/sxyazi/yazi Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst +Patch0: 0001-use-system-jit.patch Requires: file BuildRequires: cargo-packaging +BuildRequires: lua5.4-devel # Override "-C debuginfo=2" from cargo-packaging, to solve rustc SIGSEGV exception: # error: rustc interrupted by SIGSEGV, printing backtrace