summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2006-01-24 20:21:37 +0000
committerFrancesco Riosa <vivo@gentoo.org>2006-01-24 20:21:37 +0000
commitf979532d17ccd21a555b0ee4df83e8f20e0a14b5 (patch)
tree65bbdc2bf7032ad5204b0695abac2819da54d71d /eclass
parentAdded modular X dependencies and closing bug #119958. (diff)
downloadhistorical-f979532d17ccd21a555b0ee4df83e8f20e0a14b5.tar.gz
historical-f979532d17ccd21a555b0ee4df83e8f20e0a14b5.tar.bz2
historical-f979532d17ccd21a555b0ee4df83e8f20e0a14b5.zip
missed $ and wrong assumption made mysql_lib_symlinks fail
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql_fx.eclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/mysql_fx.eclass b/eclass/mysql_fx.eclass
index 17456cb5e893..e69cd7db0a34 100644
--- a/eclass/mysql_fx.eclass
+++ b/eclass/mysql_fx.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.4 2006/01/24 19:14:00 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.5 2006/01/24 20:21:37 vivo Exp $
# Author: Francesco Riosa <vivo at gentoo.org>
# Maintainer: Francesco Riosa <vivo at gentoo.org>
@@ -133,8 +133,7 @@ mysql_make_file_list() {
mysql_choose_better_version() {
local items= better="" i
- items=${1}-[[:digit:]][[:digit:]][[:digit:]]
- [[ "${items}" == "${1}-[[:digit:]][[:digit:]][[:digit:]]" ]] && items=""
+ items="$( ls ${1}-[[:digit:]][[:digit:]][[:digit:]] )"
for i in ${items} ; do
if [[ "${i}" > "${better}" ]] ; then
better="${i}"
@@ -151,9 +150,9 @@ mysql_choose_better_version() {
# 2005-12-30 <vivo at gentoo.org>
mysql_lib_symlinks() {
local d dirlist maxdots soname sonameln other better
- pushd "${ROOT}/usr/$(get_libdir)/"
+ pushd "${ROOT}/usr/$(get_libdir)/" &> /dev/null
# dirlist must contain the less significative directory left
- dirlist="mysql (mysql_make_file_list mysql)"
+ dirlist="mysql $( mysql_make_file_list mysql )"
# waste some time in removing and recreating symlinks
for d in $dirlist ; do
@@ -174,7 +173,7 @@ mysql_lib_symlinks() {
ln -s "${soname}" "${sonameln}"
done
done
- popd
+ popd &> /dev/null
# "include"s and "mysql_config", needed to compile other sw
for other in "/usr/include/mysql" "/usr/bin/mysql_config" ; do