/[gentoo-x86]/eclass/mysql_fx.eclass
Gentoo

Diff of /eclass/mysql_fx.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.22
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.21 2008/03/09 21:07:55 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.22 2009/02/12 05:05:14 robbat2 Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: Luca Longinotti <chtekk@gentoo.org> 6# Maintainer: Luca Longinotti <chtekk@gentoo.org>
7 7
8inherit multilib 8inherit multilib
104 fi 104 fi
105 done 105 done
106 [[ -d "${filesdir}" ]] || die "No patches directory found!" 106 [[ -d "${filesdir}" ]] || die "No patches directory found!"
107 fi 107 fi
108 108
109 local index_file="${1:-"${filesdir}/000_index.txt"}" 109 for i in "$1" "${filesdir}/0000_index.txt" "${filesdir}/000_index.txt" ; do
110 if [ -n "$i" -a -f "$i" ]; then
111 local index_file="$i"
112 break
113 fi
114 done
115
110 local my_ver="${2:-"${MYSQL_VERSION_ID}"}" 116 local my_ver="${2:-"${MYSQL_VERSION_ID}"}"
111 local my_test_fx=${3:-"_mysql_test_patch_ver_pn"} 117 local my_test_fx=${3:-"_mysql_test_patch_ver_pn"}
112 _mysql_mv_patches "${index_file}" "${my_ver}" "${my_test_fx}" 118 _mysql_mv_patches "${index_file}" "${my_ver}" "${my_test_fx}"
113} 119}
114 120
174# 180#
175# To be called on the live filesystem, reassigning symlinks of each MySQL 181# To be called on the live filesystem, reassigning symlinks of each MySQL
176# library to the best version available. 182# library to the best version available.
177# 183#
178mysql_lib_symlinks() { 184mysql_lib_symlinks() {
185 einfo "Updating MySQL .so symlinks"
179 local d dirlist maxdots soname sonameln reldir 186 local d dirlist maxdots soname sonameln reldir
180 reldir="${1}" 187 reldir="${1}"
181 pushd "${reldir}/usr/$(get_libdir)" &> /dev/null 188 pushd "${reldir}/usr/$(get_libdir)" &> /dev/null
182 # dirlist must contain the less significative directory left 189 # dirlist must contain the less significative directory left
183 dirlist="mysql" 190 dirlist="mysql"

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20