File: uptime-disable-windows.diff

package info (click to toggle)
rust-coreutils 0.0.30-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,388 kB
  • sloc: sh: 1,088; python: 407; javascript: 72; makefile: 51
file content (31 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: coreutils/src/uucore/Cargo.toml
===================================================================
--- coreutils.orig/src/uucore/Cargo.toml
+++ coreutils/src/uucore/Cargo.toml
@@ -124,4 +124,4 @@ version-cmp = []
 wide = []
 custom-tz-fmt = []
 tty = []
-uptime = ["libc", "windows-sys", "utmpx", "utmp-classic", "thiserror"]
+uptime = ["libc", "utmpx", "thiserror"]
Index: coreutils/src/uu/uptime/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/uptime/Cargo.toml
+++ coreutils/src/uu/uptime/Cargo.toml
@@ -25,11 +25,11 @@ uucore = { workspace = true, features =
 #[target.'cfg(target_os = "openbsd")'.dependencies]
 #utmp-classic = { workspace = true }
 
-[target.'cfg(target_os="windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_System_RemoteDesktop",
-  "Wdk_System_SystemInformation",
-] }
+#[target.'cfg(target_os="windows")'.dependencies]
+#windows-sys = { workspace = true, features = [
+#  "Win32_System_RemoteDesktop",
+#  "Wdk_System_SystemInformation",
+#] }
 
 [[bin]]
 name = "uptime"