diff options
author | 2011-11-12 20:46:39 +0000 | |
---|---|---|
committer | 2011-11-12 20:46:39 +0000 | |
commit | ac696654b46524ea53a3cddcfd8205f3eb5fc0e5 (patch) | |
tree | f0ec31e8d8e5fbc2ce282e0005d2482b80acd8b6 /eclass/qt4-r2.eclass | |
parent | Bump - fix for bug involving early file replacement. (diff) | |
download | gentoo-2-ac696654b46524ea53a3cddcfd8205f3eb5fc0e5.tar.gz gentoo-2-ac696654b46524ea53a3cddcfd8205f3eb5fc0e5.tar.bz2 gentoo-2-ac696654b46524ea53a3cddcfd8205f3eb5fc0e5.zip |
Restore ${S} fallback, but with a deprecation notice saying that it will be removed in 30 days.
Diffstat (limited to 'eclass/qt4-r2.eclass')
-rw-r--r-- | eclass/qt4-r2.eclass | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/eclass/qt4-r2.eclass b/eclass/qt4-r2.eclass index d2c9251b48a8..651e321445f6 100644 --- a/eclass/qt4-r2.eclass +++ b/eclass/qt4-r2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.13 2011/11/12 18:26:59 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.14 2011/11/12 20:46:39 pesa Exp $ # @ECLASS: qt4-r2.eclass # @MAINTAINER: @@ -47,6 +47,19 @@ qt4-r2_src_unpack() { debug-print-function $FUNCNAME "$@" base_src_unpack "$@" + + # Fallback to ${WORKDIR}/${MY_P} when ${WORKDIR}/${P} doesn't exist. + # This is a hack that was never meant to be used by ebuilds in tree. + if [[ ${S} == "${WORKDIR}/${P}" && ! -d ${S} && -d ${WORKDIR}/${MY_P} ]]; then + echo + eqawarn "*** DEPRECATION NOTICE ***" + eqawarn + eqawarn "\${S} fallback is deprecated and will be removed on 12/12/2011." + eqawarn "Please set the correct value for \${S} variable inside the ebuild." + echo + einfo "Falling back to '${WORKDIR}/${MY_P}'" + S="${WORKDIR}/${MY_P}" + fi } # @ECLASS-VARIABLE: PATCHES |