Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Compiler-Tools
nodejs-signal-ringrtc
cubeb-sys-device-i8-u8.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cubeb-sys-device-i8-u8.patch of Package nodejs-signal-ringrtc
From d9be0bfca8f9585c2bfc775083124088fd0370ca Mon Sep 17 00:00:00 2001 From: Miriam Zimmerman <mutexlox@signal.org> Date: Wed, 2 Oct 2024 10:48:04 -0400 Subject: [PATCH] Fix build on arm64 linux. On arm64 linux, c_char is u8. CStr::from_ptr is documented to take an i8, but this is not accurate (see https://github.com/rust-lang/rust/issues/113735); instead, it takes c_char, which is sometimes but not always the same. One time it is different is on aarch64 Linux, so without this commit, cubeb-rs fails to build there. --- cubeb-sys/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubeb-sys/src/device.rs b/cubeb-sys/src/device.rs index 5827bf0..bac4a86 100644 --- a/ringrtc/rust/vendor/cubeb-sys/src/device.rs +++ b/ringrtc/rust/vendor/cubeb-sys/src/device.rs @@ -182,7 +182,7 @@ impl Default for cubeb_device_info { impl fmt::Debug for cubeb_device_info { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fn optional_c_str(c_str: *const i8) -> Option<*const i8> { + fn optional_c_str(c_str: *const c_char) -> Option<*const c_char> { (unsafe { c_str.as_ref() }).map(ptr::from_ref) } f.debug_struct("cubeb_device_info")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor