1 |
robbat2 10/10/06 00:13:11 |
2 |
|
3 |
Modified: db.eclass mysql.eclass |
4 |
Log: |
5 |
Update mysql.eclass from mysql overlays. |
6 |
|
7 |
Revision Changes Path |
8 |
1.40 eclass/db.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.40&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.40&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?r1=1.39&r2=1.40 |
13 |
|
14 |
Index: db.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v |
17 |
retrieving revision 1.39 |
18 |
retrieving revision 1.40 |
19 |
diff -p -w -b -B -u -u -r1.39 -r1.40 |
20 |
--- db.eclass 11 May 2010 08:19:44 -0000 1.39 |
21 |
+++ db.eclass 6 Oct 2010 00:13:11 -0000 1.40 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2004 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.39 2010/05/11 08:19:44 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.40 2010/10/06 00:13:11 robbat2 Exp $ |
27 |
# This is a common location for functions used in the sys-libs/db ebuilds |
28 |
# |
29 |
# Bugs: pauldv@g.o |
30 |
@@ -151,11 +151,15 @@ db_src_test() { |
31 |
if useq tcl; then |
32 |
einfo "Running sys-libs/db testsuite" |
33 |
ewarn "This can take 6+ hours on modern machines" |
34 |
- # Fix stuff that fails with relative paths |
35 |
+ # Fix stuff that fails with relative paths, and upstream moving files |
36 |
+ # around... |
37 |
local test_parallel='' |
38 |
for t in \ |
39 |
"${S}"/test/parallel.tcl \ |
40 |
- "${S}"/../test/parallel.tcl ; do |
41 |
+ "${S}"/../test/parallel.tcl \ |
42 |
+ "${S}"/test/tcl/parallel.tcl \ |
43 |
+ "${S}"/../test/tcl/parallel.tcl \ |
44 |
+ ; do |
45 |
[[ -f "${t}" ]] && test_parallel="${t}" && break |
46 |
done |
47 |
|
48 |
@@ -164,7 +168,13 @@ db_src_test() { |
49 |
-e '/regsub .src_root ./s,(regsub),#\1,g' \ |
50 |
"${test_parallel}" |
51 |
cd "${S}" |
52 |
- echo 'source ../test/test.tcl' > testrunner.tcl |
53 |
+ for t in \ |
54 |
+ ../test/test.tcl \ |
55 |
+ ../test/tcl/test.tcl \ |
56 |
+ ; do |
57 |
+ [[ -f "${t}" ]] && testbase="${t}" && break |
58 |
+ done |
59 |
+ echo "source ${t}" > testrunner.tcl |
60 |
testJobs=`echo "${MAKEOPTS}" | \ |
61 |
sed -e "s/.*-j\([0-9]\+\).*/\1/"` |
62 |
if [[ ${testJobs} =~ [[:digit:]]+ ]]; then |
63 |
|
64 |
|
65 |
|
66 |
1.152 eclass/mysql.eclass |
67 |
|
68 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?rev=1.152&view=markup |
69 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?rev=1.152&content-type=text/plain |
70 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/mysql.eclass?r1=1.151&r2=1.152 |
71 |
|
72 |
Index: mysql.eclass |
73 |
=================================================================== |
74 |
RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v |
75 |
retrieving revision 1.151 |
76 |
retrieving revision 1.152 |
77 |
diff -p -w -b -B -u -u -r1.151 -r1.152 |
78 |
--- mysql.eclass 6 Sep 2010 08:02:08 -0000 1.151 |
79 |
+++ mysql.eclass 6 Oct 2010 00:13:11 -0000 1.152 |
80 |
@@ -1,6 +1,6 @@ |
81 |
# Copyright 1999-2009 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.151 2010/09/06 08:02:08 robbat2 Exp $ |
84 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.152 2010/10/06 00:13:11 robbat2 Exp $ |
85 |
|
86 |
# @ECLASS: mysql.eclass |
87 |
# @MAINTAINER: |
88 |
@@ -166,9 +166,12 @@ if [ -z "${SERVER_URI}" ]; then |
89 |
MARIA_FULL_PV="$(replace_version_separator 3 '-' ${PV})" |
90 |
MARIA_FULL_P="${PN}-${MARIA_FULL_PV}" |
91 |
SERVER_URI=" |
92 |
+ http://ftp.osuosl.org/pub/mariadb/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz |
93 |
http://ftp.rediris.es/mirror/MariaDB/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz |
94 |
http://maria.llarian.net/download/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz |
95 |
http://launchpad.net/maria/${MYSQL_PV_MAJOR}/ongoing/+download/${MARIA_FULL_P}.tar.gz |
96 |
+ http://mirrors.fe.up.pt/pub/${PN}/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz |
97 |
+ http://ftp-stud.hs-esslingen.de/pub/Mirrors/${PN}/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz |
98 |
" |
99 |
# The community and cluster builds are on the mirrors |
100 |
elif [[ "${MYSQL_COMMUNITY_FEATURES}" == "1" || ${PN} == "mysql-cluster" ]] ; then |
101 |
@@ -653,7 +656,15 @@ configure_51() { |
102 |
if [[ "${PN}" == "mariadb" ]] ; then |
103 |
# In MariaDB, InnoDB is packaged in the xtradb directory, so it's not |
104 |
# caught above. |
105 |
- plugins_sta="${plugins_sta} maria innobase" |
106 |
+ plugins_sta="${plugins_sta} maria" |
107 |
+ |
108 |
+ [ -e "${S}"/storage/innobase ] || [ -e "${S}"/storage/xtradb ] || |
109 |
+ die "The ${P} package doesn't provide innobase nor xtradb" |
110 |
+ |
111 |
+ for i in innobase xtradb ; do |
112 |
+ [ -e "${S}"/storage/${i} ] && plugins_sta="${plugins_sta} ${i}" |
113 |
+ done |
114 |
+ |
115 |
myconf="${myconf} $(use_with libevent)" |
116 |
# This is not optional, without it several upstream testcases fail. |
117 |
# Also strongly recommended by upstream. |
118 |
@@ -1059,20 +1070,19 @@ mysql_src_install() { |
119 |
fi |
120 |
|
121 |
# Configuration stuff |
122 |
- if mysql_version_is_at_least "5.1" ; then |
123 |
- mysql_mycnf_version="5.1" |
124 |
- elif mysql_version_is_at_least "4.1" ; then |
125 |
- mysql_mycnf_version="4.1" |
126 |
- else |
127 |
- mysql_mycnf_version="4.0" |
128 |
- fi |
129 |
- einfo "Building default my.cnf" |
130 |
+ case ${MYSQL_PV_MAJOR} in |
131 |
+ 3*|4.0) mysql_mycnf_version="4.0" ;; |
132 |
+ 4.[1-9]|5.0) mysql_mycnf_version="4.1" ;; |
133 |
+ 5.[1-9]|6*|7*) mysql_mycnf_version="5.1" ;; |
134 |
+ esac |
135 |
+ einfo "Building default my.cnf (${mysql_mycnf_version})" |
136 |
insinto "${MY_SYSCONFDIR}" |
137 |
doins scripts/mysqlaccess.conf |
138 |
+ mycnf_src="my.cnf-${mysql_mycnf_version}" |
139 |
sed -e "s!@DATADIR@!${MY_DATADIR}!g" \ |
140 |
- "${FILESDIR}/my.cnf-${mysql_mycnf_version}" \ |
141 |
+ "${FILESDIR}/${mycnf_src}" \ |
142 |
> "${TMPDIR}/my.cnf.ok" |
143 |
- if mysql_version_is_at_least "4.1" && use latin1 ; then |
144 |
+ if use latin1 ; then |
145 |
sed -i \ |
146 |
-e "/character-set/s|utf8|latin1|g" \ |
147 |
"${TMPDIR}/my.cnf.ok" |