This commit is contained in:
Arseniy Romenskiy 2026-02-20 17:03:55 +03:00
parent 5cbee8e0c8
commit bc7c72d80c

View file

@ -51,8 +51,22 @@ replace-with = "vendored-sources"
[source.vendored-sources]
directory = "../vendor"
[net]
offline = true
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
%make_build ZT_USE_MINIUPNPC=1 one