pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/leftwm wm/leftwm: fix build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5422a0433e83
branches:  trunk
changeset: 374814:5422a0433e83
user:      pin <pin%pkgsrc.org@localhost>
date:      Sun Feb 27 20:36:26 2022 +0000

description:
wm/leftwm: fix build

Fix build errors on architectures with u8

diffstat:

 wm/leftwm/distinfo                                                                              |   3 +-
 wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs |  24 ++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 5f257acc93b5 -r 5422a0433e83 wm/leftwm/distinfo
--- a/wm/leftwm/distinfo        Sun Feb 27 20:33:46 2022 +0000
+++ b/wm/leftwm/distinfo        Sun Feb 27 20:36:26 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2021/12/13 19:04:02 pin Exp $
+$NetBSD: distinfo,v 1.3 2022/02/27 20:36:26 pin Exp $
 
 BLAKE2s (aho-corasick-0.7.18.crate) = 8925e88e2df4b5ca3b31783f527e1bb31dbe27846f409f631148fa239f3b2935
 SHA512 (aho-corasick-0.7.18.crate) = 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00
@@ -393,3 +393,4 @@
 BLAKE2s (xdg-2.4.0.crate) = 5076d6e37188a8857aa066427e8ceff6f12a7a2d0194521889cada799ce23c50
 SHA512 (xdg-2.4.0.crate) = d45b090c83bda578d89480f783e7238149203256d61aed46ae1657dc3de62551a618aa5a02e9d9867b39de82a8df527d37432b9b8c41afbbf0188f3644c4ad2d
 Size (xdg-2.4.0.crate) = 14035 bytes
+SHA1 (patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs) = 74d9075b42ecd671625240b4580eb2345e635e94
diff -r 5f257acc93b5 -r 5422a0433e83 wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs   Sun Feb 27 20:36:26 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs,v 1.1 2022/02/27 20:36:26 pin Exp $
+
+Fix build errors on architectures with u8, patch by pkubaj
+
+--- leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs.orig  2021-12-13 13:37:54.000000000 +0000
++++ leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs
+@@ -3,7 +3,7 @@ use super::{Screen, WindowHandle, XlibEr
+ use crate::models::{DockArea, WindowState, WindowType, XyhwChange};
+ use crate::XWrap;
+ use std::ffi::CString;
+-use std::os::raw::{c_int, c_long, c_uchar, c_uint, c_ulong};
++use std::os::raw::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong};
+ use std::slice;
+ use x11_dl::xlib;
+ 
+@@ -575,7 +575,7 @@ impl XWrap {
+             if status == 0 {
+                 return Err(XlibError::FailedStatus);
+             }
+-            if let Ok(s) = CString::from_raw(text_prop.value.cast::<i8>()).into_string() {
++            if let Ok(s) = CString::from_raw(text_prop.value.cast::<c_char>()).into_string() {
+                 return Ok(s);
+             }
+         };



Home | Main Index | Thread Index | Old Index