When installing mariadb-galera with the USE flag "sst-xtrabackup" on a system where mysql hasn't been installed before, the following dependency cycle occurs: [ebuild N ] dev-db/mariadb-galera-10.0.19::gentoo USE="community extraengine pam ssl sst-xtrabackup -bindist (-cluster) -debug -embedded -jemalloc -latin1 -minimal -odbc -oqgraph -perl -profiling (-selinux) -sphinx -sst-rsync -static -static-libs -systemtap -tcmalloc {-test} -tokudb -xml" 55'196 KiB [ebuild N ] dev-db/xtrabackup-bin-2.2.5::gentoo 24'721 KiB [ebuild N ] dev-perl/DBD-mysql-4.20.0-r1::gentoo USE="-embedded" 135 KiB [ebuild N ] virtual/mysql-5.6-r2:0/18::gentoo USE="-embedded -minimal -static -static-libs" 0 KiB Total: 4 packages (4 new), Size of downloads: 80'051 KiB * Error: circular dependencies: (dev-db/xtrabackup-bin-2.2.5:0/0::gentoo, ebuild scheduled for merge) depends on (dev-perl/DBD-mysql-4.20.0-r1:0/0::gentoo, ebuild scheduled for merge) (runtime) (virtual/mysql-5.6-r2:0/18::gentoo, ebuild scheduled for merge) (buildtime) (dev-db/mariadb-galera-10.0.19:0/0::gentoo, ebuild scheduled for merge) (runtime) (dev-db/xtrabackup-bin-2.2.5:0/0::gentoo, ebuild scheduled for merge) (runtime) It might be possible to break this cycle by applying the following change: - dev-db/mariadb-galera-10.0.19 (Change USE: -sst-xtrabackup) While it can be easily solved with the suggestion stated above, I'm still wondering if this problem can be prevented by making some changes in the ebuild... Thanks! Reproducible: Always
Yes, both mariadb-galera with perl USE and xtrabackup-bin depend on dev-perl/DBD-mysql. The ordering will be corrected
+ 10 Jun 2015; <grknight@gentoo.org> mysql-multilib.eclass: + Resolve cirucular dependency for bug 551686; Make USE=cluster die early for + all except dev-db/mysql-cluster; Documentation update for variables, remove 2 + unused and add WSREP_REVISION; Clarify mariadb bindist USE +