/[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.16 Revision 1.17
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.16 2007/01/03 15:27:13 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.17 2007/01/04 20:38:16 vivo Exp $
4# kate: encoding utf-8; eol unix; 4# kate: encoding utf-8; eol unix;
5# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off; 5# kate: indent-width 4; mixedindent off; remove-trailing-space on; space-indent off;
6# kate: word-wrap-column 80; word-wrap off; 6# kate: word-wrap-column 80; word-wrap off;
7 7
8# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 8# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
173# To be called on the live filesystem, reassign symlinks to each mysql 173# To be called on the live filesystem, reassign symlinks to each mysql
174# library to the best version available 174# library to the best version available
175# 2005-12-30 <vivo at gentoo.org> 175# 2005-12-30 <vivo at gentoo.org>
176# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced 176# THERE IS A COPY OF THIS ONE IN ESELECT-MYSQL, keep the two synced
177mysql_lib_symlinks() { 177mysql_lib_symlinks() {
178 local d dirlist maxdots soname sonameln other better 178 local d dirlist maxdots soname sonameln reldir
179 reldir=${1}
179 pushd "${ROOT}/usr/$(get_libdir)" &> /dev/null 180 pushd "${ROOT}${reldir}/usr/$(get_libdir)" &> /dev/null
180 # dirlist must contain the less significative directory left 181 # dirlist must contain the less significative directory left
181 dirlist="mysql $( mysql_make_file_list mysql )" 182 dirlist="mysql $( mysql_make_file_list mysql )"
182 183
183 # waste some time in removing and recreating symlinks 184 # waste some time in removing and recreating symlinks
184 for d in $dirlist ; do 185 for d in $dirlist ; do
199 rm -f "${sonameln}" 200 rm -f "${sonameln}"
200 ln -s "${soname}" "${sonameln}" 201 ln -s "${soname}" "${sonameln}"
201 done 202 done
202 done 203 done
203 popd &> /dev/null 204 popd &> /dev/null
205}
204 206
207mysql_clients_link_to_best_version() {
208 local other better
205 # "include"s and "mysql_config", needed to compile other sw 209 # "include"s and "mysql_config", needed to compile other sw
206 for other in "/usr/$(get_libdir)/mysql" "/usr/include/mysql" "/usr/bin/mysql_config" ; do 210 for other in "/usr/$(get_libdir)/mysql" "/usr/include/mysql" "/usr/bin/mysql_config" ; do
207 pushd "${ROOT}${other%/*}" &> /dev/null 211 pushd "${ROOT}${other%/*}" &> /dev/null
208 better=$( mysql_choose_better_version "${other##*/}" ) 212 better=$( mysql_choose_better_version "${other##*/}" )
209 if ! [[ -d "${other##*/}" ]] ; then 213 if ! [[ -d "${other##*/}" ]] ; then

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20