- Put cbindgen .cargo/config to separate dir to avoid overwriting original stuff

This commit is contained in:
Jan Horak 2019-10-22 12:04:14 +02:00
parent a534d9f0a5
commit a65dd614c6

View File

@ -466,19 +466,19 @@ chmod -x third_party/rust/itertools/src/lib.rs
mkdir -p my_rust_vendor mkdir -p my_rust_vendor
cd my_rust_vendor cd my_rust_vendor
%{__tar} xf %{SOURCE2} %{__tar} xf %{SOURCE2}
cd -
mkdir -p .cargo mkdir -p .cargo
cat > .cargo/config <<EOL cat > .cargo/config <<EOL
[source.crates-io] [source.crates-io]
replace-with = "vendored-sources" replace-with = "vendored-sources"
[source.vendored-sources] [source.vendored-sources]
directory = "`pwd`/my_rust_vendor" directory = "`pwd`"
EOL EOL
env CARGO_HOME=.cargo cargo install cbindgen env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH export PATH=`pwd`/.cargo/bin:$PATH
%endif %endif
cd -
echo "Generate big endian version of config/external/icu/data/icud58l.dat" echo "Generate big endian version of config/external/icu/data/icud58l.dat"
%if 0%{?big_endian} %if 0%{?big_endian}