New comment by Johnnynator on void-packages repository https://github.com/void-linux/void-packages/pull/46172#issuecomment-1758181891 Comment: Okay, so this issue doesn't seem to be new, since `post_configure` has a workaround, it just doesn't work anymore since ninja will just regenerate the file in `do_build`. You can hack around this by replacing the `meson regenerate` with `touch` ```diff @@ -197,6 +185,7 @@ esac post_configure() { if [ "$CROSS_BUILD" ]; then find -iname "*.ninja" -exec sed -i "{}" \ + -e "s;/usr/bin/meson --internal regenerate.*;/usr/bin/touch ${wrksrc}/build/build.ninja;g" \ -e "/rustc/s; --sysroot ${XBPS_CROSS_BASE}/usr;;g" \ -e "s; /usr/lib/; ${XBPS_CROSS_BASE}/usr/lib/;g" \ -e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" \ ```