New issue by ericonr on void-packages repository https://github.com/void-linux/void-packages/issues/31055 Description: From `xlocate libgomp.spec`: ``` [...] cross-x86_64-linux-musl-libc-0.34_1 /usr/x86_64-linux-musl/usr/lib/libgomp.spec libgomp-devel-10.2.1pre1_3 /usr/lib/libgomp.spec ``` `makedepends` are installed in the cross root after the cross toolchain is installed in the host, which means `libgomp-devel` replaces `libgomp.spec` from the cross toolchain. Then, when the dependencies are removed, all the `usr/lib/libgomp*` files are removed, leaving the cross toolchain broken (`xbps-pkgdb` complains). @q66 suggested fixing this by adding `libgomp` related stuff to `cross-vpkg-dummy`, so that it would be resolved to `cross-vpkg-dummy`, but that doesn't fix things, since it apparently breaks how XBPS resolves libraries (might be a xbps bug too, @Chocimier and @Duncaen): My patch: ```diff diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template index 9de559bce0..a0125a8ef9 100644 --- a/srcpkgs/cross-vpkg-dummy/template +++ b/srcpkgs/cross-vpkg-dummy/template @@ -1,6 +1,6 @@ # Template file for 'cross-vpkg-dummy' pkgname=cross-vpkg-dummy -version=0.37 +version=0.38 revision=1 build_style=meta short_desc="Dummy meta-pkg for cross building packages with xbps-src" @@ -23,6 +23,8 @@ provides=" libgfortran-devel-9999_1 libgo-9999_1 libgo-devel-9999_1 + libgomp-9999_1 + libgomp-devel-9999_1 libobjc-9999_1 libobjc-devel-9999_1 gcc-9999_1 @@ -44,6 +46,8 @@ conflicts=" libgfortran-devel>=0 libgo>=0 libgo-devel>=0 + libgomp>=0 + libgomp-devel>=0 libobjc>=0 libobjc-devel>=0 gcc>=0 @@ -56,6 +60,7 @@ shlib_provides=" libgcc_s.so.1 libgnat-10.so libgnarl-10.so + libgomp.so.1 libstdc++.so.6 libgfortran.so.5" ``` Result of trying to install something and a package that's replaced by `cross-vpkg-dummy` (this is what happens in the `makedepends` install step): ```