pkgsrc-WIP-changes archive

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

Add CLOCK_PROCESS_CPUTIME_ID



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Sat Sep 14 06:10:11 2024 +0200
Changeset:	d726a5b75c24590e66b0c8749296cd0ad1cbbc86

Modified Files:
	aichat/distinfo
Added Files:
	aichat/TODO
	aichat/patches/patch-.._vendor_libc-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs

Log Message:
Add CLOCK_PROCESS_CPUTIME_ID

and CLOCK_THREAD_CPUTIME_ID constants to libc.

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

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

diffstat:
 aichat/TODO                                        | 30 ++++++++++++++++++++++
 aichat/distinfo                                    |  1 +
 ...c-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs | 15 +++++++++++
 3 files changed, 46 insertions(+)

diffs:
diff --git a/aichat/TODO b/aichat/TODO
new file mode 100644
index 0000000000..8ce38efaa5
--- /dev/null
+++ b/aichat/TODO
@@ -0,0 +1,30 @@
+   Compiling sysctl v0.5.5
+error[E0433]: failed to resolve: maybe a missing crate `sys`?
+  --> /usr/pkgsrc/wip/aichat/work/vendor/sysctl-0.5.5/src/lib.rs:77:9
+   |
+77 | pub use sys::ctl::*;
+   |         ^^^ maybe a missing crate `sys`?
+   |
+   = help: consider adding `extern crate sys` to use the `sys` crate
+
+error[E0433]: failed to resolve: maybe a missing crate `sys`?
+  --> /usr/pkgsrc/wip/aichat/work/vendor/sysctl-0.5.5/src/lib.rs:78:9
+   |
+78 | pub use sys::ctl_iter::*;
+   |         ^^^ maybe a missing crate `sys`?
+   |
+   = help: consider adding `extern crate sys` to use the `sys` crate
+
+error[E0432]: unresolved imports `sys::ctl::*`, `sys::ctl_iter::*`
+  --> /usr/pkgsrc/wip/aichat/work/vendor/sysctl-0.5.5/src/lib.rs:77:9
+   |
+77 | pub use sys::ctl::*;
+   |         ^^^^^^^^^^^
+78 | pub use sys::ctl_iter::*;
+   |         ^^^^^^^^^^^^^^^^
+
+Some errors have detailed explanations: E0432, E0433.
+For more information about an error, try `rustc --explain E0432`.
+error: could not compile `sysctl` (lib) due to 3 previous errors
+warning: build failed, waiting for other jobs to finish...
+*** Error code 101
diff --git a/aichat/distinfo b/aichat/distinfo
index 14868dc94e..0b73cdc29d 100644
--- a/aichat/distinfo
+++ b/aichat/distinfo
@@ -1206,3 +1206,4 @@ Size (zerocopy-derive-0.7.35.crate) = 37829 bytes
 BLAKE2s (zeroize-1.8.1.crate) = 5a10298ca4d45f2d0a2cefc2ee481fc2341b0355e78a4b0940c31f776e5b2d38
 SHA512 (zeroize-1.8.1.crate) = dd40ebe98b98fd742608d4066b5ab66caba94b2e679428fcaff9fe547d8cd6ff2360dc85d671ee9183e32fb79cb554d00d6aef9eb8f3d8ad0ec92d0435aa4ebe
 Size (zeroize-1.8.1.crate) = 20029 bytes
+SHA1 (patch-.._vendor_libc-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs) = f8c3dec8130ca28ca863bbdc4cf19086dfbf02d5
diff --git a/aichat/patches/patch-.._vendor_libc-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs b/aichat/patches/patch-.._vendor_libc-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs
new file mode 100644
index 0000000000..d71bd37473
--- /dev/null
+++ b/aichat/patches/patch-.._vendor_libc-0.2.158_src_unix_bsd_netbsdlike_netbsd_mod.rs
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID constants.
+
+--- ../vendor/libc-0.2.158/src/unix/bsd/netbsdlike/netbsd/mod.rs.orig	2024-09-14 03:51:01.201145252 +0000
++++ ../vendor/libc-0.2.158/src/unix/bsd/netbsdlike/netbsd/mod.rs
+@@ -1891,6 +1891,8 @@ pub const MNT_NOWAIT: ::c_int = 2;
+ pub const MNT_LAZY: ::c_int = 3;
+
+ //<sys/timex.h>
++pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2;
++pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 4;
+ pub const NTP_API: ::c_int = 4;
+ pub const MAXPHASE: ::c_long = 500000000;
+ pub const MAXFREQ: ::c_long = 500000;


Home | Main Index | Thread Index | Old Index