summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2007-01-04 20:38:16 +0000
committerFrancesco Riosa <vivo@gentoo.org>2007-01-04 20:38:16 +0000
commita1243c8c1a7c078eb07ce050852a4873eb71e6cb (patch)
treed215af037a4660eb35a6f959ff05eb53fd09415e /eclass
parentStable on amd64 wrt bug #159980 (diff)
downloadhistorical-a1243c8c1a7c078eb07ce050852a4873eb71e6cb.tar.gz
historical-a1243c8c1a7c078eb07ce050852a4873eb71e6cb.tar.bz2
historical-a1243c8c1a7c078eb07ce050852a4873eb71e6cb.zip
MY_EXTRAS_VER in ebuilds, bug #159973, bug #160023
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql.eclass25
-rw-r--r--eclass/mysql_fx.eclass12
2 files changed, 26 insertions, 11 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index 1d5762d0b1b9..2849f5b6483a 100644
--- a/eclass/mysql.eclass
+++ b/eclass/mysql.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.57 2007/01/04 11:17:05 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.58 2007/01/04 20:38:16 vivo Exp $
# kate: encoding utf-8; eol unix;
# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off;
# kate: word-wrap-column 80; word-wrap off;
@@ -15,11 +15,11 @@ INHERITED="$INHERITED $ECLASS"
inherit eutils flag-o-matic gnuconfig autotools mysql_fx
# avoid running userspace code 8 times per ebuild :(
-if [[ "${_MYPVR}" != "${PVR}" ]] && [[ -z "${MYSQL_VERSION_ID}" ]]
+if [[ "${_MYPVR}" != "${PVR}" ]] && [[ -n "${PVR}" ]]
then
_MYPVR=${PVR}
- [[ -z ${MY_EXTRAS_VER} ]] && MY_EXTRAS_VER="20070103"
+ [[ "${MY_EXTRAS_VER}" == "latest" ]] && MY_EXTRAS_VER="20070104"
if [[ ${PR#r} -lt 60 ]] ; then
IS_BITKEEPER=0
@@ -50,7 +50,8 @@ then
>=sys-apps/sed-4
>=sys-apps/texinfo-4.7-r1
>=sys-libs/readline-4.1
- >=sys-libs/zlib-1.2.3"
+ >=sys-libs/zlib-1.2.3
+ "
# having different flavours at the same time is not a good idea
for i in "" "-community" "-slotted" ; do
@@ -127,7 +128,10 @@ then
mysql_version_is_at_least "5.1.12" \
&& IUSE="${IUSE} pbxt"
- RDEPEND="${DEPEND} selinux? ( sec-policy/selinux-mysql )"
+ RDEPEND="${DEPEND}
+ sys-apps/mysql
+ selinux? ( sec-policy/selinux-mysql )
+ "
fi # if [[ "${_MYPVR}" != "${PVR}" ]]
@@ -350,7 +354,7 @@ configure_40_41_50() {
mysql_version_is_at_least "5.0.4" || myconf="${myconf} --with-vio"
if mysql_version_is_at_least "5.0.6" ; then
# myconf="${myconf} --with-yassl"
- myconf="${myconf} --with-openssl"
+ myconf="${myconf} --with-ssl"
else
myconf="${myconf} --with-openssl"
fi
@@ -436,6 +440,10 @@ configure_51() {
myconf="${myconf} --with-ndb-binlog"
fi
+ if mysql_version_is_at_least "5.2" ; then
+ plugins="${plugins},falcon"
+ fi
+
myconf="${myconf} --with-plugins=${plugins}"
}
@@ -509,7 +517,7 @@ mysql_src_unpack() {
if [[ ${IS_BITKEEPER} -eq 90 ]] ; then
if mysql_check_version_range "5.1 to 5.1.99" ; then
bitkeeper_fetch "mysql-5.1-ndb"
- elif mysql_check_version_range "5.2 to 5.2.99" ; then
+ elif mysql_check_version_range "5.2.0 to 5.2.99" ; then
bitkeeper_fetch "mysql-5.2-falcon"
else
bitkeeper_fetch
@@ -760,6 +768,8 @@ mysql_src_install() {
echo "${MY_SHAREDSTATEDIR#"/"}" >> "${filelist}"
popd &>/dev/null
fi
+
+ mysql_lib_symlinks "${D}"
}
mysql_pkg_preinst() {
@@ -930,5 +940,6 @@ mysql_pkg_config() {
mysql_pkg_postrm() {
if [[ ${PN} == "mysql-slotted" ]] ; then
mysql_lib_symlinks
+ mysql_clients_link_to_best_version
fi
}
diff --git a/eclass/mysql_fx.eclass b/eclass/mysql_fx.eclass
index 50283f1f72e0..457fdd5d19e9 100644
--- a/eclass/mysql_fx.eclass
+++ b/eclass/mysql_fx.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.16 2007/01/03 15:27:13 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.17 2007/01/04 20:38:16 vivo Exp $
# kate: encoding utf-8; eol unix;
# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off;
# kate: word-wrap-column 80; word-wrap off;
@@ -175,8 +175,9 @@ mysql_choose_better_version() {
# 2005-12-30 <vivo at gentoo.org>
# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced
mysql_lib_symlinks() {
- local d dirlist maxdots soname sonameln other better
- pushd "${ROOT}/usr/$(get_libdir)" &> /dev/null
+ local d dirlist maxdots soname sonameln reldir
+ reldir=${1}
+ pushd "${ROOT}${reldir}/usr/$(get_libdir)" &> /dev/null
# dirlist must contain the less significative directory left
dirlist="mysql $( mysql_make_file_list mysql )"
@@ -201,7 +202,10 @@ mysql_lib_symlinks() {
done
done
popd &> /dev/null
+}
+mysql_clients_link_to_best_version() {
+ local other better
# "include"s and "mysql_config", needed to compile other sw
for other in "/usr/$(get_libdir)/mysql" "/usr/include/mysql" "/usr/bin/mysql_config" ; do
pushd "${ROOT}${other%/*}" &> /dev/null
@@ -215,4 +219,4 @@ mysql_lib_symlinks() {
fi
popd &> /dev/null
done
-}
+} \ No newline at end of file