Skip to content

Commit 4f7a328

Browse files
committed
feat: add netcat for remote development support
Zed [requires](https://github.com/zed-industries/zed/blob/eb820ab800ea2a0023667b5c0eb91daa7c9ab084/crates/remote/src/ssh_session.rs#L1423-L1441) the BSD version of `netcat` for remote development. It then depends on `libbsd`, which subsequently depends on `libmd`. Starting a remote development session on another system over SSH works now with the password prompt correctly appearing. Fixes #58.
1 parent a13de27 commit 4f7a328

File tree

1 file changed

+53
-3
lines changed

1 file changed

+53
-3
lines changed

dev.zed.Zed.yaml

+53-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dev.zed.Zed.yaml
22
app-id: dev.zed.Zed
33
runtime: org.freedesktop.Sdk
4-
runtime-version: '24.08'
4+
runtime-version: "24.08"
55
sdk: org.freedesktop.Sdk
66
command: zed-wrapper
77
separate-locales: false
@@ -41,8 +41,8 @@ modules:
4141
- /share/info
4242
- /share/man
4343
- /share/pkgconfig
44-
- '*.a'
45-
- '*.la'
44+
- "*.a"
45+
- "*.la"
4646
config-opts:
4747
- -Dgtk_doc=false
4848
- -Dintrospection=false
@@ -51,6 +51,56 @@ modules:
5151
sha256: bad10f3c553a0e1854649ab59c5b2434da22ca1a54ae6138f1f53961567e1ab7
5252
url: https://download.gnome.org/sources/gcr/3.41/gcr-3.41.2.tar.xz
5353

54+
- name: libmd
55+
buildsystem: autotools
56+
sources:
57+
- type: archive
58+
url: https://libbsd.freedesktop.org/releases/libmd-1.1.0.tar.xz
59+
sha256: 1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332
60+
x-checker-data:
61+
type: anitya
62+
project-id: 15525
63+
stable-only: true
64+
url-template: https://libbsd.freedesktop.org/releases/libmd-$version.tar.xz
65+
cleanup:
66+
- /lib/pkgconfig
67+
- /share/man
68+
69+
- name: libbsd
70+
buildsystem: autotools
71+
sources:
72+
- type: archive
73+
url: https://libbsd.freedesktop.org/releases/libbsd-0.12.2.tar.xz
74+
sha256: b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014
75+
x-checker-data:
76+
type: anitya
77+
project-id: 1567
78+
stable-only: true
79+
url-template: https://libbsd.freedesktop.org/releases/libbsd-$version.tar.xz
80+
cleanup:
81+
- /lib/pkgconfig
82+
- /share/man
83+
84+
- name: netcat
85+
buildsystem: simple
86+
build-commands:
87+
- |
88+
while read patch; do
89+
echo "Applying $patch..."
90+
patch -Np1 -i "debian/patches/$patch"
91+
done < debian/patches/series
92+
- make CFLAGS="$CFLAGS -I/usr/include/libbsd" LDFLAGS="$LDFLAGS -lbsd"
93+
- install -Dm0755 nc /app/bin/nc
94+
sources:
95+
- type: archive
96+
url: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/1.228-1/netcat-openbsd-debian-1.228-1.tar.gz
97+
sha256: a1eb2593335123efc6e9c12a7e73c72cbf0b665739130fc383322f36757f37cc
98+
x-checker-data:
99+
type: anitya
100+
project-id: 21535
101+
stable-only: true
102+
url-template: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/$version-1/netcat-openbsd-debian-$version-1.tar.gz
103+
54104
- name: zed
55105
buildsystem: simple
56106
build-commands:

0 commit comments

Comments
 (0)