You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
6 years ago
|
From a04e95bc4f807139bd3c4b75f46fd9a60ec1db8f Mon Sep 17 00:00:00 2001
|
||
|
From: Josh Stone <jistone@redhat.com>
|
||
|
Date: Fri, 7 Dec 2018 13:59:03 -0800
|
||
|
Subject: [PATCH 13/13] Set the install root in .cargo/config
|
||
|
|
||
|
---
|
||
|
data/macros.cargo | 4 +++-
|
||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/data/macros.cargo b/data/macros.cargo
|
||
|
index e760721..9a9ce6a 100644
|
||
|
--- a/data/macros.cargo
|
||
|
+++ b/data/macros.cargo
|
||
|
@@ -20,6 +20,9 @@ rustc = "%{__rustc}"\
|
||
|
rustdoc = "%{__rustdoc}"\
|
||
|
rustflags = %{__global_rustflags_toml}\
|
||
|
\
|
||
|
+[install]\
|
||
|
+root = "%{buildroot}%{_prefix}"\
|
||
|
+\
|
||
|
[term]\
|
||
|
verbose = true\
|
||
|
\
|
||
|
@@ -81,7 +84,6 @@ if %__cargo_is_bin; then \
|
||
|
%{shrink:%{__cargo} install \
|
||
|
%{__cargo_common_opts} \
|
||
|
--path . \
|
||
|
- --root %{buildroot}%{_prefix} \
|
||
|
%{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||
|
%* \
|
||
|
}\
|
||
|
--
|
||
|
2.20.0.rc2
|
||
|
|