Issue: app-crypt/libsecret-0.20.5-r3 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Created attachment 851020 [details]
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary:
Program gjs found: NO
Run-time dependency tss2-esys found: NO (tried pkgconfig and cmake)
Run-time dependency tss2-mu found: NO (tried pkgconfig and cmake)
Run-time dependency tss2-rc found: NO (tried pkgconfig and cmake)
Run-time dependency tss2-tctildr found: NO (tried pkgconfig and cmake)
libsecret/test-vala-lang.p/test-vala-lang.c:1166:51: error: incompatible function pointer types passing 'void (gpointer)' (aka 'void (void *)') to parameter of type 'GTestDataFunc' (aka 'void (*)(const void *)') [-Wincompatible-function-pointer-types]
Created attachment 861278 [details]
A patch to fix the issue.
clang complains about void (*)(void *) not being compatible with void (*)(const void *). This patch casts the function pointers to the proper type before passing them into the functions that need them.
Upstream discussion of the issue: https://gitlab.gnome.org/GNOME/vala/-/issues/1413