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

Diff of /eclass/mysql.eclass

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

Revision 1.95 Revision 1.98
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.eclass,v 1.95 2008/05/29 05:38:48 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.98 2008/11/14 01:46:24 robbat2 Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: MySQL Team <mysql-bugs@gentoo.org> 6# Maintainer: MySQL Team <mysql-bugs@gentoo.org>
7# - Luca Longinotti <chtekk@gentoo.org> 7# - Luca Longinotti <chtekk@gentoo.org>
8# - Robin H. Johnson <robbat2@gentoo.org> 8# - Robin H. Johnson <robbat2@gentoo.org>
350 if mysql_version_is_at_least "5.1.11" ; then 350 if mysql_version_is_at_least "5.1.11" ; then
351 myconf="${myconf} $(use_with ssl)" 351 myconf="${myconf} $(use_with ssl)"
352 else 352 else
353 myconf="${myconf} $(use_with ssl openssl)" 353 myconf="${myconf} $(use_with ssl openssl)"
354 fi 354 fi
355 355
356 if mysql_version_is_at_least "5.0.60" ; then
356 if use berkdb ; then 357 if use berkdb ; then
358 elog "Berkeley DB support was disabled due to build failures"
359 elog "on multiple arches, go to a version earlier than 5.0.60"
360 elog "if you want it again. Gentoo bug #224067."
361 fi
362 myconf="${myconf} --without-berkeley-db"
363 elif use berkdb ; then
357 # The following fix is due to a bug with bdb on SPARC's. See: 364 # The following fix is due to a bug with bdb on SPARC's. See:
358 # http://www.geocrawler.com/mail/msg.php3?msg_id=4754814&list=8 365 # http://www.geocrawler.com/mail/msg.php3?msg_id=4754814&list=8
359 # It comes down to non-64-bit safety problems. 366 # It comes down to non-64-bit safety problems.
360 if use alpha || use amd64 || use hppa || use mips || use sparc ; then 367 if use alpha || use amd64 || use hppa || use mips || use sparc ; then
361 elog "Berkeley DB support was disabled due to compatibility issues on this arch" 368 elog "Berkeley DB support was disabled due to compatibility issues on this arch"
469# 476#
470mysql_pkg_setup() { 477mysql_pkg_setup() {
471 if hasq test ${FEATURES} ; then 478 if hasq test ${FEATURES} ; then
472 if ! use minimal ; then 479 if ! use minimal ; then
473 if [[ $UID -eq 0 ]]; then 480 if [[ $UID -eq 0 ]]; then
474 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." 481 eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
475 fi 482 fi
476 fi 483 fi
477 fi 484 fi
478 485
479 # Bug #213475 - MySQL _will_ object strenously if your machine is named 486 # Bug #213475 - MySQL _will_ object strenously if your machine is named
587 if mysql_check_version_range "4.1 to 5.0.99.99" \ 594 if mysql_check_version_range "4.1 to 5.0.99.99" \
588 && use berkdb ; then 595 && use berkdb ; then
589 [[ -w "bdb/dist/ltmain.sh" ]] && cp -f "ltmain.sh" "bdb/dist/ltmain.sh" 596 [[ -w "bdb/dist/ltmain.sh" ]] && cp -f "ltmain.sh" "bdb/dist/ltmain.sh"
590 cp -f "/usr/share/aclocal/libtool.m4" "bdb/dist/aclocal/libtool.ac" \ 597 cp -f "/usr/share/aclocal/libtool.m4" "bdb/dist/aclocal/libtool.ac" \
591 || die "Could not copy libtool.m4 to bdb/dist/" 598 || die "Could not copy libtool.m4 to bdb/dist/"
599 #These files exist only with libtool-2*, and need to be included.
600 if [ -f '/usr/share/aclocal/ltsugar.m4' ]; then
601 cat "/usr/share/aclocal/ltsugar.m4" >> "bdb/dist/aclocal/libtool.ac"
602 cat "/usr/share/aclocal/ltversion.m4" >> "bdb/dist/aclocal/libtool.ac"
603 cat "/usr/share/aclocal/lt~obsolete.m4" >> "bdb/dist/aclocal/libtool.ac"
604 cat "/usr/share/aclocal/ltoptions.m4" >> "bdb/dist/aclocal/libtool.ac"
605 fi
592 pushd "bdb/dist" &>/dev/null 606 pushd "bdb/dist" &>/dev/null
593 sh s_all \ 607 sh s_all \
594 || die "Failed bdb reconfigure" 608 || die "Failed bdb reconfigure"
595 popd &>/dev/null 609 popd &>/dev/null
596 fi 610 fi

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.20