Closed issue by DBLouis on void-packages repository https://github.com/void-linux/void-packages/issues/32631 Description: I am having an issue with XBPS, not sure if this is the expected behavior or not. Here is a minimal reproducible example: ```sh # Template file for 'foobar' pkgname=foobar version=1 revision=1 build_style=meta # cgmanager depends on dbus (could be anything depending on dbus) # dbus-elogind is placed after, on purpose depends="cgmanager dbus-elogind" short_desc="whatever" license="whatever" homepage="whatever" ``` The following will attempt to install both `dbus` and `dbus-elogind` and eventually fail. ```sh ./xbps-src pkg foobar xbps-install \ -R https://alpha.de.repo.voidlinux.org/current \ -R hostdir/binpkgs/test \ -r "$(mktemp -d)" -S foobar ``` Installing directly does not fail and correctly replace `dbus` with `dbus-elogind`, no matter the order: ```sh xbps-install \ -R https://alpha.de.repo.voidlinux.org/current \ -r "$(mktemp -d)" -S cgmanager dbus-elogind ```