Skip to content

Commit 6c1d7a1

Browse files
committed
updpatch: zed 0.204.5-1
Add riscv64 support for Rust crash handling crates. Upstream status: - crash-context, crash-handling: EmbarkStudios/crash-handling#102, EmbarkStudios/crash-handling#103, EmbarkStudios/crash-handling#104 - minidump: rust-minidump/rust-minidump#1124 - minidump-writer: waiting for minidump - minidumper: waiting for minidump-writer
1 parent e64b5c6 commit 6c1d7a1

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

zed/minidumper-riscv64.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/Cargo.toml b/Cargo.toml
2+
index f44a1061f4..60692f76d0 100644
3+
--- a/Cargo.toml
4+
+++ b/Cargo.toml
5+
@@ -764,6 +764,12 @@ windows-capture = { git = "https://github.com/zed-industries/windows-capture.git
6+
# Makes the workspace hack crate refer to the local one, but only when you're building locally
7+
workspace-hack = { path = "tooling/workspace-hack" }
8+
9+
+crash-context = { git = "https://github.com/hack3ric/crash-handling", rev = "f2c74406171235c960907fb0f3acb2770dcc4a35" }
10+
+crash-handler = { git = "https://github.com/hack3ric/crash-handling", rev = "f2c74406171235c960907fb0f3acb2770dcc4a35" }
11+
+minidumper = { git = "https://github.com/hack3ric/crash-handling", rev = "f2c74406171235c960907fb0f3acb2770dcc4a35" }
12+
+minidump-common = { git = "https://github.com/hack3ric/rust-minidump", rev = "56e5539e3b3cf38d0ab07e3a08d34c2d27e1d31a" }
13+
+minidump-writer = { git = "https://github.com/hack3ric/minidump-writer", rev = "da548e48906a4fd497d7d08a30757a37221004cb" }
14+
+
15+
[profile.dev]
16+
split-debuginfo = "unpacked"
17+
codegen-units = 16

zed/riscv64.patch

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- PKGBUILD
22
+++ PKGBUILD
3-
@@ -36,7 +36,14 @@ makedepends=(cargo
3+
@@ -37,7 +37,14 @@ makedepends=(cargo
44
cmake
55
protobuf
66
vulkan-headers
@@ -16,7 +16,16 @@
1616
optdepends=('clang: improved C/C++ language support'
1717
'eslint: improved Javascript language support'
1818
'pyright: improved Python language support'
19-
@@ -68,10 +75,20 @@ _srcenv() {
19+
@@ -53,6 +60,8 @@ _appid=dev.zed.Zed
20+
21+
prepare() {
22+
cd "$_archive"
23+
+ patch -Np1 -i ../minidumper-riscv64.patch
24+
+ cargo update -p crash-context -p crash-handler -p minidumper -p minidump-common -p minidump-writer
25+
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
26+
export DO_STARTUP_NOTIFY="true"
27+
export APP_ICON="zed"
28+
@@ -69,10 +78,20 @@ _srcenv() {
2029
CFLAGS+=' -ffat-lto-objects'
2130
CXXFLAGS+=' -ffat-lto-objects'
2231
RUSTFLAGS+=" --remap-path-prefix $PWD=/"
@@ -37,10 +46,12 @@
3746
export ZED_UPDATE_EXPLANATION='Updates are handled by pacman'
3847
export RELEASE_VERSION="$pkgver"
3948
export PROTOC=/usr/bin/protoc
40-
@@ -94,3 +111,6 @@ package() {
49+
@@ -95,3 +114,8 @@ package() {
4150
install -Dm0644 -t "$pkgdir/usr/share/applications/" "$_appid.desktop"
4251
install -Dm0644 crates/zed/resources/app-icon.png "$pkgdir/usr/share/icons/$pkgname.png"
4352
}
4453
+
45-
+source+=("git+https://github.com/hack3ric/livekit-rust-sdks.git#commit=3119b6ac0ef5e705b3e92630c8e558648f0892ed")
46-
+sha256sums+=('df044bce7dc5af8adbc3ca29225a62f8cee7a71535d704988abc8b372ea600e7')
54+
+source+=("git+https://github.com/hack3ric/livekit-rust-sdks.git#commit=0563cf43c285f61b7889922b917128bec5dc552f"
55+
+ "minidumper-riscv64.patch")
56+
+sha256sums+=('8262058073b7fb6f28ce30a701629986abcd8987745e040b1710801573502d75'
57+
+ '18b4bed2367ce1932b6b8669299629d3d1623206ae649d74941a32ba6ea5917b')

0 commit comments

Comments
 (0)