pkgsrc-WIP-changes archive

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

rust195: carry over 'cargo help build' patch from 1.94



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Mon Apr 20 11:11:17 2026 +0200
Changeset:	3b52540eb8ea945635a93c4f2e57b948bba5fefd

Modified Files:
	rust195/distinfo
Added Files:
	rust195/patches/patch-src_tools_cargo_src_bin_cargo_commands_help.rs

Log Message:
rust195: carry over 'cargo help build' patch from 1.94

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

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

diffstat:
 rust195/distinfo                                     |  1 +
 ...ch-src_tools_cargo_src_bin_cargo_commands_help.rs | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diffs:
diff --git a/rust195/distinfo b/rust195/distinfo
index 1add38b80b..05f81c4c9d 100644
--- a/rust195/distinfo
+++ b/rust195/distinfo
@@ -130,6 +130,7 @@ SHA1 (patch-src_llvm-project_llvm_cmake_modules_AddLLVM.cmake) = 29438700020db4f
 SHA1 (patch-src_llvm-project_llvm_include_llvm-c_DataTypes.h) = cb011fc19957883c01725797f7c85ed1b20f96f1
 SHA1 (patch-src_llvm-project_llvm_include_llvm_Analysis_ConstantFolding.h) = 75019dcb3dbca6cda33ba329dbe483101dcf48e7
 SHA1 (patch-src_llvm-project_llvm_utils_FileCheck_FileCheck.cpp) = 2587c2f4d11ad8f75bf8a16de625135b26bacc15
+SHA1 (patch-src_tools_cargo_src_bin_cargo_commands_help.rs) = e76c6746470959487a2ae9178dbd76c1a59ea64e
 SHA1 (patch-src_tools_cargo_src_cargo_core_profiles.rs) = e1af7fde97416e0a269ee34efd37f4f47fcf7a95
 SHA1 (patch-src_tools_cargo_tests_testsuite_build.rs) = 333ec513b9b94750b2424a7c1b21c809e6ea25b8
 SHA1 (patch-src_tools_rust-installer_install-template.sh) = f222961e0fd4bac2f680f90d34a3e01864e3cebb
diff --git a/rust195/patches/patch-src_tools_cargo_src_bin_cargo_commands_help.rs b/rust195/patches/patch-src_tools_cargo_src_bin_cargo_commands_help.rs
new file mode 100644
index 0000000000..b21f90147a
--- /dev/null
+++ b/rust195/patches/patch-src_tools_cargo_src_bin_cargo_commands_help.rs
@@ -0,0 +1,20 @@
+$NetBSD$
+
+NetBSD's man(1) command only accepts ./*.[0-9] as man pages.
+https://github.com/rust-lang/rust/issues/155548
+
+--- src/tools/cargo/src/bin/cargo/commands/help.rs.orig	2026-04-14 19:55:32.000000000 +0000
++++ src/tools/cargo/src/bin/cargo/commands/help.rs
+@@ -125,7 +125,11 @@ fn write_and_spawn(name: &str, contents: &[u8], comman
+ /// display it.
+ fn write_and_spawn(name: &str, contents: &[u8], command: &str) -> CargoResult<()> {
+     let prefix = format!("cargo-{}.", name);
+-    let mut tmp = tempfile::Builder::new().prefix(&prefix).tempfile()?;
++    let suffix = if command == "man" { ".1" } else { "" };
++    let mut tmp = tempfile::Builder::new()
++        .prefix(&prefix)
++        .suffix(suffix)
++        .tempfile()?;
+     let f = tmp.as_file_mut();
+     f.write_all(contents)?;
+     f.flush()?;


Home | Main Index | Thread Index | Old Index