-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poc zed package template #49019
poc zed package template #49019
Conversation
zed poc package template
srcpkgs/zed/template
Outdated
build_style=cargo | ||
makedepends=" alsa-lib-devel fontconfig-devel wayland-devel libxkbcommon-devel openssl-devel" | ||
depends="alsa-lib fontconfig wayland libxkbcommon libxkbcommon-x11 openssl" | ||
short_desc="Zed is a high-performance, multiplayer code editor." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short_desc="Zed is a high-performance, multiplayer code editor." | |
short_desc="High-performance, multiplayer code editor" |
cant figure out how to get past this |
You need to handle (i.e download) the git submodule, as they are not included in the sources. https://github.com/zed-industries/zed/blob/main/.gitmodules AFAIK, there is not a set way/approach for it in void, different pkgs deal differently - some ask upstream for "hydrated" sources, other add them as distfiles, etc.. Hope that helps :) |
I figured do_fetch() to clone the git repository instead
…On Mon, 4 Mar 2024, 2:18 am Martin, ***@***.***> wrote:
You need to handle (i.e download) the git submodule, as they are not
included in the sources.
https://github.com/zed-industries/zed/blob/main/.gitmodules
AFAIK, there is not a set way/approach for it in void, different pkgs deal
differently - some ask upstream for "hydrated" sources, other add them as
distfiles, etc..
—
Reply to this email directly, view it on GitHub
<#49019 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBZNKIB66MQANXE7R45I5ELYWOCKTAVCNFSM6AAAAABEB2K5ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGMYTCOBYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
That is not permissible. |
so how would i go about adding livekit as a distfile? |
ok ive managed to get the package to build after i created the full source archive myself
but after it was done compiling i got this error
any idea on what could be causing this? |
Here's a working template I made:
|
feel free to make a new pr, ive given up on this
…On Wed, 1 May 2024, 1:09 am Owen Law, ***@***.***> wrote:
ok ive managed to get the package to build after i created the full source
archive myself (ive requested the upstream to provide the archive on every
release) with something like this
pkgname=zed
version=0.124.8
revision=1
build_style=cargo
hostmakedepends="pkg-config python3 cargo"
makedepends="alsa-lib-devel libzstd-devel fontconfig-devel wayland-devel libxkbcommon-devel openssl-devel"
depends="alsa-lib libzstd fontconfig wayland libxkbcommon libxkbcommon-x11 openssl"
short_desc="High-performance, multiplayer code editor"
maintainer="aryalaadi ***@***.***>"
license="GPL-3.0"
homepage="https://github.com/zed-industries/zed"
distfiles="http://localhost:8000/zed.tar.gz"
checksum=a45d80c9c68e8aa232490ea3bfe00712e8e296d606ed37d83f1875a693e46654
but after it was done compiling i got this error
error: found a virtual manifest at `/builddir/zed-0.124.8/Cargo.toml` instead of a package manifest
=> ERROR: zed-0.124.8_1: do_install: '${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" --offline --locked ${configure_args} ${make_install_args}' exited with 101
=> ERROR: in do_install() at common/build-style/cargo.sh:22
any idea on what could be causing this?
Here's a working template I made:
# Template file for 'zed'
pkgname=zed
version=0.132.4
revision=1
build_style=cargo
make_install_args="--path crates/zed"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel libzstd-devel openssl-devel wayland-devel libgit2-devel"
short_desc="High-performance, multiplayer code editor"
maintainer="Owen Law ***@***.***>"
license="AGPL-3.0-or-later, GPL-3.0-or-later, Apache-2.0"
homepage="https://zed.dev/"
_protocol=1.1.2
distfiles="https://github.com/zed-industries/zed/archive/refs/tags/v${version}.tar.gz
https://github.com/livekit/protocol/archive/refs/tags/v${_protocol}.tar.gz>protocol-v${_protocol}.tar.gz"
checksum="e9b0d3079b331114f2dbfb99a23cf7af79d67b9ca9ae94b128953a7654e39cb2
9e3dac3be15f896a6602a4fac12c91286e3b97834ef3e17e3aa69fc592d80761"
skip_extraction="protocol-v${_protocol}.tar.gz"
post_extract() {
vsrcextract -C crates/live_kit_server/protocol "protocol-v${_protocol}.tar.gz"
vlicense LICENSE-AGPL
}
—
Reply to this email directly, view it on GitHub
<#49019 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBZNKIFU34FU5OD3XAXSRGLY77VYPAVCNFSM6AAAAABEB2K5ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBWG43TQMBUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Given that upstream for Linux isn’t stable (or even in beta for that matter), I don’t think a PR is needed at the moment as it will go nowhere. |
I'm personally interested in this. It so happens the latest zed dropped the gitmodules, so that's cool. I may finish this work. |
Feel free to take the template I made above. All you really need to do is update the version number, cut out the |
#50476 is pretty far along. I'm going to wait for that to merge. Closing this, thank you for the initial legwork! |
proof of concept void package template for the zed text editor
Testing the changes