pkgsrc-WIP-changes archive

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

rust191: Support flock() on illumos.



Module Name:	pkgsrc-wip
Committed By:	Jonathan Perkin <jperkin%smartos.org@localhost>
Pushed By:	jperkin
Date:		Fri Nov 7 09:44:06 2025 +0000
Changeset:	92dbf17c229fc4f6054d2b5cc6d5d66877a9f86f

Modified Files:
	rust191/distinfo
Added Files:
	rust191/patches/patch-library_std_src_sys_fs_unix.rs

Log Message:
rust191: Support flock() on illumos.

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

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

diffstat:
 rust191/distinfo                                   |  1 +
 .../patches/patch-library_std_src_sys_fs_unix.rs   | 86 ++++++++++++++++++++++
 2 files changed, 87 insertions(+)

diffs:
diff --git a/rust191/distinfo b/rust191/distinfo
index 630de6b15b..e70a9a46eb 100644
--- a/rust191/distinfo
+++ b/rust191/distinfo
@@ -114,6 +114,7 @@ SHA1 (patch-compiler_rustc__target_src_spec_targets_mipsel__unknown__netbsd.rs)
 SHA1 (patch-libc-0.2.168_src_unix_bsd_netbsdlike_netbsd_mod.rs) = c5cd529719daee44aead47ffd97e682ca9d9a1ae
 SHA1 (patch-library_backtrace_src_symbolize_gimli.rs) = 9d5ef634c5a454e474ea5fee76da9bb768f5b3d9
 SHA1 (patch-library_backtrace_src_symbolize_gimli_elf.rs) = 8b18e1dbde59f3e8f20e93c7669618b2c7a13294
+SHA1 (patch-library_std_src_sys_fs_unix.rs) = c5eb48f177f6c1b50903fb6690177058851c526c
 SHA1 (patch-src_bootstrap_bootstrap.py) = fb89adaaf01f558d636734db5d778af4a3c67fd6
 SHA1 (patch-src_bootstrap_src_core_build__steps_compile.rs) = e928203ed4734c93cc33c5a3f7879cf18dcecc83
 SHA1 (patch-src_bootstrap_src_core_build__steps_install.rs) = 00ceb941adbdd8fdb96f75dbcc50c2d2b3e55842
diff --git a/rust191/patches/patch-library_std_src_sys_fs_unix.rs b/rust191/patches/patch-library_std_src_sys_fs_unix.rs
new file mode 100644
index 0000000000..d5ff1277c8
--- /dev/null
+++ b/rust191/patches/patch-library_std_src_sys_fs_unix.rs
@@ -0,0 +1,86 @@
+$NetBSD$
+
+Support flock() on illumos.
+
+--- library/std/src/sys/fs/unix.rs.orig	2025-11-06 19:54:02.066156844 +0000
++++ library/std/src/sys/fs/unix.rs
+@@ -1282,6 +1282,7 @@ impl File {
+     #[cfg(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1305,6 +1306,7 @@ impl File {
+     #[cfg(not(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1319,6 +1321,7 @@ impl File {
+     #[cfg(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1342,6 +1345,7 @@ impl File {
+     #[cfg(not(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1356,6 +1360,7 @@ impl File {
+     #[cfg(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1395,6 +1400,7 @@ impl File {
+     #[cfg(not(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1412,6 +1418,7 @@ impl File {
+     #[cfg(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1451,6 +1458,7 @@ impl File {
+     #[cfg(not(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1468,6 +1476,7 @@ impl File {
+     #[cfg(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",
+@@ -1491,6 +1500,7 @@ impl File {
+     #[cfg(not(any(
+         target_os = "freebsd",
+         target_os = "fuchsia",
++        target_os = "illumos",
+         target_os = "linux",
+         target_os = "netbsd",
+         target_os = "openbsd",


Home | Main Index | Thread Index | Old Index