diff options
author | Dror Levin <spatz@gentoo.org> | 2010-05-25 13:39:46 +0000 |
---|---|---|
committer | Dror Levin <spatz@gentoo.org> | 2010-05-25 13:39:46 +0000 |
commit | 972ca727bff2835aa22b36ec7f8dc06d5719d689 (patch) | |
tree | 5cb3b59a94120cc9b6a74a3037e7a55793c55453 /eclass | |
parent | Stable on amd64 wrt bug #305963 (diff) | |
download | historical-972ca727bff2835aa22b36ec7f8dc06d5719d689.tar.gz historical-972ca727bff2835aa22b36ec7f8dc06d5719d689.tar.bz2 historical-972ca727bff2835aa22b36ec7f8dc06d5719d689.zip |
Improve -g{,gdb} check for qt-webkit to include test for -g{,gdb}[0-9].
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt4-build.eclass | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass index 09ec0229cf18..fd098fa963b0 100644 --- a/eclass/qt4-build.eclass +++ b/eclass/qt4-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.70 2010/05/24 22:03:30 spatz Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.71 2010/05/25 13:39:46 spatz Exp $ # @ECLASS: qt4-build.eclass # @MAINTAINER: @@ -67,18 +67,6 @@ S=${WORKDIR}/${MY_P} # @DESCRIPTION: # Sets up S, MY_P, PATH, and LD_LIBRARY_PATH qt4-build_pkg_setup() { - if [[ "${PN}" == "qt-webkit" ]]; then - if [[ "${CFLAGS}" =~ "-ggdb" ]] || [[ "${CXXFLAGS}" =~ "-ggdb" ]]; then - echo - ewarn "Your \$C{,XX}FLAGS contain -ggdb. You may experience really" - ewarn "long compilation times and/or increased memory usage." - ewarn "If compilation fails, please try removing -ggdb before" - ewarn "reporting a bug." - ewarn "For more info check out bug #307861" - echo - fi - fi - [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX= # Protect users by not allowing downgrades between releases @@ -93,6 +81,19 @@ qt4-build_pkg_setup() { fi fi + if [[ "${PN}" == "qt-webkit" ]]; then + eshopts_push -s extglob + if is-flagq '-g?(gdb)?([0-9])'; then + echo + ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)." + ewarn "You may experience really long compilation times and/or increased memory usage." + ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug." + ewarn "For more info check out bug #307861" + echo + fi + eshopts_pop + fi + PATH="${S}/bin${PATH:+:}${PATH}" if [[ ${CHOST} != *-darwin* ]]; then LD_LIBRARY_PATH="${S}/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" |