From 49da9b89aed137bde076e39fd2285ddb2cd52129 Mon Sep 17 00:00:00 2001 From: Weijie Wang Date: Wed, 29 May 2024 11:56:51 +0000 Subject: [PATCH] community/dua: fix build on loongarch64 Update libc to v0.2.155 Signed-off-by: Weijie Wang --- community/dua/APKBUILD | 4 +++- community/dua/update-rust-libc.patch | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 community/dua/update-rust-libc.patch diff --git a/community/dua/APKBUILD b/community/dua/APKBUILD index b8311705ec9..72bd1477e78 100644 --- a/community/dua/APKBUILD +++ b/community/dua/APKBUILD @@ -8,7 +8,8 @@ url="https://github.com/Byron/dua-cli" license="MIT" arch="all" makedepends="cargo cargo-auditable" -source="https://github.com/Byron/dua-cli/archive/v$pkgver/dua-$pkgver.tar.gz" +source="https://github.com/Byron/dua-cli/archive/v$pkgver/dua-$pkgver.tar.gz + update-rust-libc.patch" builddir="$srcdir/dua-cli-$pkgver" options="net" # fetch dependencies @@ -32,4 +33,5 @@ package() { sha512sums=" 257a839f43c4f9155b819e6a1c6e268513ef9c53a49731234d3344c130276c7e724cc32b3545342d36459d892459568c78444f826f805aa6f34cf78aa8c498b8 dua-2.29.0.tar.gz +ba226071ffe22ac6f92b17e3bf67d9f4b0bf64ec525ab4a881916c0c44f46881c99bd2b530d73dfb662c07889f43b4afaf14db81fad4a68e63072bd44ba61735 update-rust-libc.patch " diff --git a/community/dua/update-rust-libc.patch b/community/dua/update-rust-libc.patch new file mode 100644 index 00000000000..eac5cab7729 --- /dev/null +++ b/community/dua/update-rust-libc.patch @@ -0,0 +1,16 @@ +diff --git a/Cargo.lock b/Cargo.lock +index 8972f3d..2f63435 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -618,9 +618,9 @@ dependencies = [ + + [[package]] + name = "libc" +-version = "0.2.153" ++version = "0.2.155" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" ++checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" + + [[package]] + name = "lock_api"