dev-db/mariadb: Drop sst-xtrabackup from 10.3
authorBrian Evans <grknight@gentoo.org>
Wed, 13 Mar 2019 13:32:35 +0000 (09:32 -0400)
committerBrian Evans <grknight@gentoo.org>
Wed, 13 Mar 2019 13:32:35 +0000 (09:32 -0400)
Closes: https://bugs.gentoo.org/677674
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Brian Evans <grknight@gentoo.org>
dev-db/mariadb/mariadb-10.3.13.ebuild

index 809bf7c23eb8784fd0086de6a456690f1086c4a5..8d049d3508eef0745b5ad6d58ee2ce786d4e42ee 100644 (file)
@@ -31,7 +31,7 @@ SLOT="0/${SUBSLOT:-0}"
 IUSE="+backup bindist client-libs cracklib debug extraengine galera innodb-lz4
        innodb-lzo innodb-snappy jdbc jemalloc kerberos latin1 libressl mroonga
        numa odbc oqgraph pam +perl profiling rocksdb selinux +server sphinx
-       sst-rsync sst-mariabackup sst-xtrabackup static systemd systemtap tcmalloc
+       sst-rsync sst-mariabackup static systemd systemtap tcmalloc
        test tokudb xml yassl"
 
 # Tests always fail when libressl is enabled due to hard-coded ciphers in the tests
@@ -124,7 +124,6 @@ RDEPEND="selinux? ( sec-policy/selinux-mysql )
                =sys-cluster/galera-25*
                sst-rsync? ( sys-process/lsof )
                sst-mariabackup? ( net-misc/socat[ssl] )
-               sst-xtrabackup? ( net-misc/socat[ssl] )
        ) )
        perl? ( !dev-db/mytop
                virtual/perl-Getopt-Long
@@ -135,10 +134,8 @@ RDEPEND="selinux? ( sec-policy/selinux-mysql )
 "
 # For other stuff to bring us in
 # dev-perl/DBD-mysql is needed by some scripts installed by MySQL
-# percona-xtrabackup-bin causes a circular dependency if DBD-mysql is not already installed
 PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )
-        server? ( ~virtual/mysql-5.6[static=]
-                galera? ( sst-xtrabackup? ( || ( >=dev-db/percona-xtrabackup-bin-2.2.4 dev-db/percona-xtrabackup ) ) ) )"
+        server? ( ~virtual/mysql-5.6[static=] )"
 
 pkg_setup() {
        if [[ ${MERGE_TYPE} != binary ]] ; then
@@ -583,6 +580,14 @@ src_install() {
        if [[ -L "${ED}/usr/bin/wsrep_sst_rsync_wan" ]] && ! use galera ; then
                rm "${ED}/usr/bin/wsrep_sst_rsync_wan" || die
        fi
+
+       # Remove broken SST scripts that are incompatible
+       local scriptremove
+       for scriptremove in wsrep_sst_xtrabackup wsrep_sst_xtrabackup-v2 ; do
+               if [[ -e "${ED}/usr/bin/${scriptremove}" ]] ; then
+                       rm "${ED}/usr/bin/${scriptremove}" || die
+               fi
+       done
 }
 
 # Official test instructions: