$ USE="client-libs server extraengine -perl" emerge --ask dev-db/mariadb-galera These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-process/lsof-4.88-r1 USE="ipv6 -examples -rpc (-selinux) -static" [ebuild N ] dev-util/scons-2.3.0 USE="-doc" PYTHON_TARGETS="python2_7" [ebuild N ] dev-libs/check-0.9.11 USE="-static-libs -subunit" [ebuild N ] dev-util/boost-build-1.56.0 USE="python -examples {-test}" PYTHON_TARGETS="python2_7" [ebuild N ] dev-db/mysql-init-scripts-2.0-r1 [ebuild N ] dev-libs/boost-1.56.0-r1 USE="nls python threads -context -debug -doc -icu -mpi -static-libs -tools" PYTHON_TARGETS="python2_7 python3_4 -python3_3" [ebuild N ] app-arch/libarchive-3.1.2-r1 USE="acl bzip2 e2fsprogs iconv lzma xattr zlib -expat -lzo -nettle -static-libs" [ebuild N ] dev-util/cmake-3.2.2 USE="ncurses -doc -emacs -qt4 -qt5 -system-jsoncpp {-test}" [ebuild N ~] dev-cpp/asio-1.4.8-r1 USE="ssl -doc -examples {-test}" [ebuild N ~] sys-cluster/galera-25.3.12 USE="ssl -garbd {-test}" CPU_FLAGS_X86="-sse4_2" [ebuild N ] dev-db/mariadb-10.0.21 USE="community extraengine pam ssl -bindist (-cluster) -debug -embedded -jemalloc -latin1 -minimal -odbc -oqgraph -perl -profiling (-selinux) -sphinx -static -static-libs -systemtap -tcmalloc {-test} -tokudb -xml" [ebuild N ] virtual/mysql-5.6-r2 USE="-embedded -minimal -static -static-libs" [ebuild N ~] dev-db/mariadb-galera-10.0.21 USE="client-libs community extraengine pam server ssl sst-rsync tools -bindist (-cluster) -debug -embedded -jemalloc -latin1 -odbc -oqgraph -perl -profiling (-selinux) -sphinx -sst-xtrabackup -static -static-libs -systemtap -tcmalloc {-test} -tokudb -xml" [blocks B ] dev-db/mariadb-galera ("dev-db/mariadb-galera" is blocking dev-db/mariadb-10.0.21) [blocks B ] dev-db/mariadb ("dev-db/mariadb" is blocking dev-db/mariadb-galera-10.0.21) [blocks B ] <virtual/mysql-5.6-r4 ("<virtual/mysql-5.6-r4" is blocking dev-db/mariadb-galera-10.0.21) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. (dev-db/mariadb-galera-10.0.21:0/18::gentoo, ebuild scheduled for merge) pulled in by dev-db/mariadb-galera For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages Reproducible: Always Steps to Reproduce: 1. Unmask packages required by dev-db/mariadb-galera on amd64 2. Attempt to install dev-db/mariadb-galera Actual Results: Dependecy resolution fails with blocks Expected Results: `client-libs` USE flag should remove the dependency of the `mariadb` and `mysql` library installs I was able to resolve the issue with the following patch (by reading the mysql-multilib.eclass) ```patch --- mysql-multilib.eclass 2015-09-16 10:18:47.759886164 -0500 +++ mysql-multilib.2.eclass 2015-09-16 10:19:46.339885030 -0500 @@ -464,8 +464,8 @@ # For other stuff to bring us in # dev-perl/DBD-mysql is needed by some scripts installed by MySQL -PDEPEND="${PDEPEND} perl? ( >=dev-perl/DBD-mysql-2.9004 ) - ~virtual/mysql-${MYSQL_PV_MAJOR}" +PDEPEND="${PDEPEND} perl? ( >=dev-perl/DBD-mysql-2.9004 + ~virtual/mysql-${MYSQL_PV_MAJOR} )" # my_config.h includes ABI specific data MULTILIB_WRAPPED_HEADERS=( /usr/include/mysql/my_config.h /usr/include/mysql/private/embedded_priv.h ) ``` It looks like `virtual/mysql-x.y` is required no matter what, which will conflict with mariadb-galera. I think maybe the `~virtual/mysql-x.y` should have been removed? --- $ emerge --info Portage 2.2.20.1 (python 2.7.9-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.5, glibc-2.20-r2, 4.1.6-hardened x86_64) ================================================================= System uname: Linux-4.1.6-hardened-x86_64-Intel-R-_Xeon-R-_CPU_E5540_@_2.53GHz-with-gentoo-2.2 KiB Mem: 1020568 total, 787348 free KiB Swap: 262140 total, 262140 free Timestamp of repository gentoo: Wed, 16 Sep 2015 00:45:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p39::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.4.1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.5::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 apache automount bash-completion berkdb bzip2 cli cracklib crypt cxx dbus dri gdbm gif hal hardened iconv ipv6 jpeg justify ldap mmx mmxext modules ncurses nls nptl openmp pam pax_kernel pcre pie png postgres python readline seccomp session sqlite3 sse sse2 ssl ssp svg syslog tcpd tiff unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
ebuild N ] virtual/mysql-5.6-r2 USE="-embedded -minimal -static -static-libs" [blocks B ] <virtual/mysql-5.6-r4 ("<virtual/mysql-5.6-r4" is blocking dev-db/mariadb-galera-10.0.21) This is why.. you are mixing incompatible stable virtual with unstable mariadb-galera
Thanks for your time. That fixes it