Port details |
- zig Language designed for robustness, optimality, and maintainability
- 0.13.0 lang
=7 0.13.0Version of this port present on the latest quarterly branch. - Maintainer: bsd@orsolic.org
 - Port Added: 2019-09-21 12:10:14
- Last Update: 2024-10-03 04:52:49
- Commit Hash: b2b3906
- People watching this port, also watch:: synth, jpeg-turbo, libevent, mesa-libs, dbus
- License: MIT
- WWW:
- https://ziglang.org/
- Description:
- Zig is a general purpose programming language designed for robustness,
optimality, and maintainability.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- Conflicts:
- CONFLICTS_INSTALL:
- To install the port:
- cd /usr/ports/lang/zig/ && make install clean
- To add the package, run one of these commands:
- pkg install lang/zig
- pkg install zig
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: zig
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: aarch64 amd64
- distinfo:
- TIMESTAMP = 1727279589
SHA256 (zig-0.13.0.tar.xz) = 06c73596beeccb71cc073805bdb9c0e05764128f16478fa53bf17dfabc1d4318
SIZE (zig-0.13.0.tar.xz) = 17220728
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- icu>=71 : devel/icu
- llvm18>=0 : devel/llvm18
- cmake : devel/cmake-core
- ninja : devel/ninja
- Runtime dependencies:
-
- llvm18>=0 : devel/llvm18
- Library dependencies:
-
- libzstd.so : archivers/zstd
- This port is required by:
- for Build
-
- astro/mepo
- audio/linuxwave
- devel/zls
- sysutils/ncdu2
- x11/waylock
- x11-wm/river
- for Run
-
- devel/zls
Configuration Options:
- ===> The following configuration options are available for zig-0.13.0:
DOCS=on: Build and/or install documentation
STATIC=off: sets ZIG_STATIC to avoid 800MiB LLVM runtime dependency
===> Use 'make config' to modify these settings
- Options name:
- lang_zig
- USES:
- cmake compiler:c++11-lang localbase:ldflags tar:xz
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.13.0 03 Oct 2024 04:52:49
    |
Matthias Fechner (mfechner)  |
lang/zig: update to 0.13.0
- include static compile fix by asmodai@ (see PR 279604)
- automatically generate the PLIST
PR: 279604
Reported by: asmodai@
Approved by: bsd@orsolic.org (maintainer) |
0.12.1 13 Jun 2024 18:57:38
    |
Jan Beich (jbeich)  |
lang/zig-devel: remove port after 28238a95a3f5
PR: 279702
Approved by: bsd@orsolic.org (maintainer) |
0.12.1 10 Jun 2024 22:50:49
    |
Jan Beich (jbeich)  |
lang/zig: update to 0.12.1
Force rebuild consumers due to changes in codegen and std library.
Changes: https://github.com/ziglang/zig/compare/0.12.0...0.12.1
PR: 279608
Approved by: bsd@orsolic.org (maintainer) |
0.12.0 20 May 2024 14:42:39
    |
Jan Beich (jbeich)  Author: Pero Oršolić |
lang/zig: update to 0.12.0
Changes: https://ziglang.org/download/0.12.0/release-notes.html
PR: 278570
Differential Revision: https://reviews.freebsd.org/D45024 |
0.11.0_1 20 May 2024 14:42:36
    |
Jan Beich (jbeich)  Author: Pero Oršolić |
lang/zig: adjust CONFLICTS after 98d70399e765
Differential Revision: https://reviews.freebsd.org/D45024 |
0.11.0_1 20 May 2024 14:42:34
    |
Jan Beich (jbeich)  Author: Pero Oršolić |
lang/zig: drop unused dependency on archivers/lzma
Warning: you might not need LIB_DEPENDS on liblzma.so
actual-package-depends: dependency on /usr/lib/liblzma.so not registered (normal
if it belongs to base)
Differential Revision: https://reviews.freebsd.org/D45024 |
0.11.0_1 20 May 2024 14:39:28
    |
Jan Beich (jbeich)  Author: Pero Oršolić |
lang/zig: pacify check-plist after 8c1e3e605452
4b6d52cef587 claimed to fix but didn't:
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: /wrkdirs/usr/ports/lang/zig/work/.build/stage3/bin/zig
Error: Orphaned:
/wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/build_runner.zig
Error: Orphaned: /wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/c.zig
Error: Orphaned:
/wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/compiler_rt.zig
Error: Orphaned:
/wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/compiler_rt/aarch64_outline_atomics.zig
Error: Orphaned:
/wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/compiler_rt/absv.zig
Error: Orphaned:
/wrkdirs/usr/ports/lang/zig/work/.build/stage3/lib/zig/compiler_rt/absvdi2.zig
[...]
Error: Orphaned: @dir lib/zig/std/compress/lzma/testdata
Error: Orphaned: @dir lib/zig/std/compress/xz/testdata
[...]
PR: 278570
Differential Revision: https://reviews.freebsd.org/D45024 |
0.11.0_1 14 Feb 2024 14:39:00
    |
