void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

New package: zed-0.140.5

Open SpidFightFR opened this issue 1 year ago • 67 comments

Testing the changes

  • I tested the changes in this PR: briefly

New package

Local build testing

  • I built this PR locally for my native architecture, (x64-GlibC)

Just me making a PR for Zed, it's evolving fast, the PR is not ready, but the template does work. This PR's purpose is for others to keep track of the tests i'm doing.

Take care, i'm all ears for suggestions of course. :v:

SpidFightFR avatar May 22 '24 19:05 SpidFightFR

ah also, checks will fail. For some reasons the checks require a certain font to be install, on the IRC (thanks to the ones who helped me, you guys rock) we made tests with xorg-fonts nothing promising atm.

SpidFightFR avatar May 22 '24 19:05 SpidFightFR

Also i noted the duplicate (https://github.com/void-linux/void-packages/pull/49019#issuecomment-2087960452) but i'm willing to continue the great work made by the original request author.

To the author, your work helped me a lot for this, thank you.

SpidFightFR avatar May 22 '24 19:05 SpidFightFR

template dir and pkgname should be the same case

classabbyamp avatar May 23 '24 17:05 classabbyamp

template dir and pkgname should be the same case

wait i forgot to upload my new template, my mistake.. It should be better in a while

SpidFightFR avatar May 23 '24 17:05 SpidFightFR

There is something seriously wrong with their .desktop file at upstream.

It doens't work on plasma, no reasons given. When in dolphin, there's a warning next to it: image

(screenshot taken on my main pc, where zed isn't installed, but the issue remains the same on my laptop where zed is installed).

  • I put the exact same content as i did, modifying the base thing: Doesn't work
  • Erase the content, replacing it with what i wrote: It works (not a file type issue)

Then i checked the encoding: all good. Made a diff check: nothing is different.

Mine with the same content weights 200 bytes, the other 400 more or less.

SpidFightFR avatar May 23 '24 19:05 SpidFightFR

desktop-file-validate shows nothing. I'm legit confused.

SpidFightFR avatar May 23 '24 19:05 SpidFightFR

okay found it: Tryexec entry.

SpidFightFR avatar May 23 '24 19:05 SpidFightFR

PR made at upstream: https://github.com/zed-industries/zed/pull/12218

SpidFightFR avatar May 23 '24 20:05 SpidFightFR

exec:zed could be problematic, since it may try running zed the ZFS Event Daemon

Calandracas606 avatar May 23 '24 20:05 Calandracas606

If TryExec=zed is failing because it tries to access zed instead of Zed, I don't think that removing TryExec altogether is a good solution. It should be changed to Zed instead.

meator avatar May 23 '24 20:05 meator

TryExec does serve a purpose, don't remove it, just fix the case

classabbyamp avatar May 23 '24 20:05 classabbyamp

TryExec does serve a purpose, don't remove it, just fix the case

yep, it's done.

SpidFightFR avatar May 23 '24 20:05 SpidFightFR

i'm going to rest a bit, thanks everyone for the help today.

SpidFightFR avatar May 23 '24 21:05 SpidFightFR

You might need to add archs="x86_64-* aarch64-*" because those are the only architectures which wasmtime supports and it seems that there aren't any easy fixes to allow it to run on other architectures beyond disabling extensions at compile time upstream. I'll see if I can get a PR merge which does this.

someone13574 avatar May 24 '24 14:05 someone13574

You might need to add archs="x86_64-* aarch64-*" because those are the only architectures which wasmtime supports and it seems that there aren't any easy fixes to allow it to run on other architectures beyond disabling extensions at compile time upstream. I'll see if I can get a PR merge which does this.

Hey !

Yeah ngl we thought abt the same thing. I was working on it on a local repo but since yesterday i didn't have the time to finish that. Imma see what i can do to finish today.

SpidFightFR avatar May 24 '24 15:05 SpidFightFR

I'll see if I can get a PR merge which does this.

Keep me in touch on that !

SpidFightFR avatar May 24 '24 17:05 SpidFightFR

I'll see if I can get a PR merge which does this.

Keep me in touch on that !

Actually, thinking about it some more, cutting out wasmtime would mean cutting out all tree sitter and lsp support, so it’s a none starter. May as well disable builds for armv6l and 7l. i686 support might be fixable.

someone13574 avatar May 24 '24 17:05 someone13574

Alright, i found a solution for the checks, i think.

Turns out that xorg-font didn't include the required fonts (either Courier or any of the fallbacks: Zed Mono, Helvetica, Cantarell, Ubuntu, Noto Sans), so i installed noto-fonts-ttf as a checkdep. It solves the check for my arch, i hope it will work as well for aarch64.

SpidFightFR avatar May 24 '24 22:05 SpidFightFR

What do you guys think ?

SpidFightFR avatar May 24 '24 23:05 SpidFightFR

Shouldn't it wait until Zed is releasing stable builds for linux? They only are shipping preview builds at the moment.

someone13574 avatar May 25 '24 00:05 someone13574

Shouldn't it wait until Zed is releasing stable builds for linux? They only are shipping preview builds at the moment.

I can maintain the PR until then i guess. Looks stable-enough for my personal usage.

SpidFightFR avatar May 25 '24 00:05 SpidFightFR

would it make sense to depends="git noto-fonts-ttf" ?

If it needs some of the fonts for do_check, it probably needs them at runtime too

Calandracas606 avatar May 25 '24 00:05 Calandracas606

looking at the upstream, i see the bundle-linux script bundling something called cli

cargo build --release --target "${target_triple}" --package zed --package cli

not sure what this cli thing is, why it exists or if it is needed

Calandracas606 avatar May 25 '24 00:05 Calandracas606

looking at the upstream, i see the bundle-linux script bundling something called cli

cargo build --release --target "${target_triple}" --package zed --package cli

not sure what this cli thing is, why it exists or if it is needed

It lets you do some nifty things from the command line in terms of workspace management, but you can totally run without it.

someone13574 avatar May 25 '24 00:05 someone13574

looking at the upstream, i see the bundle-linux script bundling something called cli

cargo build --release --target "${target_triple}" --package zed --package cli

not sure what this cli thing is, why it exists or if it is needed

It lets you do some nifty things from the command line in terms of workspace management, but you can totally run without it.

in that case it should probably be part of the package.

might want to rename the binary to something else though

Calandracas606 avatar May 25 '24 00:05 Calandracas606

would it make sense to depends="git noto-fonts-ttf" ?

If it needs some of the fonts for do_check, it probably needs them at runtime too

Nope. Zed Mono and Zed Sans are embedded into the binary. The tests need the other font however because the builtin ones aren't available for the tests.

Edit: wrong link

someone13574 avatar May 25 '24 00:05 someone13574

in that case it should probably be part of the package. might want to rename the binary to something else though

I think it would be best to leave it out. One of the devs also said they were considering merging their functionality into a single binary so it wouldn't make much sense if its just going to get removed anyways.

someone13574 avatar May 25 '24 00:05 someone13574

would it make sense to depends="git noto-fonts-ttf" ?

If it needs some of the fonts for do_check, it probably needs them at runtime too

Well tbf i don't think so, lemme explain:

Zed by default will bring its own font, Zed. At this point the end user can switch to another font if they want to.

Only problem is, checks don't seem to detect that said font for some reason...

SpidFightFR avatar May 25 '24 07:05 SpidFightFR

in that case it should probably be part of the package. might want to rename the binary to something else though

I think it would be best to leave it out. One of the devs also said they were considering merging their functionality into a single binary so it wouldn't make much sense if its just going to get removed anyways.

Let's see what they planned. I guess it's another reason why we shouldn't ship Zed into the repos, right now.

SpidFightFR avatar May 25 '24 07:05 SpidFightFR

Only problem is, checks don't seem to detect that said font for some reason...

Because it’s only embedded in release builds. See https://docs.rs/rust-embed/latest/rust_embed/trait.RustEmbed.html

someone13574 avatar May 25 '24 12:05 someone13574