turbo: update to 2.0.11

This commit is contained in:
Maksim Bondarenkov
2024-08-01 09:32:24 +03:00
committed by GitHub
parent 051c84c75a
commit a32be5b7c3
2 changed files with 3 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
_realname=turbo
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.0.9
pkgver=2.0.11
pkgrel=1
pkgdesc="Incremental bundler and build system optimized for JavaScript and TypeScript (mingw-w64)"
arch=('any')
@@ -24,21 +24,17 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-rust"
options=('!strip')
source=("git+${msys2_repository_url}.git#tag=v${pkgver}"
"zstd-sys.tar.gz::https://crates.io/api/v1/crates/zstd-sys/2.0.10+zstd.1.5.6/download"
"turbo-enable-lazy_cell.patch"
"zstd-sys-remove-statik.patch")
sha256sums=('14f2c25620a23492c4b963960f1017a16dc832c43786885988998f17f66042c7'
sha256sums=('1ea35047d3813fe2da6feb7cd70de49eda6fceddd776570ad709f40b568ccd43'
'c253a4914af5bafc8fa8c86ee400827e83cf6ec01195ec1f1ed8441bf00d65aa'
'b295ce57777c8b7be2ef2bbd03fca5968e6b8653fcb5c6ceafa47705c387e9bd'
'48f4900ceb02d3aaf9a1020f33d56629156e96759f456c0e7ca18bfcf910767b')
prepare() {
cd "${_realname}"
rm -f rust-toolchain.toml
patch -Np1 -i ../turbo-enable-lazy_cell.patch
patch -d ../zstd-sys-2.0.10+zstd.1.5.6 -i ../zstd-sys-remove-statik.patch
sed -i.orig '/\[patch\.crates-io\]/a zstd-sys = { path = "../zstd-sys-2.0.10+zstd.1.5.6" }' Cargo.toml
sed -i '/\[patch\.crates-io\]/a zstd-sys = { path = "../zstd-sys-2.0.10+zstd.1.5.6" }' Cargo.toml
cargo update -p zstd-sys
RUSTC_BOOTSTRAP=1 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"

View File

@@ -1,10 +0,0 @@
--- a/crates/turborepo-lib/src/lib.rs
+++ b/crates/turborepo-lib/src/lib.rs
@@ -2,6 +2,7 @@
#![feature(box_patterns)]
#![feature(error_generic_member_access)]
#![feature(hash_extract_if)]
+#![feature(lazy_cell)]
#![feature(option_get_or_insert_default)]
#![feature(once_cell_try)]
#![feature(panic_info_message)]