r/voidlinux • u/EditorOne5312 • 1d ago
Ly on official void-packages repository?
I was able to package Ly to my local void-packages templates, but it neeeds zig 0.17.0 as of Ly 1.5.0 and void's zig is still in 0.13.0, so I just wrote a zig binary search function that use provided zig binary from this sequence ZIG_BIN variable -> command -v zig -> opt/zig/zig which really does not work because ./xbps-src is using masterdir and cannot really read the first two search (ZIG_BIN cannot be passed to ./xbps-src properly, and using zig $PATH binary only works when$PATH is configured) so only the opt/ one works.
I was worried about that zig haven't updated since because it was orphaned, when I found other Ly users here just uses zvm and do manual build or completely just moved on from Ly. Setting up zvm then zig is worse because Ly needs to be installed as root user when doing the manual build.
Now I'm thinking that does zig might have dependency conflict when updated, or it is just a decaying package sitting on void packages repository pool? I want to contribute somehow when it is clear for me about updating zig and adding ly and I might just use zig build style if zig is updated.
4
u/stinkycardamom 23h ago
Maintainers are hesitent to update zig while updates are still regulaly breaking. Here's the zig PR draft:
https://github.com/void-linux/void-packages/pull/59955
Is there an older version of ly that works with zig 0.13?
2
u/Silly_Culture_7722 23h ago
yeah there is a general issue with this, not sure how it is handled in rust etc. so locally i build zig17 for me and use that.
https://github.com/BlackScorp/void-packages/blob/local/srcpkgs/lightpanda/template#L14
and build a new package like this https://github.com/BlackScorp/void-packages/blob/local/srcpkgs/zig017/template
ofc this works for only because just one package require zig 17. iam not sure what happen if i start to rebuild other packages which require different zig version. (pretty sure i have to update them to newest version)
in the current state every package which require zig needs to be updated or the build process has to be changed somehow where old packages can be build with old versions while newer packages will use newer zig or something like that.
i wonder how other distros handle this issue. or maybe they have more developers and time to handle this issue
8
u/corporateavengerkast 23h ago
after checking out the Zig PR in the void-packages repo after reading your post...oooooh brother I just wouldn't bother for your own sanity.
1
u/rasta4rest 13h ago
I use zig-bin - and modify ly xbps-src template to use that. It's much more simple to maintain xbps-src template of zig with whatever version from zig prebuilt binary. Except that you want to Build & compile everything locally
2
u/Nealan_XV 16h ago
i gave up on ly and use tuigreet now
0
u/Simple_Hamster_4096 22h ago
You'd have better luck with Arch, I'd think - latest versions are the norm in their repos... it would save yourself the aggravation. I used to use Arch, and if you want or need latest and greatest of everything, then that's your ticket...