[packages/rust] change in example config is apparently needed too
atler
atler at pld-linux.org
Wed Sep 25 14:12:02 CEST 2024
commit 862443dc17f71c3c88b725b0ff8d6ce068e6c3b1
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Sep 25 14:11:05 2024 +0200
change in example config is apparently needed too
no-network.patch | 22 ++++++++++++++++++++++
rust.spec | 2 +-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/rust.spec b/rust.spec
index 4cd7ceb..be4879b 100644
--- a/rust.spec
+++ b/rust.spec
@@ -417,7 +417,7 @@ export AR="%{__ar}"
--release-channel=%{channel} \
--set=llvm.static-libstdcpp=false \
--set=build.optimized-compiler-builtins=false \
- --set dist.vendor=false
+ --set=dist.vendor=false
export RUST_BACKTRACE=full
%x_py dist --verbose
diff --git a/no-network.patch b/no-network.patch
index ad2af30..980b9e7 100644
--- a/no-network.patch
+++ b/no-network.patch
@@ -68,3 +68,25 @@ index 79c2f73161e48..555a6a7f8bdeb 100644
if let Some(r) = rustfmt {
+From 9778f25ea56cca85918835a7e72bc42121a42888 Mon Sep 17 00:00:00 2001
+From: onur-ozkan <work at onurozkan.dev>
+Date: Sun, 8 Sep 2024 20:16:25 +0300
+Subject: [PATCH 2/3] document `dist.vendor` in `config.example.toml`
+
+Signed-off-by: onur-ozkan <work at onurozkan.dev>
+---
+ config.example.toml | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/config.example.toml b/config.example.toml
+index 2b5e9ae117db7..c66d65e639aa0 100644
+--- a/config.example.toml
++++ b/config.example.toml
+@@ -942,3 +942,6 @@
+ # Copy the linker, DLLs, and various libraries from MinGW into the Rust toolchain.
+ # Only applies when the host or target is pc-windows-gnu.
+ #include-mingw-linker = true
++
++# Whether to vendor dependencies for the dist tarball.
++#vendor = if "is a tarball source" || "is a git repository" { true } else { false }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rust.git/commitdiff/862443dc17f71c3c88b725b0ff8d6ce068e6c3b1
More information about the pld-cvs-commit
mailing list