fix
This commit is contained in:
parent
5ab0ecf9c7
commit
1814edd7bd
2 changed files with 15 additions and 4 deletions
|
|
@ -54,13 +54,13 @@ directory = "../vendor"
|
|||
EOF
|
||||
|
||||
#==
|
||||
cp -a vendor/time-0.3.25 vendor/time-0.3.25-patched
|
||||
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-0.3.25-patched/src/format_description/parse/mod.rs
|
||||
vendor/time-patched/src/format_description/parse/mod.rs
|
||||
###
|
||||
grep zeroidc/Cargo.toml 'time-0.3.25-patched' || cat >> zeroidc/Cargo.toml <<EOF
|
||||
grep zeroidc/Cargo.toml 'time-patched' || cat >> zeroidc/Cargo.toml <<EOF
|
||||
[patch.crates-io]
|
||||
time = { path = "../vendor/time-0.3.25-patched" }
|
||||
time = { path = "../vendor/time-patched" }
|
||||
EOF
|
||||
#==
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,17 @@ replace-with = "vendored-sources"
|
|||
directory = "../vendor"
|
||||
EOF
|
||||
|
||||
#==
|
||||
cp -a vendor/time-0.3.25 vendor/time-0.3.25-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-0.3.25-patched/src/format_description/parse/mod.rs
|
||||
###
|
||||
grep zeroidc/Cargo.toml 'time-0.3.25-patched' || cat >> zeroidc/Cargo.toml <<EOF
|
||||
[patch.crates-io]
|
||||
time = { path = "../vendor/time-0.3.25-patched" }
|
||||
EOF
|
||||
#==
|
||||
|
||||
|
||||
%build
|
||||
%make_build ZT_USE_MINIUPNPC=1 one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue