Issues downgrading in a chroot
Installing a dependency in a downgrade scenario before the dependent package should be able to install them both in a chroot. Here I'm downgrading gcc
and gcc-libs
while building NVIDIA extramodules.
sudo chrootbuild -p nvidia -c -i /var/cache/pacman/pkg/gcc-libs-11.1.0-3-x86_64.pkg.tar.zst -i /var/cache/pacman/pkg/gcc-11.1.0-3-x86_64.pkg.tar.zst
:: Install local package [gcc-libs-11.1.0-3-x86_64.pkg.tar.zst]
loading packages...
warning: downgrading package gcc-libs (11.2.0-3 => 11.1.0-3)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing gcc-libs (11.1.0-3) breaks dependency 'gcc-libs=11.2.0-3' required by gcc
==> ERROR: Failed to install local package.
Cleaning up.