Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-db/maatkit/
Date: Tue, 11 Dec 2018 13:39:45
Message-Id: 1544535425.62d9bf7dce05a7c94093e0c8bbc0dff2444dbae3.mgorny@gentoo
1 commit: 62d9bf7dce05a7c94093e0c8bbc0dff2444dbae3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 13:37:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 13:37:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d9bf7d
7
8 dev-db/maatkit: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/645984
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-db/maatkit/Manifest | 1 -
14 dev-db/maatkit/maatkit-7540-r1.ebuild | 110 ----------------------------------
15 dev-db/maatkit/metadata.xml | 14 -----
16 profiles/package.mask | 5 --
17 4 files changed, 130 deletions(-)
18
19 diff --git a/dev-db/maatkit/Manifest b/dev-db/maatkit/Manifest
20 deleted file mode 100644
21 index 515684ed991..00000000000
22 --- a/dev-db/maatkit/Manifest
23 +++ /dev/null
24 @@ -1 +0,0 @@
25 -DIST maatkit-7540.tar.gz 1312812 BLAKE2B fae133ac0fc95b6c824eccdd156941d6cc6693dda21756752b5f9244d4053b0d13d1464ab4dbb09b95da5385638f72f2e0c91c3ac64eeece0ad387324d8d01a9 SHA512 98cb44a5ebce09322b4d9a8cfa9e14e2ccb54ef9e0e8a95ee92b0fee5277f06157415152566497893488967735049d95c6efadc0d57c8a70060c7bc714afef9a
26
27 diff --git a/dev-db/maatkit/maatkit-7540-r1.ebuild b/dev-db/maatkit/maatkit-7540-r1.ebuild
28 deleted file mode 100644
29 index 9cefb50cea6..00000000000
30 --- a/dev-db/maatkit/maatkit-7540-r1.ebuild
31 +++ /dev/null
32 @@ -1,110 +0,0 @@
33 -# Copyright 1999-2014 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=5
37 -
38 -inherit perl-app perl-module toolchain-funcs
39 -
40 -DESCRIPTION="essential command-line utilities for MySQL"
41 -HOMEPAGE="http://www.maatkit.org/"
42 -SRC_URI="https://maatkit.googlecode.com/files/${P}.tar.gz"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
47 -IUSE="udf"
48 -
49 -COMMON_DEPEND="dev-perl/DBI
50 - dev-perl/DBD-mysql
51 - virtual/perl-Time-HiRes"
52 -RDEPEND="${COMMON_DEPEND}
53 - virtual/perl-Getopt-Long
54 - virtual/perl-Time-Local
55 - virtual/perl-Digest-MD5
56 - virtual/perl-IO-Compress
57 - virtual/perl-File-Temp
58 - virtual/perl-File-Spec
59 - virtual/perl-Time-HiRes
60 - virtual/perl-Scalar-List-Utils
61 - dev-perl/TermReadKey"
62 -DEPEND="${COMMON_DEPEND}
63 - udf? ( dev-db/mysql )
64 - virtual/perl-ExtUtils-MakeMaker"
65 -
66 -mysql-udf_src_compile() {
67 - local udfdir="${T}/udf/"
68 - mkdir -p "${udfdir}"
69 -
70 - local udfname udffile udfext udfoutpath
71 - udfname="${1}"
72 - udfext=".so"
73 - udffile="${udfname}${udfext}"
74 - udfoutpath="${udfdir}/${udffile}"
75 - shift
76 - CXX="$(tc-getCXX)"
77 - local src="$@"
78 - if [ -z "$@" ]; then
79 - src="${udfname}.cc"
80 - fi
81 - for f in ${src} ; do
82 - [ -f "${f}" ] || \
83 - die "UDF ${udfname}: Cannot find source file ${f} to compile"
84 - done
85 - einfo "UDF ${udfname}: compiling from ${src}"
86 - ${CXX} \
87 - ${CXXFLAGS} -I/usr/include/mysql \
88 - ${LDFLAGS} -fPIC -shared -o "${udfoutpath}" $src \
89 - || die "UDF ${udfname}: Failed to compile"
90 -}
91 -
92 -mysql-udf_src_install() {
93 - local udfdir="${T}/udf/"
94 - local udfname udfext udffile udfoutpath
95 - udfname="${1}"
96 - udfext=".so"
97 - udffile="${udfname}${udfext}"
98 - udfoutpath="${udfdir}/${udffile}"
99 - insinto /usr/$(get_libdir)/mysql/plugins
100 - doins "${udfoutpath}"
101 -}
102 -
103 -udf_done_intro=0
104 -mysql-udf_pkg_postinst() {
105 - local udfname udffile udfext udffunc udfreturn
106 - udfname="${1}"
107 - udfext=".so"
108 - udffile="${udfname}${udfext}"
109 - udffunc="${2}"
110 - udfreturn="${3}"
111 - if [ ${udf_done_intro} -eq 0 ]; then
112 - elog "To use the UDFs that were built:"
113 - elog "Update your configuration to include 'plugin_dir=/usr/$(get_libdir)/mysql/plugins'"
114 - elog "Issue the following commands as a user with FUNCTION privileges:"
115 - udf_done_intro=1
116 - fi
117 - elog "CREATE FUNCTION ${udffunc} RETURNS ${udfreturn} SONAME '${udffile}'"
118 -}
119 -
120 -src_compile() {
121 - perl-app_src_compile
122 - if use udf; then
123 - cd "${S}"/udf
124 - mysql-udf_src_compile murmur_udf
125 - mysql-udf_src_compile fnv_udf
126 - fi
127 -}
128 -
129 -src_install() {
130 - perl-module_src_install
131 - if use udf; then
132 - mysql-udf_src_install murmur_udf
133 - mysql-udf_src_install fnv_udf
134 - fi
135 -}
136 -
137 -pkg_postinst() {
138 - if use udf; then
139 - mysql-udf_pkg_postinst murmur_udf murmur_hash INTEGER
140 - mysql-udf_pkg_postinst fnv_udf fnv_64 INTEGER
141 - fi
142 -}
143
144 diff --git a/dev-db/maatkit/metadata.xml b/dev-db/maatkit/metadata.xml
145 deleted file mode 100644
146 index d3ab294dbcd..00000000000
147 --- a/dev-db/maatkit/metadata.xml
148 +++ /dev/null
149 @@ -1,14 +0,0 @@
150 -<?xml version="1.0" encoding="UTF-8"?>
151 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
152 -<pkgmetadata>
153 - <longdescription>maatkit, formerly MySQL Toolkit, is a collection of command-line utilities that
154 -provide missing functionality for MySQL. Some of the tools implement lacking
155 -server functionality, such as online consistency checks for master/slave
156 -replication; others are client-side utilities such as a query profiler.</longdescription>
157 - <use>
158 - <flag name="udf">Build the MySQL UDFs shipped with maatkit, requires non-minimal MySQL</flag>
159 - </use>
160 - <upstream>
161 - <remote-id type="google-code">maatkit</remote-id>
162 - </upstream>
163 -</pkgmetadata>
164
165 diff --git a/profiles/package.mask b/profiles/package.mask
166 index f828977aae1..ddcfad951ca 100644
167 --- a/profiles/package.mask
168 +++ b/profiles/package.mask
169 @@ -222,11 +222,6 @@ dev-libs/liblinebreak
170 # Fails at runtime (#645690). Removal in a month.
171 dev-lang/gnu-smalltalk
172
173 -# Pacho Ramos <pacho@g.o> (11 Nov 2018)
174 -# Replaced by dev-db/percona-toolkit, cannot be fetched (#645984). Removal
175 -# in a month.
176 -dev-db/maatkit
177 -
178 # Pacho Ramos <pacho@g.o> (11 Nov 2018)
179 # Fails to build (#662000), not compatible with kernel-4, use kernel driver rtsx_pci
180 # instead. Removal in a month.