Package Details: zig-dev-bin 1:0.12.0_dev.3433.g640acf862-1

Git Clone URL: https://aur.archlinux.org/zig-dev-bin.git (read-only, click to copy)
Package Base: zig-dev-bin
Description: A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software
Upstream URL: https://ziglang.org/
Keywords: zig
Licenses: MIT
Conflicts: zig
Provides: zig
Submitter: zhangkaizhao
Maintainer: Techcable (junckes)
Last Packager: Techcable
Votes: 17
Popularity: 0.23
First Submitted: 2020-09-20 08:29 (UTC)
Last Updated: 2024-03-24 07:50 (UTC)

Dependencies (4)

Required by (81)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

Zdrobot commented on 2023-01-17 19:32 (UTC)

When updating packages with yay, I see this message:

:: Searching AUR for updates...
 -> zig-dev-bin: local (1:0.11.0_dev.1301+0e659042a-1) is newer than AUR (1:0.11.0_dev.681+f02073434-1)

And Zig is not updated, even though today current zig-dev is zig-linux-x86_64-0.11.0-dev.1329+37424fd11.tar.xz In order to update, I have to uninstall this package, then install it again.

But today it doesn't install, failing with

Downloading Zig 0.11.0_dev.1329+37424fd11 from https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1329+37424fd11.tar.xz

WARNING: No way to GPG/SHA verify the version ahead of time
See Zig issue https://github.com/ziglang/zig/issues/4945 for signed binaries

ERROR: Expected hash null for zig-linux-x86_64-0.11.0_dev.1329+37424fd11.tar.xz, but got 6523f53890904a694cfb2ef4e11e71b852497f185f6dbc34daa9e2c4d9210d7f
checking dependencies...

lyhokia commented on 2023-01-17 05:56 (UTC) (edited on 2023-01-17 05:56 (UTC) by lyhokia)

Right now there's no checksum in zig-version-index.json, so all checksum fails to match. I see the error:

ERROR: Expected hash null for zig-linux-x86_64-0.11.0_dev.1314+9856bea34.tar.xz, but got fd8ade16306421fb0806930b5feac9601497e9b056c17a47c0498aba78da8413

Zdrobot commented on 2023-01-08 14:59 (UTC) (edited on 2023-01-13 19:32 (UTC) by Zdrobot)

Update: installation worked today, installed zig-dev-bin 1:0.11.0_dev.1300+7cb2f9222-1 (Fri Jan 13 21:31:01 2023)

Failed to install:

Downloading Zig 0.11.0_dev.1247+87b223428 from https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.1247+87b223428.tar.xz

WARNING: No way to GPG/SHA verify the version ahead of time
See Zig issue https://github.com/ziglang/zig/issues/4945 for signed binaries

ERROR: Expected hash f22edbed5b0709e9f6c8efbbab4c1161c81dd3a3e09490a49db3a5a97072d902 for zig-linux-x86_64-0.11.0_dev.1247+87b223428.tar.xz, but got 0bc6133ef7f36d0aa4e1213b55eccc10101873db5513c7bfa45dc18818bd871c

Techcable commented on 2022-12-11 02:48 (UTC)

@anagram3k

You are correct. Someone else marked this as out of date, and I didn't have time to test it until recently. It seems to work fine both on x86_64 and ArchLinuxARM.

@dithpri I have added the changes you suggested.

anagram3k commented on 2022-12-10 14:00 (UTC)

Why is this marked out-of-date if it is working? Today this installed 0.11.0_dev.669+bd5a8f86a-1 and it is correctly the last version.

dithpri commented on 2022-12-06 18:50 (UTC) (edited on 2022-12-06 18:51 (UTC) by dithpri)

The build also fails for me when building in a clean chroot, complaining that hello.zig isn't found:

==> Starting check()...
Running Zig Hello World
lib/std/start.zig:3:22: error: unable to load '/build/zig-dev-bin/hello.zig': FileNotFound
const root = @import("root");
                     ^~~~~~
==> ERROR: A failure occurred in check().

check() tries to access /build/zig-dev-bin/hello.zig which obviously doesn't exist, because it's not copied over... Because it's not listed in source. If it is added to source, the build still fails, because it's looking in the wrong place: /build/zig-dev-bin/src/hello.zig is where it's really at (ie. ${srcdir}/hello.zig).

So, to recap: adding hello.zig to the source array (and a checksum), changing hello_file="$(realpath ../hello.zig)" in check() to hello_file="${srcdir}/hello.zig" made it work for me.

Techcable commented on 2022-10-28 16:11 (UTC) (edited on 2022-10-28 16:27 (UTC) by Techcable)

Hi @edtoml ! Sorry for the delayed response. 😬 School is hard!

==> Starting check()... Running Zig Hello World /tmp/makepkg/zig-dev-bin/src/zig-linux-x86_64-0.10.0-dev.4060+61aaef0b0/lib/std/start.zig:3:22: error: unable to load '/tmp/makepkg/zig-dev-bin/hello.zig': FileNotFound const root = @import("root"); ^~~~~~ ==> ERROR: A failure occurred in check(). Aborting... -> error making: zig-dev-bin

I cannot reproduce this issue, neither on 0.10.0_dev.4060+61aaef0b0-2 nor on the latest nightly build (0.10.0_dev.3880+e2bb92b2e-2 right now).

This was with a clean build - it was supposed to have been fixed. Ideas?

Have you made sure this AUR package is at the latest version? 1. What is the output of git log --oneline -n 5 HEAD 2. does the file hello.zig exist in the root of the repository?

You can also use makepkg --nocheck as a workaround to bypass a broken check() function.

Feel free to ignore this if you have already found a workaround or have moved on to some other package.

edtoml commented on 2022-09-17 13:48 (UTC)

This was with a clean build - it was supposed to have been fixed. Ideas? TIA

==> Starting check()... Running Zig Hello World /tmp/makepkg/zig-dev-bin/src/zig-linux-x86_64-0.10.0-dev.4060+61aaef0b0/lib/std/start.zig:3:22: error: unable to load '/tmp/makepkg/zig-dev-bin/hello.zig': FileNotFound const root = @import("root"); ^~~~~~ ==> ERROR: A failure occurred in check(). Aborting... -> error making: zig-dev-bin

paulsnar commented on 2022-08-28 17:55 (UTC) (edited on 2022-08-28 18:05 (UTC) by paulsnar)

Hey @Techcable, really appreciate the changes you've introduced---the single package for both archs removes a significant manual correction step that I used to apply for aarch64. That said, due to Zig issue #9158 makepkg fails on aarch64 because docs/langref.html is located at the root of the tarball instead, and docs/std is not generated at all.

Edit: Secondarily, while I appreciate that check really makes sure that Zig works, the way it's implemented currently litters the default Zig cache (located under $HOME by default) with build products. If I may suggest, isolating Zig to either not use a build cache at all or to keep it confined to the build environment would be preferrable.

Techcable commented on 2022-08-24 04:18 (UTC)

The check() function fails with this error: error: unable to load '/home/.../zig-dev-bin/hello.zig': FileNotFound

Thanks for noticing @legendary-cookie :)

This issue has been fixed now (and I bumped the pkgrel), it was an issue with the old .gitignore.