community/gleam: upgrade to 1.15.2

1. https://github.com/gleam-lang/gleam/releases/tag/v1.15.2
2. fix error: error[E0609]: no field `st_atime` on type `&libc::stat`
Ref:
https://github.com/rust-lang/libc/issues/4939
https://github.com/rust-lang/libc/releases/tag/0.2.181
This commit is contained in:
Jingyun Hua 2026-03-20 14:31:13 +08:00 committed by Achill Gilgenast
parent b7b51f9e98
commit 2cf587e886
2 changed files with 26 additions and 4 deletions

View File

@ -2,8 +2,8 @@
# Maintainer: Jingyun Hua <huajingyun@loongson.cn>
maintainer="Jingyun Hua <huajingyun@loongson.cn>"
pkgname=gleam
pkgver=1.14.0
pkgrel=1
pkgver=1.15.2
pkgrel=0
pkgdesc="Statically-typed language that compiles to Erlang and JS"
url="https://gleam.run/"
# s390x: tests stack overflow
@ -23,12 +23,12 @@ checkdepends="
source="$pkgname-$pkgver.tar.gz::https://github.com/gleam-lang/gleam/archive/refs/tags/v$pkgver.tar.gz
skip-bun-case.patch
skip-deno-case.patch
loongarch-update-libc.patch
"
options="net" # cargo fetch
prepare() {
default_prepare
cargo fetch --target="$CHOST" --locked
}
@ -64,7 +64,8 @@ package() {
}
sha512sums="
5e957e145c5a69a960a9a0e258ac462fa266ac636551c47fa02604811c165966d1d6a1f672f7dbd568957e64a1b321a19d46b4a573851f8f4d05c56e47af2138 gleam-1.14.0.tar.gz
3b4b3f1089e6154b2f8cf7a9189f0f3c799e69ce40539cb13655132c1c4a2955fccf1836e44ab145060848749becfa25475edd3d5aeed7bc15f47da7f557cb63 gleam-1.15.2.tar.gz
4f4e0be74ebdc9b31910c8f80d364b0365f2268f62e0d0af5afd36a54d2c1bbb2aaf6bb6c0ecf743e3a4cf3ce80ec792e399912e0bc0d01aa2ea40ec82f5cf27 skip-bun-case.patch
03a1bc735da92ca9142e9c7e51ba3d3d220588d2d74f4c2635d2b3d0fa48ef687403ba123feab2b796362a01d479900617e58c59f606d039a190f4c819254b9b skip-deno-case.patch
19e77a7b37a97796fa588a6a9eb1e0da686efed7372e1e5d1a7b5e5f9d46599a49ada11e5371c6192f50f98ec64014291962fe3babb657f769b474445efd9f40 loongarch-update-libc.patch
"

View File

@ -0,0 +1,21 @@
fix error: error[E0609]: no field `st_atime` on type `&libc::stat`
ref:
https://github.com/rust-lang/libc/issues/4939
https://github.com/rust-lang/libc/releases/tag/0.2.181
diff --git a/Cargo.lock b/Cargo.lock
index fafe004..7f499fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1774,9 +1774,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "libc"
-version = "0.2.180"
+version = "0.2.181"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
+checksum = "459427e2af2b9c839b132acb702a1c654d95e10f8c326bfc2ad11310e458b1c5"
[[package]]
name = "libm"