pkgsrc-WIP-changes archive

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

wezterm: update patches.



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Wed May 4 00:06:59 2022 +0200
Changeset:	9e1263326683597af828062edf193be9b34518a5

Modified Files:
	wezterm/distinfo
Added Files:
	wezterm/patches/patch-.._vendor_battery-0.7.8_Cargo.toml
	wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs
	wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_device.rs
	wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_iterator.rs
	wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_mod.rs

Log Message:
wezterm: update patches.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9e1263326683597af828062edf193be9b34518a5

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

diffstat:
 wezterm/distinfo                                        |  5 +++++
 .../patches/patch-.._vendor_battery-0.7.8_Cargo.toml    | 17 +++++++++++++++++
 ....._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs | 13 +++++++++++++
 ..._vendor_battery-0.7.8_src_platform_freebsd_device.rs | 10 ++++++++++
 ...endor_battery-0.7.8_src_platform_freebsd_iterator.rs | 10 ++++++++++
 .../patch-.._vendor_battery-0.7.8_src_platform_mod.rs   | 13 +++++++++++++
 6 files changed, 68 insertions(+)

diffs:
diff --git a/wezterm/distinfo b/wezterm/distinfo
index a4b5e3102f..a0ec59b7c7 100644
--- a/wezterm/distinfo
+++ b/wezterm/distinfo
@@ -1431,6 +1431,11 @@ Size (zvariant-3.1.2.crate) = 64127 bytes
 BLAKE2s (zvariant_derive-3.1.2.crate) = 78b3d52ca6d037d6d195a7dbde3b874532caef634f06501ed35e9003abed27b0
 SHA512 (zvariant_derive-3.1.2.crate) = 6e0349429dd1272726440dcaa4298f9dc8b9e840299291fe23874309d8861d1f77549a9cd7fd4b6c440c8aaa73020a5ff5b5b1cc6efdde24fdd430a1c3e87514
 Size (zvariant_derive-3.1.2.crate) = 10123 bytes
+SHA1 (patch-.._vendor_battery-0.7.8_Cargo.toml) = 0a801670593f3e4013b48ecdb3a49ac0a2734cd5
+SHA1 (patch-.._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs) = 34742c9caaf971b9ff58f00d77d90625650a752a
+SHA1 (patch-.._vendor_battery-0.7.8_src_platform_freebsd_device.rs) = 3df1b50aaa9372960074209cf05283b91e689bbd
+SHA1 (patch-.._vendor_battery-0.7.8_src_platform_freebsd_iterator.rs) = 8643e7b81cbf9437a912997a4ebfd03f8fca60de
+SHA1 (patch-.._vendor_battery-0.7.8_src_platform_mod.rs) = 27f73610bd05abcacb1189ecb6339d83d360e8c4
 SHA1 (patch-.._vendor_ioctl-rs-0.1.6_src_lib.rs) = 6cde36dfc661d5b47cd168bf19e7e9f39dec84c2
 SHA1 (patch-.._vendor_ioctl-rs-0.1.6_src_os_mod.rs) = ad91945e767d4f9d4c0ab9c5ccee572a2cea53dd
 SHA1 (patch-.._vendor_serial-unix-0.4.0_Cargo.toml) = 210483d5f03eee5735d90007e132749cb66b53a3
