While investigating https://bugs.gentoo.org/943200 I found that xfs_scrub adds "-static" in order to statically link against xfsprogs' own libhandle. Indeed it turns out that none of the xfsprogs executables dynamically link against the shared lib, which is then installed anyway. Removing the -static in the Makefile lets it successfully link against the shared lib. IMHO we should either: 1) continue to link libhandle statically and not install it 2) link dynamically Since libhandle is only ~18k it's probably not worth the shared trouble and easiest to just not install it. Reproducible: Always
Created attachment 908476 [details, diff] Patch for xfsprogs-6.11.0 to properly clean up libhandle
It looks there was already half a cleanup in place, so the attached patch just goes all the way. Verified with ldd on all xfsprogs binaries in sbin.
Btw it also seems the parallel make dependencies are fixed, I successfully built several times with -j8.
Closing as invalid - I missed the fact that xfsprogs also installs headers, and libhandle is needed in case someone wants to develop their own xfs tooling. Sorry for the noise.