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

Diff of /eclass/mysql-autotools.eclass

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

Revision 1.14 Revision 1.17
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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-autotools.eclass,v 1.14 2013/01/28 02:13:05 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.17 2013/03/16 19:20:34 robbat2 Exp $
4 4
5# @ECLASS: mysql-autotools.eclass 5# @ECLASS: mysql-autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# MySQL Team <mysql-bugs@gentoo.org> 7# MySQL Team <mysql-bugs@gentoo.org>
8# Robin H. Johnson <robbat2@gentoo.org> 8# Robin H. Johnson <robbat2@gentoo.org>
287 use ${i} \ 287 use ${i} \
288 && plugins_dyn="${plugins_dyn} ${i}" \ 288 && plugins_dyn="${plugins_dyn} ${i}" \
289 || plugins_dis="${plugins_dis} ${i}" 289 || plugins_dis="${plugins_dis} ${i}"
290 done 290 done
291 fi 291 fi
292
293 #Authentication plugins
294 if mysql_version_is_at_least "5.2.11" ; then
295 for i in pam ; do
296 use ${i} \
297 && plugins_dyn="${plugins_dyn} auth_${i}" \
298 || plugins_dis="${plugins_dis} auth_${i}"
299 done
300 fi
292 fi 301 fi
293 302
294 if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]]; then 303 if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]]; then
295 use pbxt \ 304 use pbxt \
296 && plugins_sta="${plugins_sta} pbxt" \ 305 && plugins_sta="${plugins_sta} pbxt" \
445 454
446# @FUNCTION: mysql-autotools_src_configure 455# @FUNCTION: mysql-autotools_src_configure
447# @DESCRIPTION: 456# @DESCRIPTION:
448# Configure mysql to build the code for Gentoo respecting the use flags. 457# Configure mysql to build the code for Gentoo respecting the use flags.
449mysql-autotools_src_configure() { 458mysql-autotools_src_configure() {
459 # bug 401733
460 export QA_CONFIGURE_OPTIONS=".*"
450 461
451 # Make sure the vars are correctly initialized 462 # Make sure the vars are correctly initialized
452 mysql_init_vars 463 mysql_init_vars
453 464
454 # $myconf is modified by the configure_* functions 465 # $myconf is modified by the configure_* functions
463 474
464 # Bug #114895, bug #110149 475 # Bug #114895, bug #110149
465 filter-flags "-O" "-O[01]" 476 filter-flags "-O" "-O[01]"
466 477
467 # glib-2.3.2_pre fix, bug #16496 478 # glib-2.3.2_pre fix, bug #16496
468 append-flags "-DHAVE_ERRNO_AS_DEFINE=1" 479 append-cppflags "-DHAVE_ERRNO_AS_DEFINE=1"
469 480
470 # As discovered by bug #246652, doing a double-level of SSP causes NDB to 481 # As discovered by bug #246652, doing a double-level of SSP causes NDB to
471 # fail badly during cluster startup. 482 # fail badly during cluster startup.
472 if [[ $(gcc-major-version) -lt 4 ]]; then 483 if [[ $(gcc-major-version) -lt 4 ]]; then
473 filter-flags "-fstack-protector-all" 484 filter-flags "-fstack-protector-all"
646 done 657 done
647 658
648 fi 659 fi
649 660
650 mysql_lib_symlinks "${ED}" 661 mysql_lib_symlinks "${ED}"
662
663 #Remove mytop if perl is not selected
664 [[ "${PN}" == "mariadb" ]] && ! use perl \
665 && mysql_version_is_at_least "5.3" \
666 && rm -f "${ED}/usr/bin/mytop"
667
668 #Bug 455462 remove unnecessary libtool files
669 prune_libtool_files --modules
651} 670}

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

  ViewVC Help
Powered by ViewVC 1.1.20