diff --git a/wezterm/patches/patch-.._vendor_battery-0.7.8_Cargo.toml b/wezterm/patches/patch-.._vendor_battery-0.7.8_Cargo.toml
new file mode 100644
index 0000000000..c80c24ff2d
--- /dev/null
+++ b/wezterm/patches/patch-.._vendor_battery-0.7.8_Cargo.toml
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- ../vendor/battery-0.7.8/Cargo.toml.bak	2022-05-03 23:31:42.366252794 +0200
++++ ../vendor/battery-0.7.8/Cargo.toml	2022-05-03 23:29:58.606488876 +0200
+@@ -37,10 +37,10 @@
+ 
+ [dev-dependencies.tempfile]
+ version = "^3.0"
+-[target."cfg(any(target_os = \"dragonfly\", target_os = \"freebsd\"))".dependencies.libc]
++[target."cfg(any(target_os = \"dragonfly\", target_os = \"freebsd\", target_os =\"netbsd\"))".dependencies.libc]
+ version = "~0.2"
+ 
+-[target."cfg(any(target_os = \"dragonfly\", target_os = \"freebsd\"))".dependencies.nix]
++[target."cfg(any(target_os = \"dragonfly\", target_os = \"freebsd\", target_os =\"netbsd\"))".dependencies.nix]
+ version = "~0.19"
+ [target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.core-foundation]
+ version = "~0.7"
diff --git a/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs
new file mode 100644
index 0000000000..a96cf11245
--- /dev/null
+++ b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_acpi.rs
@@ -0,0 +1,13 @@
+--- ../vendor/battery-0.7.8/src/platform/freebsd/acpi.rs.orig	2022-05-03 23:17:48.208460903 +0200
++++ ../vendor/battery-0.7.8/src/platform/freebsd/acpi.rs	2022-05-03 23:18:16.618049883 +0200
+@@ -7,6 +7,10 @@
+ use std::mem;
+ use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
+ use std::str::FromStr;
++use libc;
++use nix;
++use nix::ioctl_read;
++use nix::ioctl_readwrite;
+ 
+ use crate::{Result, State, Technology};
+ 
diff --git a/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_device.rs b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_device.rs
new file mode 100644
index 0000000000..4500f4c5fd
--- /dev/null
+++ b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_device.rs
@@ -0,0 +1,10 @@
+--- ../vendor/battery-0.7.8/src/platform/freebsd/device.rs.orig	2022-05-03 23:17:58.214050268 +0200
++++ ../vendor/battery-0.7.8/src/platform/freebsd/device.rs	2022-05-03 23:18:32.888859036 +0200
+@@ -5,6 +5,7 @@
+ use crate::platform::traits::BatteryDevice;
+ use crate::units::{ElectricPotential, Energy, Power, ThermodynamicTemperature};
+ use crate::{Result, State, Technology};
++use libc;
+ 
+ #[derive(Default)]
+ pub struct IoCtlDevice {
diff --git a/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_iterator.rs b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_iterator.rs
new file mode 100644
index 0000000000..5cc773b800
--- /dev/null
+++ b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_freebsd_iterator.rs
@@ -0,0 +1,10 @@
+--- ../vendor/battery-0.7.8/src/platform/freebsd/iterator.rs.orig	2022-05-03 23:18:05.176446147 +0200
++++ ../vendor/battery-0.7.8/src/platform/freebsd/iterator.rs	2022-05-03 23:18:47.016514365 +0200
+@@ -5,6 +5,7 @@
+ use super::{IoCtlDevice, IoCtlManager};
+ use crate::platform::traits::BatteryIterator;
+ use crate::Result;
++use libc;
+ 
+ pub struct IoCtlIterator {
+     manager: Rc<IoCtlManager>,
diff --git a/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_mod.rs b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_mod.rs
new file mode 100644
index 0000000000..5f9eae4dbe
--- /dev/null
+++ b/wezterm/patches/patch-.._vendor_battery-0.7.8_src_platform_mod.rs
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- ../vendor/battery-0.7.8/src/platform/mod.rs.orig	2022-05-03 23:01:26.871498635 +0200
++++ ../vendor/battery-0.7.8/src/platform/mod.rs	2022-05-03 23:02:10.195004362 +0200
+@@ -17,7 +17,7 @@
+         pub type Manager = windows::PowerManager;
+         pub type Iterator = windows::PowerIterator;
+         pub type Device = windows::PowerDevice;
+-    } else if #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] {
++    } else if #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd"))] {
+         mod freebsd;
+ 
+         pub type Manager = freebsd::IoCtlManager;


Home | Main Index | Thread Index | Old Index