Dave Cottlehuber (dch)  |
lang/zig-devel: NEW PORT - latest version of zig language
Adds latest development version of zig-lang - upcoming 0.12.
- based off https://reviews.freebsd.org/D41067
- with further changes from lang/zig which has evolved
- update MAINTAINER per email approval for lang/zig*
Test Plan: Tested on 14.0-RELEASE and 15.0-CURRENT.
Differential Revision: https://reviews.freebsd.org/D43416
Differential Revision: https://reviews.freebsd.org/D41067
Obtained from: Pero Orsolic <bsd@orsolic.org> |
0.11.0_1 04 Jan 2024 23:25:10
    |
Dave Cottlehuber (dch)  |
lang/zig: pet port after 0.11.0 update
- fix optional DOCS build for PR270007
- fix pkg-plist sorting
- clean up work dirs to help docs build
- remove stale cmake flags
PR: 270007 |
0.11.0 02 Jan 2024 09:33:33
    |
Jan Beich (jbeich)  |
lang/zig: unbreak fetch due distfile refresh after 8c1e3e605452
fetch: https://ziglang.org/download/0.11.0/zig-0.11.0.tar.xz: size mismatch:
expected 65092512, actual 15275316
$ tar tvf zig-0.11.0.tar.xz
[...]
-drwxr-xr-x 0 ci ci 0 3 Aug 19:21 zig-0.11.0/
+drwxr-xr-x 0 ci ci 0 14 Aug 21:57 zig-0.11.0/
[...]
-drwxr-xr-x 0 ci ci 0 3 Aug 19:21 zig-0.11.0/zig-cache/
-drwxr-xr-x 0 ci ci 0 3 Aug 19:21 zig-0.11.0/zig-cache/h/
--rw-r--r-- 0 ci ci 1637 3 Aug 19:21
zig-0.11.0/zig-cache/h/00889a5c28974786c8a0c50f32a3b330.txt
--rw-r--r-- 0 ci ci 1643 3 Aug 19:21
zig-0.11.0/zig-cache/h/0191ddcdc8f7323e7ca29bde7a0ce808.txt
--rw-r--r-- 0 ci ci 1649 3 Aug 19:21
zig-0.11.0/zig-cache/h/02293e34764cd700f7fa1bad9f99905d.txt
--rw-r--r-- 0 ci ci 1486 3 Aug 19:21
zig-0.11.0/zig-cache/h/037b3303e65027dcd4d04821163b69fb.txt
--rw-r--r-- 0 ci ci 1335 3 Aug 19:21
zig-0.11.0/zig-cache/h/0477d12ba45a9f7192f1c7e081ea54c6.txt
[...]
PR: 273124 (expect pkg-fallout@ spam)
Reported by: olgeni (via private mail)
See also: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/54824 |
0.11.0 01 Jan 2024 05:37:19
    |
Jan Beich (jbeich)  Author: Nathan Fisher |
lang/zig: update to 0.11.0
Changes: https://ziglang.org/download/0.11.0/release-notes.html
PR: 273124
Approved by: dch (maintainer) |
0.10.1_3 01 Jan 2024 05:36:21
    |
Jan Beich (jbeich)  |
lang/zig: fork 0.10 into a pinned port
Some consumers are ready for 0.11 syntax but many are not.
PR: 273124
Approved by: dch (maintainer) |
0.10.1_3 17 Nov 2023 11:46:00
    |
Jan Beich (jbeich)  |
devel/icu: update to 74.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-74-1
Reported by: GitHub (watch releases)
PR: 274317
Exp-run by: antoine (incomplete)
Approved by: fluffy |
0.10.1_2 13 Apr 2023 00:56:37
    |
Jan Beich (jbeich)  |
devel/icu: update to 73.1
- Temporarily switch to GitHub auto archive (release artifacts are N/A atm)
Changes: https://github.com/unicode-org/icu/releases/tag/release-73-1
Reported by: GitHub (watch releases)
PR: 270422
Exp-run by: antoine |
0.10.1_1 04 Feb 2023 23:28:53
    |
Dave Cottlehuber (dch)  |
lang/zig: build for lowest common denominator CPU
Systems that don't have AVX2 or newer CPU instructions will SIGILL. This
seems particularly cruel for a language with the moniker "Gotta Go Fast".
PR: 269206
Differential Revision: https://reviews.freebsd.org/D38284
Reported by: Yonas Yanfa
Tested by: Oleh Vinichenko |
0.10.1 23 Jan 2023 18:24:09
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.10.1 & upstreamed aarch64 FreeBSD patches |
0.10.0_1 18 Jan 2023 09:48:57
    |
