Search Criteria
Package Details: zig-git 0.9.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/zig-git.git (read-only, click to copy) |
---|---|
Package Base: | zig-git |
Description: | a programming language prioritizing robustness, optimality, and clarity |
Upstream URL: | https://ziglang.org |
Licenses: | MIT |
Conflicts: | zig |
Provides: | zig |
Submitter: | PedroHLC |
Maintainer: | jonathon |
Last Packager: | jonathon |
Votes: | 10 |
Popularity: | 1.12 |
First Submitted: | 2016-08-09 17:43 (UTC) |
Last Updated: | 2021-12-25 21:12 (UTC) |
Dependencies (5)
Required by (41)
- brightnessztl (requires zig) (make)
- colorstorm (requires zig) (make)
- est (requires zig) (make)
- gmi2html (requires zig) (make)
- gpower2-git (requires zig) (make)
- gyro (requires zig) (make)
- hr-zig (requires zig) (make)
- kble-git (requires zig) (make)
- mepo (requires zig) (make)
- mepo (requires zig) (check)
- nfm-git (requires zig) (make)
- nvim-zig-git (requires zig) (optional)
- o (requires zig) (optional)
- o-bin (requires zig) (optional)
- outfieldr (requires zig) (make)
- outfieldr-git (requires zig) (make)
- passphrase (requires zig) (make)
- passphrase-git (requires zig) (make)
- river (requires zig) (make)
- river-git (requires zig) (make)
Latest Comments
Techcable commented on 2022-06-28 02:24 (UTC)
Currently the latest master commit will not build because of Zig issue #11137. Essentially Zig does not link to
c_nonshared
, although that is needed on recent version of Arch.Here is an example of a compilation failure on latest master: Github Gist Several other examples of compilation failure are available on the issue.
PR #11529 provides a simple (but hacky) fix to the solution.
You should patch it until upstream adds a proper fix.
graysky commented on 2022-06-17 12:43 (UTC)
@clarfonthey - just build with
makepkg -sA
to skip the arch check.Techcable commented on 2022-05-24 18:14 (UTC)
It would be really amazing if you could add a debug build for this package. Maybe using
OPTIONS=(debug !strip)
and passing the appropriate options to cmake.Not sure if this is best done in a seperate package, but it would be really awesome :)
clarfonthey commented on 2022-05-05 15:46 (UTC)
Would you be willing to add
aarch64
to the list of supported architectures? I haven't had any problems building for it and it would be useful to not have to locally patch it.cajm commented on 2021-12-25 18:04 (UTC) (edited on 2021-12-27 00:42 (UTC) by cajm)
@jonathon Got it. The problem with calling
make
is that sometimes theCMAKE_GENERATOR
environment variable set toNinja
, making CMake generate abuild.ninja
instead of aMakefile
. Usingcmake --build
(as demonstrated in the AUR CMake packaging guidelines detects whether it should callmake
orninja
based on what it generated. If you want for forcemake
usage, I suggest adding-G 'Unix Makefiles'
to thecmake
parameters. Otherwise you get an error sayingmake: *** No targets specified and no makefile found. Stop.
jonathon commented on 2021-12-22 12:02 (UTC)
@cajm, the PKGBUILD mostly follows the upstream build instructions.
cajm commented on 2021-12-02 15:03 (UTC)
Please use
cmake --build build
andcmake --install build
instead of runningmake
directly. Not everyone usesmake
as their cmake generator.tas commented on 2021-11-12 04:50 (UTC)
The Zig repository has been moved to 'https://github.com/ziglang/zig.git'. While GitHub still forwards the old path to the new one, the old organization name (and repository path) is now up for grabs, so please update this package to the new URL when you can.
diegovsky commented on 2021-04-28 03:58 (UTC)
A patch to use llvm 12 is needed. This isn't building rn. I guess we wait for llvm 12 to reach pacman's repos or we patch to use the AUR llvm.
wbthomason commented on 2020-06-26 14:21 (UTC)
@tiehuis: Thanks!
katt commented on 2020-06-26 12:40 (UTC) (edited on 2020-06-26 12:41 (UTC) by katt)
The new pkgver no longer complies with the VCS package guidelines. https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver()_function
It should at the very least contain the revision
tiehuis commented on 2020-06-26 12:39 (UTC) (edited on 2020-06-26 12:40 (UTC) by tiehuis)
Apologies for the delay here. I've updated the PKGBUILD as per jonathon's patch and added him as a co-maintainer at his request to ensure there can be more timely updates in the case I am busy in the future.
Thank you jonathon for the patch.
wbthomason commented on 2020-06-25 15:25 (UTC)
@tiehuis: Could you please update the PKGBUILD with @jonathon's patch? As noted in the 2020-05-05 out-of-date flag message, the existing PKGBUILD no longer works.
jonathon commented on 2020-04-19 11:39 (UTC) (edited on 2020-04-22 13:53 (UTC) by jonathon)
Here's a
git diff
for 0.6.0 and LLVM 10 support. It tidies the PKGBUILD a little bit too:ugla commented on 2020-02-05 15:38 (UTC)
@daurminator I see. Thanks for letting me know!
daurnimator commented on 2020-02-05 15:16 (UTC)
@alva that was an upstream bug, should be fixed now. https://github.com/ziglang/zig/pull/4394
ugla commented on 2020-02-05 12:40 (UTC)
Seems that
CMAKE_BUILD_TYPE
must now be one ofDebug
,Release
,RelWithDebInfo
, orMinSizeRel
. Installing the package currently fails:tiehuis commented on 2019-07-29 10:40 (UTC)
Thanks daurnimator. Updated.
daurnimator commented on 2019-07-29 09:26 (UTC)
Could you pass
-DCMAKE_BUILD_TYPE=None
so that makepkg flags are respected? See https://wiki.archlinux.org/index.php/Makepkg#CFLAGS.2FCXXFLAGS.2FLDFLAGS_in_makepkg.conf_do_not_work_for_CMake_based_packagestiehuis commented on 2019-07-25 09:19 (UTC)
Thank you for the patch! Updated.
jonathon commented on 2019-07-24 13:05 (UTC)
Andrew pushed a temporary fix upstream: https://github.com/ziglang/zig/commit/77c2ac3fcd27b114b0068d3b64b3d884aa71e4ef
Here's a diff to use it:
tiehuis commented on 2019-07-23 00:21 (UTC)
Thanks for filing that issue. I'll check today if the currently changed behavior is sufficient to package and update on progress.
jonathon commented on 2019-07-21 20:59 (UTC)
I've reported a build failure here: https://github.com/ziglang/zig/issues/2928
I don't know if this is related to the new
ZIG_STATIC
configuration (https://github.com/ziglang/zig/pull/2858) or if it's just coincidence.tiehuis commented on 2019-04-20 08:29 (UTC)
Updated the patch. I've used git describe in the pkgver() as per your patch. Thanks for that. This patch will be removed fairly soon when I update upstream to fix the root issue.
jonathon commented on 2019-04-17 11:52 (UTC) (edited on 2019-04-18 17:30 (UTC) by jonathon)
Patch
no_stage2_artifacts.patch
fails to apply after around bc2d60c1.Here's a diff to update both patch files:
(Watch out for missing whitespace if you copy-and-paste, there's a full-text version here: https://bpaste.net/show/0c103164d943)
jonathon commented on 2019-04-09 14:41 (UTC)
The upstream tag of 0.4.0 might be a good opportunity to switch to a fully generated
pkgver
. ;)jonathon commented on 2018-10-02 18:07 (UTC) (edited on 2019-04-10 12:11 (UTC) by jonathon)
Something to consider, the wiki has some examples of
pkgver()
functions which don't require hard-coding a version number, e.g.:->
tiehuis commented on 2018-09-23 10:10 (UTC) (edited on 2018-09-23 10:11 (UTC) by tiehuis)
This is outdated and will not build until the system LLVM is updated to LLVM-7.0 [1]. For the mean time, if you require a master build, see the auto-built static binaries on the website [2].
[1] https://www.archlinux.org/todo/llvm-7/
[2] https://ziglang.org/builds/zig-linux-x86_64-master.tar.xz
tiehuis commented on 2018-04-30 05:35 (UTC)
Should be fixed now.
antoyo commented on 2018-04-30 02:34 (UTC)
Hi. I have the following error when trying to install this package:
==> Lancement de prepare()... patching file cmake/Findllvm.cmake Hunk #1 FAILED at 15. 1 out of 1 hunk FAILED -- saving rejects to file cmake/Findllvm.cmake.rej
Could you please fix this? Thanks.