Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551686 - dev-db/mariadb-galera: Dependency cycle when building with sst-xtrabackup
Summary: dev-db/mariadb-galera: Dependency cycle when building with sst-xtrabackup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-10 16:27 UTC by Pascal Jufer
Modified: 2015-06-10 18:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Jufer 2015-06-10 16:27:38 UTC
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
Comment 1 Brian Evans (RETIRED) gentoo-dev 2015-06-10 17:44:13 UTC
Yes, both mariadb-galera with perl USE and xtrabackup-bin depend on dev-perl/DBD-mysql.

The ordering will be corrected
Comment 2 Brian Evans (RETIRED) gentoo-dev 2015-06-10 18:10:17 UTC
+  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
+