Package Details: zig-git 0.11.0.r3596.gfbb38a7682-1

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
Keywords: compiler language programming zig ziglang
Licenses: MIT
Conflicts: zig
Provides: zig
Submitter: PedroHLC
Maintainer: leopoldek
Last Packager: leopoldek
Votes: 12
Popularity: 0.001597
First Submitted: 2016-08-09 17:43 (UTC)
Last Updated: 2024-04-08 18:38 (UTC)

Required by (65)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

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 of Debug, Release, RelWithDebInfo, or MinSizeRel. Installing the package currently fails:

==> Starting build()...
::
:: ERROR: Invalid build type: None
::
:: valid types: { Debug, Release, RelWithDebInfo, MinSizeRel }
::
CMake Error at CMakeLists.txt:17 (message):


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

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_packages

tiehuis 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:

diff --git a/.SRCINFO b/.SRCINFO
index df25e51..ba5c46a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = zig-git
    pkgdesc = a programming language prioritizing robustness, optimality, and clarity
-   pkgver = 0.4.0.r184.g40fe6afd
+   pkgver = 0.4.0.r933.g59850c1ce
    pkgrel = 1
    url = http://ziglang.org
    arch = i686
@@ -13,9 +13,7 @@ pkgbase = zig-git
    provides = zig
    conflicts = zig
    source = git://github.com/zig-lang/zig.git
-   source = force_dynamic_llvm.patch
    md5sums = SKIP
-   md5sums = 9a935ede50ab8f1a789349fc3b760c1c

 pkgname = zig-git

diff --git a/PKGBUILD b/PKGBUILD
index 98930fe..f396d22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Marc Tiehuis <marctiehuis at gmail.com>

 pkgname=zig-git
-pkgver=0.4.0.r184.g40fe6afd
+pkgver=0.4.0.r933.g59850c1ce
 pkgrel=1
 pkgdesc="a programming language prioritizing robustness, optimality, and clarity"
 arch=('i686' 'x86_64')
@@ -11,13 +11,8 @@ depends=('clang' 'llvm')
 makedepends=('cmake' 'git')
 provides=(zig)
 conflicts=(zig)
-source=("git://github.com/zig-lang/zig.git" 'force_dynamic_llvm.patch')
-md5sums=('SKIP' '9a935ede50ab8f1a789349fc3b760c1c')
-
-prepare() {
-    cd "$srcdir/$provides"
-    patch -Np1 -i "$srcdir/force_dynamic_llvm.patch"
-}
+source=("git://github.com/zig-lang/zig.git")
+md5sums=('SKIP')

 pkgver() {
     cd "$srcdir/$provides"
@@ -29,7 +24,7 @@ build() {
     mkdir -p build
     cd build
     cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
-    make
+    make DESTDIR=.
 }

 check() {
diff --git a/force_dynamic_llvm.patch b/force_dynamic_llvm.patch
deleted file mode 100644
index c92f302..0000000
--- a/force_dynamic_llvm.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
-index 021c3c6f..82b435af 100644
---- a/cmake/Findllvm.cmake
-+++ b/cmake/Findllvm.cmake
-@@ -15,7 +15,7 @@ find_program(LLVM_CONFIG_EXE
-         "c:/msys64/mingw64/bin"
-         "C:/Libraries/llvm-6.0.0/bin")
- 
--if(NOT(CMAKE_BUILD_TYPE STREQUAL "Debug") OR ZIG_STATIC)
-+if(false)
-   execute_process(
-       COMMAND ${LLVM_CONFIG_EXE} --libfiles --link-static
-       OUTPUT_VARIABLE LLVM_LIBRARIES_SPACES

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.