Open X1mper opened 3 months ago
And also, can I ask you to make tarballs for Building without the Internet? For future releases
@X1mper It looks like your Zig version may be too recent. Ly v1.0.2 only supports building with Zig 0.12.0 but not beyond. You can try cherry-picking (or cloning from) https://github.com/fairyglade/ly/commit/fadbbf676ad88e57cecffd501b5a4d4634064688 which backports Zig 0.13.0 support from master
.
And also, can I ask you to make tarballs for Building without the Internet? For future releases
It doesn't seem like a very "clean" solution to me. For each release, we'd have to download the dependencies manually and modify the build.zig.zon
file to use local paths instead, like what you're trying to do I presume.
@X1mper It looks like your Zig version may be too recent. Ly v1.0.2 only supports building with Zig 0.12.0 but not beyond. You can try cherry-picking (or cloning from) fadbbf6 which backports Zig 0.13.0 support from
master
.Only releases build in our repository. I hope the version will be released soon! :)
It doesn't seem like a very "clean" solution to me. For each release, we'd have to download the dependencies manually and modify the
build.zig.zon
file to use local paths instead, like what you're trying to do I presume.
You can try packaging vendor like this:
zig build --global-cache-dir vendor
pushd vendor
rm -rfv z # deletes built files. this is needed so that you only have the dependencies and not the entire build cache
popd
Source: https://en.opensuse.org/Zig#Workaround_for_confusing_package_manager
I suppose it works.
It seems like this method allows not to change the build.zig.zon file
Honestly, this could probably be done for v1.1.0 and even v1.0.3, if I end up releasing that, if it can at least be partially automated. I'll take a better look at it once at least one of those versions near their release.
I had the same problem last night. I tried to build master and v1.0.x and always ended up with an issue regarding zig enum or type cast
I was using zig 0.12.1 and 0.13.0 as the readme indicates zig >= 0.12.0.
Now, the build of master using zig 0.12.0 is working perfectly!
Ly version
1.0.2
Observed behavior
I am maintaining the ly package in the sisyphus ALT Linux repository. My attempts to Build ly without the internet were unsuccessful Everything stopped at the error below
Maybe it will be fixed in the new version and I do not know about it?
Expected behavior
Successful Build
Steps to reproduce
%zig_build --global-cache-dir vendor
Relevant logs