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.
32 lines
1.3 KiB
32 lines
1.3 KiB
6 years ago
|
From 84a73bfa24ce11602a1f19554dc495125be4d0aa Mon Sep 17 00:00:00 2001
|
||
|
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
||
|
Date: Sun, 17 Feb 2019 17:19:25 +0100
|
||
|
Subject: [PATCH 17/18] data: Cargo doesn't escape paths with space
|
||
|
|
||
|
When building matrixmultiply v0.2.2:
|
||
|
|
||
|
BUILDSTDERR: /usr/bin/cp: cannot stat 'spare': No such file or directory
|
||
|
BUILDSTDERR: /usr/bin/cp: failed to get attributes of 'kernels': No such file or directory
|
||
|
|
||
|
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
||
|
---
|
||
|
data/macros.cargo | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/data/macros.cargo b/data/macros.cargo
|
||
|
index 9a9ce6a..9a375d0 100644
|
||
|
--- a/data/macros.cargo
|
||
|
+++ b/data/macros.cargo
|
||
|
@@ -74,7 +74,7 @@ if %__cargo_is_lib; then \
|
||
|
CRATE_VERSION=$(%__cargo_inspector --version Cargo.toml) \
|
||
|
REG_DIR=%{buildroot}%{cargo_registry}/$CRATE_NAME-$CRATE_VERSION \
|
||
|
%{__mkdir} -p $REG_DIR \
|
||
|
- %{__cargo} package -l | xargs %{__cp} --parents -a -t $REG_DIR \
|
||
|
+ %{__cargo} package -l | xargs -d '\n' %{__cp} --parents -a -t $REG_DIR \
|
||
|
%if ! %{with check} \
|
||
|
%{__cp} -a Cargo.toml.orig $REG_DIR/Cargo.toml \
|
||
|
%endif \
|
||
|
--
|
||
|
2.21.0
|
||
|
|