Package Details: libastal-cava-git r617.12fa0fb-2

Git Clone URL: https://aur.archlinux.org/libastal-cava-git.git (read-only, click to copy)
Package Base: libastal-cava-git
Description: Audio visaulization library using cava.
Upstream URL: https://github.com/Aylur/astal
Licenses: LGPL-2.1-only
Groups: libastal
Provides: astal-cava, libastal-cava, libastal-cava.so
Submitter: kotontrion
Maintainer: kotontrion
Last Packager: kotontrion
Votes: 8
Popularity: 1.60
First Submitted: 2024-10-29 16:23 (UTC)
Last Updated: 2025-08-05 08:16 (UTC)

Required by (1)

Sources (1)

Latest Comments

dhbahr commented on 2025-10-18 11:22 (UTC)

Package builds succesfully now

dhbahr commented on 2025-10-17 08:10 (UTC)

Someone has opened a PR to fix it upstream it seems

veefox commented on 2025-10-16 21:42 (UTC)

Build fails due to audio_raw_init() signature mismatch in cava.c Here is a quick patch to fix the issue:

--- src/astal/lib/cava/cava.c.orig  2025-10-16 23:06:26.886120103 +0200
+++ src/astal/lib/cava/cava.c   2025-10-16 23:14:31.248603842 +0200
@@ -251,7 +251,7 @@

     priv->input_src = get_input(&priv->audio_data, &priv->cfg);

-    audio_raw_init(&priv->audio_data, &priv->audio_raw, &priv->cfg, &priv->plan);
+    audio_raw_init(&priv->audio_data, &priv->audio_raw, &priv->cfg, (struct cava_plan **)&priv->plan);

     priv->input_thread = g_thread_new("cava_input", priv->input_src, &priv->audio_data);

Not sure if this is the cleanest fix, but it builds successfully !

dhbahr commented on 2025-10-15 13:37 (UTC) (edited on 2025-10-17 08:06 (UTC) by dhbahr)

Package build fails:

🚛 Starting the build:
==> Making package: libastal-cava-git r840.71b008e-1 (Wed 15 Oct 2025 03:35:47 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating astal git repo...
==> Validating source files with sha256sums...
    astal ... Skipped
==> Extracting sources...
  -> Creating working copy of astal git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D
 python.bytecompile=1 build
Directory already configured.

Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
Run "meson setup --reconfigure" to force Meson to regenerate.

If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/dhbahr/.cache/pikaur/build/libastal-cava-git/src/astal/lib/cava/build
ninja: Entering directory `/home/dhbahr/.cache/pikaur/build/libastal-cava-git/src/astal/lib/cava/build'
[1/5] Compiling C object libastal-cava.so.0.1.0.p/cava.c.o
FAILED: libastal-cava.so.0.1.0.p/cava.c.o
cc -Ilibastal-cava.so.0.1.0.p -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/us
r/include/blkid -I/usr/include/cava -I/usr/include/cava/input -I/usr/include/cava/output -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Wno-pedantic -Wno-unused-parameter -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,
-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointe
r -g -ffile-prefix-map=/home/dhbahr/.cache/pikaur/build/libastal-cava-git/src=/usr/src/debug/libastal-cava-git -flto=auto -fPIC -pthread -MD -MQ
libastal-cava.so.0.1.0.p/cava.c.o -MF libastal-cava.so.0.1.0.p/cava.c.o.d -o libastal-cava.so.0.1.0.p/cava.c.o -c ../cava.c
../cava.c: In function ‘astal_cava_cava_start’:
../cava.c:254:69: error: passing argument 4 of ‘audio_raw_init’ from incompatible pointer type [-Wincompatible-pointer-types]
  254 |     audio_raw_init(&priv->audio_data, &priv->audio_raw, &priv->cfg, &priv->plan);
      |                                                                     ^~~~~~~~~~~
      |                                                                     |
      |                                                                     struct cava_plan *
In file included from /usr/include/cava/common.h:6,
                 from ../cava.c:1:
/usr/include/cava/output/common.h:49:39: note: expected ‘struct cava_plan **’ but argument is of type ‘struct cava_plan *’
   49 |                    struct cava_plan **plan);
      |                    ~~~~~~~~~~~~~~~~~~~^~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

Command 'sudo --user=#1000 -- makepkg' failed to execute.

fyi