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

Diff of /eclass/mysql.eclass

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

Revision 1.114 Revision 1.117
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/Attic/mysql.eclass,v 1.114 2009/07/06 19:06:03 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.117 2009/11/19 18:22:44 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>
65# AND in the re-merged mysql-5.0.82 and newer 65# AND in the re-merged mysql-5.0.82 and newer
66if [ "${PN}" == "mysql-community" ]; then 66if [ "${PN}" == "mysql-community" ]; then
67 MYSQL_COMMUNITY_FEATURES=1 67 MYSQL_COMMUNITY_FEATURES=1
68elif [ "${PV#5.0}" != "${PV}" ] && mysql_version_is_at_least "5.0.82"; then 68elif [ "${PV#5.0}" != "${PV}" ] && mysql_version_is_at_least "5.0.82"; then
69 MYSQL_COMMUNITY_FEATURES=1 69 MYSQL_COMMUNITY_FEATURES=1
70elif [ "${PV#5.1}" != "${PV}" ] && mysql_version_is_at_least "5.1.28"; then
71 MYSQL_COMMUNITY_FEATURES=1
70else 72else
71 MYSQL_COMMUNITY_FEATURES=0 73 MYSQL_COMMUNITY_FEATURES=0
72fi 74fi
73 75
74# Be warned, *DEPEND are version-dependant 76# Be warned, *DEPEND are version-dependant
508 mysql_init_vars 510 mysql_init_vars
509 511
510 unpack ${A} 512 unpack ${A}
511 # Grab the patches 513 # Grab the patches
512 [[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR}/mysql-extras" git_src_unpack 514 [[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR}/mysql-extras" git_src_unpack
513 515
514 mv -f "${WORKDIR}/${MY_SOURCEDIR}" "${S}" 516 mv -f "${WORKDIR}/${MY_SOURCEDIR}" "${S}"
515 517
516 # Be backwards compatible for now 518 # Be backwards compatible for now
517 if [[ $EAPI != 2 ]]; then 519 if [[ $EAPI != 2 ]]; then
518 mysql_src_prepare 520 mysql_src_prepare
623 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing" 625 CXXFLAGS="${CXXFLAGS} -fno-exceptions -fno-strict-aliasing"
624 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti" 626 CXXFLAGS="${CXXFLAGS} -felide-constructors -fno-rtti"
625 mysql_version_is_at_least "5.0" \ 627 mysql_version_is_at_least "5.0" \
626 && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates" 628 && CXXFLAGS="${CXXFLAGS} -fno-implicit-templates"
627 export CXXFLAGS 629 export CXXFLAGS
630
631 # bug #283926, with GCC4.4, this is required to get correct behavior.
632 append-flags -fno-strict-aliasing
628 633
629 econf \ 634 econf \
630 --libexecdir="/usr/sbin" \ 635 --libexecdir="/usr/sbin" \
631 --sysconfdir="${MY_SYSCONFDIR}" \ 636 --sysconfdir="${MY_SYSCONFDIR}" \
632 --localstatedir="${MY_LOCALSTATEDIR}" \ 637 --localstatedir="${MY_LOCALSTATEDIR}" \
846 if [[ -d "${MY_DATADIR_s}" ]]; then 851 if [[ -d "${MY_DATADIR_s}" ]]; then
847 ewarn "Attempting to use ${MY_DATADIR_s}" 852 ewarn "Attempting to use ${MY_DATADIR_s}"
848 else 853 else
849 eerror "New MY_DATADIR (${MY_DATADIR_s}) does not exist" 854 eerror "New MY_DATADIR (${MY_DATADIR_s}) does not exist"
850 die "Configuration Failed! Please reinstall ${CATEGORY}/${PN}" 855 die "Configuration Failed! Please reinstall ${CATEGORY}/${PN}"
851 fi 856 fi
852 fi 857 fi
853 fi 858 fi
854 859
855 local pwd1="a" 860 local pwd1="a"
856 local pwd2="b" 861 local pwd2="b"

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.117

  ViewVC Help
Powered by ViewVC 1.1.20