pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
alacritty: add upstream patch for NetBSD
Module Name: pkgsrc-wip
Committed By: Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By: tnn
Date: Thu Aug 20 06:10:08 2020 +0200
Changeset: 623fbfa573c07559c9ecf474982ec522897e5a94
Modified Files:
alacritty/distinfo
Added Files:
alacritty/patches/patch-vendor_winit_src_platform__impl_linux_mod.rs
Log Message:
alacritty: add upstream patch for NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=623fbfa573c07559c9ecf474982ec522897e5a94
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
alacritty/distinfo | 1 +
.../patch-vendor_winit_src_platform__impl_linux_mod.rs | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diffs:
diff --git a/alacritty/distinfo b/alacritty/distinfo
index 98f27e6d4d..8f570a07bd 100644
--- a/alacritty/distinfo
+++ b/alacritty/distinfo
@@ -1032,3 +1032,4 @@ SHA1 (zip-0.5.6.crate) = 05d84c59be324370bc1c18c0a911ab9a931a19e8
RMD160 (zip-0.5.6.crate) = cc939baa7f513025d527c64d4317ee202de4ad99
SHA512 (zip-0.5.6.crate) = e78ccef45715e49228443324057e94046ebd4e0b992f4d91eb680263a7d71aed931d19dd45bf0b18f8a9507a4716cb2f3c7a3888fed0b9a6fba3e65e74125e90
Size (zip-0.5.6.crate) = 33064 bytes
+SHA1 (patch-vendor_winit_src_platform__impl_linux_mod.rs) = d4b41a886bdc792396eaded25f6aa2f80afb6c4a
diff --git a/alacritty/patches/patch-vendor_winit_src_platform__impl_linux_mod.rs b/alacritty/patches/patch-vendor_winit_src_platform__impl_linux_mod.rs
new file mode 100644
index 0000000000..c73ea771df
--- /dev/null
+++ b/alacritty/patches/patch-vendor_winit_src_platform__impl_linux_mod.rs
@@ -0,0 +1,15 @@
+$NetBSD$
+
+https://github.com/rust-windowing/winit/pull/1664/commits/b1a90fd5c52ac2aff45558ff932a61892859859e
+
+--- ../vendor/winit-0.22.2/src/platform_impl/linux/mod.rs.orig 2020-05-16 16:27:31.000000000 +0000
++++ ../vendor/winit-0.22.2/src/platform_impl/linux/mod.rs
+@@ -725,7 +725,5 @@ fn is_main_thread() -> bool {
+
+ #[cfg(target_os = "netbsd")]
+ fn is_main_thread() -> bool {
+- use libc::_lwp_self;
+-
+- unsafe { _lwp_self() == 1 }
++ std::thread::current().name() == Some("main")
+ }
Home |
Main Index |
Thread Index |
Old Index