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

Diff of /eclass/mysql.eclass

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

Revision 1.51 Revision 1.53
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.eclass,v 1.51 2006/12/29 20:34:02 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.53 2007/01/01 22:27:01 swegener Exp $
4 4
5# Author: Francesco Riosa <vivo@gentoo.org> 5# Author: Francesco Riosa <vivo@gentoo.org>
6# Maintainer: Luca Longinotti <chtekk@gentoo.org> 6# Maintainer: Luca Longinotti <chtekk@gentoo.org>
7 7
8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too 8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too
150 fi 150 fi
151 151
152 einfo " working copy: ${wc_path}" 152 einfo " working copy: ${wc_path}"
153 cd "${wc_path}" 153 cd "${wc_path}"
154 rsync -rlpgo --exclude="BK/" . "${S}" || die "BK: can't export to ${S}." 154 rsync -rlpgo --exclude="BK/" . "${S}" || die "BK: can't export to ${S}."
155 155
156 echo 156 echo
157 popd 157 popd
158 158
159} 159}
160 160
376 # 5.1 introduces a new way to manage storage engines (plugins) 376 # 5.1 introduces a new way to manage storage engines (plugins)
377 # like configuration=none 377 # like configuration=none
378 local plugins="csv,myisam,myisammrg,heap" 378 local plugins="csv,myisam,myisammrg,heap"
379 if useq "extraengine" ; then 379 if useq "extraengine" ; then
380 # like configuration=max-no-ndb, archive and example removed in 5.1.11 380 # like configuration=max-no-ndb, archive and example removed in 5.1.11
381 plugins="${plugins},archive,blackhole,example,federated,ftexample,partition" 381 plugins="${plugins},archive,blackhole,example,federated,partition"
382 382
383 elog "Before using the Federated storage engine, please be sure to read" 383 elog "Before using the Federated storage engine, please be sure to read"
384 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html" 384 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html"
385 fi 385 fi
386 386
430# 430#
431 431
432mysql_pkg_setup() { 432mysql_pkg_setup() {
433 enewgroup mysql 60 || die "problem adding 'mysql' group" 433 enewgroup mysql 60 || die "problem adding 'mysql' group"
434 enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" 434 enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
435 435
436 # Check for USE flag problems in pkg_setup 436 # Check for USE flag problems in pkg_setup
437 if useq "static" && useq "ssl" ; then 437 if useq "static" && useq "ssl" ; then
438 eerror "MySQL does not support being built statically with SSL support enabled!" 438 eerror "MySQL does not support being built statically with SSL support enabled!"
439 die "MySQL does not support being built statically with SSL support enabled!" 439 die "MySQL does not support being built statically with SSL support enabled!"
440 fi 440 fi
500 500
501 local rebuilddirlist d 501 local rebuilddirlist d
502 502
503 if mysql_version_is_at_least "5.1.12" ; then 503 if mysql_version_is_at_least "5.1.12" ; then
504 rebuilddirlist="." 504 rebuilddirlist="."
505 # TODO IMPO! Check this with a cmake expert 505 # TODO IMPO! Check this with a cmake expert
506 useq "innodb" \ 506 useq "innodb" \
507 && cmake \ 507 && cmake \
508 -DCMAKE_C_COMPILER=$(which $(tc-getCC)) \ 508 -DCMAKE_C_COMPILER=$(which $(tc-getCC)) \
509 -DCMAKE_CXX_COMPILER=$(which $(tc-getCC)) \ 509 -DCMAKE_CXX_COMPILER=$(which $(tc-getCC)) \
510 "storage/innobase" 510 "storage/innobase"

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20