Hello! I have found some fixes you can apply to your package, and also will tell you how to fix check.
-
Add
ninjatomakedepends, use it while building the package via-GNinjaand replacectestinvocation withninja -C build check. This works because tests are only enabled at build time, not built! This will build and run the tests. As for why invoke ninja directly, not sure, but upstream CI does the same. -
Since you have decided to use the
Releasebuild type, add-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG"and do the same for itsCXXvariant, this enables-O2instead of-O3. Source: https://wiki.archlinux.org/title/CMake_package_guidelines#Fixing_the_automatic_optimization_flag_override -
Can you please check the usage of
libglvnd? namcap says it might not be needed.
By the time I got to tell you about most of the fixes, you already did them yourself! Cheers!
Pinned Comments
FabioLolix commented on 2023-07-07 05:37 (UTC) (edited on 2025-10-27 06:07 (UTC) by FabioLolix)
Pkgbuild maintained at https://github.com/FabioLolix/PKGBUILD-AUR_fix
every time you have
error while loading shared libraries: libXXX.so.XXX: cannot open shared object file: No such file or directoryfor build from source programs you have to rebuild it@rado84 you need rebuild the package not to hold back other packages, it is the same every time a dinamically linked soname changes
checkrebuildfromrebuild-detectorinto your workflow.