Skip to content

Commit

Permalink
feat: add netcat for remote development support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
twelho committed Feb 4, 2025
1 parent 003d9e6 commit 02aa473
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions dev.zed.Zed.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dev.zed.Zed.yaml
app-id: dev.zed.Zed
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
command: zed-wrapper
separate-locales: false
Expand Down Expand Up @@ -41,8 +41,8 @@ modules:
- /share/info
- /share/man
- /share/pkgconfig
- '*.a'
- '*.la'
- "*.a"
- "*.la"
config-opts:
- -Dgtk_doc=false
- -Dintrospection=false
Expand All @@ -51,6 +51,56 @@ modules:
sha256: bad10f3c553a0e1854649ab59c5b2434da22ca1a54ae6138f1f53961567e1ab7
url: https://download.gnome.org/sources/gcr/3.41/gcr-3.41.2.tar.xz

- name: libmd
buildsystem: autotools
sources:
- type: archive
url: https://libbsd.freedesktop.org/releases/libmd-1.1.0.tar.xz
sha256: 1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332
x-checker-data:
type: anitya
project-id: 15525
stable-only: true
url-template: https://libbsd.freedesktop.org/releases/libmd-$version.tar.xz
cleanup:
- /lib/pkgconfig
- /share/man

- name: libbsd
buildsystem: autotools
sources:
- type: archive
url: https://libbsd.freedesktop.org/releases/libbsd-0.12.2.tar.xz
sha256: b88cc9163d0c652aaf39a99991d974ddba1c3a9711db8f1b5838af2a14731014
x-checker-data:
type: anitya
project-id: 1567
stable-only: true
url-template: https://libbsd.freedesktop.org/releases/libbsd-$version.tar.xz
cleanup:
- /lib/pkgconfig
- /share/man

- name: netcat
buildsystem: simple
build-commands:
- |
while read patch; do
echo "Applying $patch..."
patch -Np1 -i "debian/patches/$patch"
done < debian/patches/series
- make CFLAGS="$CFLAGS -I/usr/include/libbsd" LDFLAGS="$LDFLAGS -lbsd"
- install -Dm0755 nc /app/bin/nc
sources:
- type: archive
url: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/1.228-1/netcat-openbsd-debian-1.228-1.tar.gz
sha256: a1eb2593335123efc6e9c12a7e73c72cbf0b665739130fc383322f36757f37cc
x-checker-data:
type: anitya
project-id: 21535
stable-only: true
url-template: https://salsa.debian.org/debian/netcat-openbsd/-/archive/debian/$version-1/netcat-openbsd-debian-$version-1.tar.gz

- name: zed
buildsystem: simple
build-commands:
Expand Down

0 comments on commit 02aa473

Please sign in to comment.