Package Details: cleartouch-git 0.1.0.r14.g4c37c64-1

Git Clone URL: https://aur.archlinux.org/cleartouch-git.git (read-only, click to copy)
Package Base: cleartouch-git
Description: A touchpad vizualizer written in zig
Upstream URL: https://github.com/canadaduane/cleartouch
Licenses: MIT
Conflicts: cleartouch
Provides: cleartouch
Submitter: martorskull
Maintainer: None
Last Packager: martorskull
Votes: 0
Popularity: 0.000000
First Submitted: 2022-09-08 18:40 (UTC)
Last Updated: 2022-09-08 18:40 (UTC)

Latest Comments

MeisBarry commented on 2023-02-23 04:11 (UTC)

Okay I started digging and manually compiling a little.

At the top of build.zig I changed addIncludeDir to addIncludePath, and addLibPath to addLibraryPath. Then I got this error:

➜ cleartouch zig build -Drelease-small=true                                                                                                                                              git:(makepkg|✚6…8
/home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/clap/clap/comptime.zig:156:6: error: empty test name must be omitted
test "" {
     ^~
/home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/clap/clap.zig:108:12: error: value with comptime-only type '@TypeOf(null)' depends on runtime control flow
    } else if (short_name == null) {
           ^~
/home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/clap/clap.zig:106:16: note: runtime control flow here
    } else if (found_comma) {
               ^~~~~~~~~~~
referenced by:
    main: /home/barry/.cache/yay/cleartouch-git/src/cleartouch/src/main.zig:48:13
    callMain: /usr/lib/zig/std/start.zig:614:32
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

error: cleartouch...
error: The following command exited with error code 1:
/usr/bin/zig build-exe /home/barry/.cache/yay/cleartouch-git/src/cleartouch/src/main.zig -lc -ludev -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rcore.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rmodels.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/raudio.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rshapes.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rtext.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rtextures.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/utils.c -cflags -std=gnu99 -DPLATFORM_DESKTOP -DGL_SILENCE_DEPRECATION -fno-sanitize=undefined -- /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/rglfw.c -lGL -lX11 -OReleaseSmall --cache-dir /home/barry/.cache/yay/cleartouch-git/src/cleartouch/zig-cache --global-cache-dir /home/barry/.cache/zig --name cleartouch --pkg-begin pike /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/pike/pike.zig --pkg-end --pkg-begin clap /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/clap/clap.zig --pkg-end -I /home/barry/.cache/yay/cleartouch-git/src/cleartouch/raylib/include -I /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src -I /home/barry/.cache/yay/cleartouch-git/src/cleartouch/lib/raylib/src/external/glfw/include -L raylib/lib --enable-cache
error: the following build command failed with exit code 1:
/home/barry/.cache/yay/cleartouch-git/src/cleartouch/zig-cache/o/4d1b201d965b98b0d5654990c81a462a/build /usr/bin/zig /home/barry/.cache/yay/cleartouch-git/src/cleartouch /home/barry/.cache/yay/cleartouch-git/src/cleartouch/zig-cache /home/barry/.cache/zig -Drelease-small=true

I don't know anything about Zig but it seems like the language is unstable and recent changes broke a lot of things. I submitted an issue to the cleartouch github: https://github.com/canadaduane/cleartouch/issues/2

MeisBarry commented on 2023-02-23 03:33 (UTC) (edited on 2023-02-23 03:35 (UTC) by MeisBarry)

I'm getting an error during the build step:

==> Making package: cleartouch-git 0.1.0.r14.g4c37c64-1 (Wed 22 Feb 2023 07:30:09 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
/usr/lib/zig/std/build.zig:2314:31: error: deprecated; use addIncludePath
    pub const addIncludeDir = @compileError("deprecated; use addIncludePath");
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    addRayLib: /home/barry/.cache/yay/cleartouch-git/src/cleartouch/build.zig:11:8
    build: /home/barry/.cache/yay/cleartouch-git/src/cleartouch/build.zig:70:5
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cleartouch-git