diff --git a/srcpkgs/rio/patches/fix-cross.patch b/srcpkgs/rio/patches/fix-cross.patch new file mode 100644 index 00000000000..bdb27c9e854 --- /dev/null +++ b/srcpkgs/rio/patches/fix-cross.patch @@ -0,0 +1,22 @@ +From ff3afb7f28ee427590547cc260a7d78c5ae59140 Mon Sep 17 00:00:00 2001 +From: Raphael Amorim +Date: Mon, 9 Sep 2024 09:30:53 +0200 +Subject: [PATCH] use correct ffi::XPointer on ime/context.rs for x11 + +--- + rio-window/src/platform_impl/linux/x11/ime/context.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rio-window/src/platform_impl/linux/x11/ime/context.rs b/rio-window/src/platform_impl/linux/x11/ime/context.rs +index ebfeba74f..d924ed5c4 100644 +--- a/rio-window/src/platform_impl/linux/x11/ime/context.rs ++++ b/rio-window/src/platform_impl/linux/x11/ime/context.rs +@@ -174,7 +174,7 @@ impl PreeditCallbacks { + let start_callback = create_xim_callback(client_data, unsafe { + mem::transmute::< + usize, +- unsafe extern "C" fn(*mut x11_dl::xlib::_XIM, *mut i8, *mut i8), ++ unsafe extern "C" fn(ffi::XIM, ffi::XPointer, ffi::XPointer), + >(preedit_start_callback as usize) + }); + let done_callback = create_xim_callback(client_data, preedit_done_callback); diff --git a/srcpkgs/rio/template b/srcpkgs/rio/template index f45fc18372e..12e3adb8d7e 100644 --- a/srcpkgs/rio/template +++ b/srcpkgs/rio/template @@ -1,6 +1,6 @@ # Template file for 'rio' pkgname=rio -version=0.1.10 +version=0.1.12 revision=1 build_style=cargo build_wrksrc="frontends/rioterm" @@ -13,7 +13,7 @@ license="MIT" homepage="https://raphamorim.io/rio/" changelog="https://raw.githubusercontent.com/raphamorim/rio/main/CHANGELOG.md" distfiles="https://github.com/raphamorim/rio/archive/refs/tags/v${version}.tar.gz" -checksum=74a366d8c59d780843ed05a2fd10837d3e6795c4d73a90d600ed7637152b89a5 +checksum=7fe4a0e462e8a474cbcf7da4085dfe3d72ed2bb1fb801a851447a72d0c62be7e post_install() { vinstall ${wrksrc}/misc/logo.svg 644 usr/share/icons/hicolor/scalable/apps rio.svg