Jan Beich (jbeich)  |
lang/zig: unbreak Sigaction.handler_fn on aarch64
$ cat test.zig
const std = @import("std");
const os = std.os;
pub fn main() anyerror!void {
// From https://github.com/riverwm/river/blob/v0.2.2/river/main.zig#L97-L104
const sig_ign = os.Sigaction{
.handler = .{ .handler = os.SIG.IGN },
.mask = os.empty_sigset,
.flags = 0,
};
try os.sigaction(os.SIG.PIPE, &sig_ign, null);
} (Only the first 15 lines of the commit message are shown above ) |
0.10.0 11 Jan 2023 22:08:28
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.10.0 release |
0.9.1_3 19 Oct 2022 08:10:29
    |
Jan Beich (jbeich)  |
devel/icu: update to 72.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-72-1
Reported by: GitHub (watch releases)
PR: 266582
Exp-run by: antoine |
0.9.1_2 17 Sep 2022 10:56:01
    |
Adriaan de Groot (adridg)  |
lang/zig, lang/zig-devel: fix for CMake 3.24
Add the THREADS_PREFER_PTHREAD_FLAG explicitly for zig builds;
these are the only two ports that need that, otherwise it would
be a candidate for adding to our platform CMake flags.
Without the flag, CMake 3.24 changes how pthreads are searched,
and it ends up leaving out the -pthread flag from the compile.
For zig, this causes the bootstrap compiler to crash immediately
(it does not even reach main), which kills the build. Prior to
CMake 3.24, this flag already existed, but the order in which
pthreads were searched was different, and we ended up using the
-pthread flag anyway.
The PR is for the CMake update. This was the last blocker for it.
PR: 265652 |
0.9.1_1 11 Sep 2022 11:51:14
    |
Dave Cottlehuber (dch)  |
lang/zig: fix linker missing symbols ucnv_open ucnv_close
PR: 265967
Reported by:
Sponsored by: SkunkWerks, GmbH |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
0.9.1 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
0.9.1 17 May 2022 14:07:51
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.9.1
Switch to pre-built docs, as this more than halves the build time and
also enables BUILD_AS_NON_ROOT with poudriere.
PR: 261396
Reported by: kib
Sponsored by: SkunkWerks, GmbH |
0.9.0 04 Jan 2022 09:19:25
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.9.0
Reviewed by: jbeich
Sponsored by: SkunkWerks, GmbH |
0.8.1 30 Sep 2021 21:23:30
    |
Rene Ladan (rene)  |
cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11
Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*
Reviewed by: doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index |
0.8.1 09 Sep 2021 12:54:21
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.8.1
bugfix only release
- https://ziglang.org/download/0.8.1/release-notes.html
Reviewed by: jbeich
Differential Revision: https://reviews.freebsd.org/D31880 |
0.8.0 22 Jun 2021 22:12:39
    |
Dave Cottlehuber (dch)  |
lang/zig: update to 0.8.0 and add docs
Reviewed by: jbeich
Reviewed by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Differential Revision: https://reviews.freebsd.org/D30742
Sponsored by: SkunkWerks, GmbH |
0.7.1_2 13 Apr 2021 20:17:16
    |
Adriaan de Groot (adridg)  |
lang/zig: fix plist
Testport complains of orphans, so add these two @dir entries;
the directories are empty and I don't actually see where they
are created.
Bumping PORTREVISION because the package changes (directories).
While here, sort pkg-plist a little. |
0.7.1_1 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
0.7.1_1 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
0.7.1_1 29 Mar 2021 09:23:43
  |
dch  |
lang/zig: backport syslog functions from master
These will eventually land in zig 0.8.0
Sponsored by: SkunkWerks, GmbH |
0.7.1 15 Dec 2020 20:20:21
  |
dch  |
lang/zig: update to 0.7.1
Submitted by: dch
Reviewed by: jbeich
Differential Revision: https://reviews.freebsd.org/D27614 |
0.7.0 15 Dec 2020 00:24:37
  |
dch  |
lang/zig: revert 558076 due to breakage via ports-committer@
Reported by: jbeich |
0.7.1 14 Dec 2020 06:32:18
  |
dch  |
lang/zig: update to 0.7.1 and take ownership
Sponsored by: SkunkWerks, GmbH |
0.7.0 09 Nov 2020 07:16:56
  |
jbeich  |
lang/zig: Update to 0.7.0
Changes: https://ziglang.org/download/0.7.0/release-notes.html |
0.6.0 28 Sep 2020 05:05:25
  |
tobik  |
Reset MAINTAINER |
0.6.0 15 Apr 2020 03:50:18
  |
tobik  |
lang/zig: Update to 0.6.0
Changes: https://ziglang.org/download/0.6.0/release-notes.html |
0.5.0 01 Oct 2019 05:59:19
  |
tobik  |
lang/zig: Update to 0.5.0
Changes: https://ziglang.org/download/0.5.0/release-notes.html |
0.4.0 22 Sep 2019 13:10:12
  |
tobik  |
lang/zig: Drop unnecessary BINARY_ALIAS |
0.4.0 21 Sep 2019 12:10:07
  |
tobik  |
New port: lang/zig
Zig is a general purpose programming language designed for robustness,
optimality, and maintainability.
WWW: https://ziglang.org/ |