pkgsrc-Changes archive

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

CVS commit: pkgsrc/wm/leftwm



Module Name:    pkgsrc
Committed By:   pin
Date:           Sun Feb 27 20:36:26 UTC 2022

Modified Files:
        pkgsrc/wm/leftwm: distinfo
Added Files:
        pkgsrc/wm/leftwm/patches:
            patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs

Log Message:
wm/leftwm: fix build

Fix build errors on architectures with u8


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/wm/leftwm/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/wm/leftwm/distinfo
diff -u pkgsrc/wm/leftwm/distinfo:1.2 pkgsrc/wm/leftwm/distinfo:1.3
--- pkgsrc/wm/leftwm/distinfo:1.2       Mon Dec 13 19:04:02 2021
+++ pkgsrc/wm/leftwm/distinfo   Sun Feb 27 20:36:26 2022
@@ -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 @@ Size (x11-dl-2.19.1.crate) = 64664 bytes
 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

Added files:

Index: pkgsrc/wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs
diff -u /dev/null pkgsrc/wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs:1.1
--- /dev/null   Sun Feb 27 20:36:26 2022
+++ pkgsrc/wm/leftwm/patches/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs      Sun Feb 27 20:36:26 2022
@@ -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