Zig is a general-purpose programming language designed for robustness, optimality, and maintainability. Zig is statically typed language, compiled into the native code using LLVM backend. There is upcoming 0.5 release, should be ready today https://github.com/ziglang/zig/milestone/7 Older releases are available here https://github.com/ziglang/zig/releases Other distributions already packaged it: https://repology.org/project/zig/versions https://ziglang.org/ https://github.com/ziglang/zig This is how Zig code looks like: var y: i32 = add(10, x); const x: i32 = add(12, 34); test "global variables" { assert(x == 46); assert(y == 56); } fn add(a: i32, b: i32) i32 { return a + b; } const std = @import("std"); const assert = std.debug.assert;
For new package requests, you will need to provide a spec file and follow the process defined here: https://fedoraproject.org/wiki/Package_Review_Process.
I haven't reviewed it, but RPM Sphere has a ziglang package: https://github.com/rpmsphere/source/tree/master/z https://rpmsphere.github.io/
(In reply to Josh Stone from comment #2) > I haven't reviewed it, but RPM Sphere has a ziglang package: > https://github.com/rpmsphere/source/tree/master/z > https://rpmsphere.github.io/ Thank you. Sadly build failed on aarch64.
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
I've been trying to port Wei-Lun Chao spec file to rawhide, and we have an issue (upstream). zig depends on both clang and lld libs, and as of llvm-10, clang ships only libclang-cpp. For some reasons, this library uses codegen options, so it registers them upon linking. This is also the case for liblldCommon, so we end up with the same option being registered twice. Note that zig explicitly doesn't support using libclang-cpp (see https://github.com/ziglang/zig/pull/3149) so we'd need to maintain patch.
Current spec file (fails on running, due to the double registration issue) https://sergesanspaille.fedorapeople.org/ziglang-0.4.0git-1.src.rpm
I've proposed a patch at LLVM level to fix the issue: https://reviews.llvm.org/D75579
New Zig 0.6.0 release is upcoming with the support of the newer LLVM 10 - it maybe worth trying to build it for Fedora 32-based tree? It is scheduled to April 13: https://github.com/ziglang/zig/milestone/8
And it was released, see the full changes here: https://ziglang.org/download/0.6.0/release-notes.html It now relies on LLVM 10 and dropped the support of lesser versions.
This isn't really the place to discuss packaging of something not in Fedora. Good luck packaging it up and if you need assistance, check with the devel list or packaging lists. Thanks.
Review Request: https://bugzilla.redhat.com/show_bug.cgi?id=1912706