fix
This commit is contained in:
parent
5cbee8e0c8
commit
bc7c72d80c
1 changed files with 14 additions and 0 deletions
|
|
@ -51,8 +51,22 @@ replace-with = "vendored-sources"
|
||||||
|
|
||||||
[source.vendored-sources]
|
[source.vendored-sources]
|
||||||
directory = "../vendor"
|
directory = "../vendor"
|
||||||
|
|
||||||
|
[net]
|
||||||
|
offline = true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
#==
|
||||||
|
cp -a vendor/time vendor/time-patched
|
||||||
|
perl -0777 -pi -e 's/let items = format_items\s*\n\s*\.map\(\|res\|\s*res\.map\(Into::into\)\)\s*\n\s*\.collect::<Result<Box<_>, _>>\(\)\?\s*;/let items = format_items.collect::<Result<Box<_>, _>>()?;/s' \
|
||||||
|
vendor/time-patched/src/format_description/parse/mod.rs
|
||||||
|
###
|
||||||
|
grep zeroidc/Cargo.toml 'time-patched' || cat >> zeroidc/Cargo.toml <<EOF
|
||||||
|
[patch.crates-io]
|
||||||
|
time = { path = "../vendor/time-patched" }
|
||||||
|
EOF
|
||||||
|
#==
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build ZT_USE_MINIUPNPC=1 one
|
%make_build ZT_USE_MINIUPNPC=1 one
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue