| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/eutils.eclass,v 1.182 2005/06/11 00:02:26 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.189 2005/07/06 20:45:12 agriffis Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
| 8 | # have to implement themselves. |
8 | # have to implement themselves. |
| 9 | # |
9 | # |
| 10 | # NB: If you add anything, please comment it! |
10 | # NB: If you add anything, please comment it! |
| 11 | |
11 | |
| 12 | inherit multilib |
12 | inherit multilib |
| 13 | ECLASS=eutils |
|
|
| 14 | INHERITED="$INHERITED $ECLASS" |
|
|
| 15 | |
13 | |
| 16 | DEPEND="!bootstrap? ( sys-devel/patch userland_GNU? ( sys-apps/shadow ) )" |
14 | DEPEND="!bootstrap? ( sys-devel/patch )" |
| 17 | # sys-apps/shadow is needed for useradd, etc, bug #94745. |
15 | # sys-apps/shadow is needed for useradd, etc, bug #94745. |
| 18 | |
16 | |
| 19 | DESCRIPTION="Based on the ${ECLASS} eclass" |
17 | DESCRIPTION="Based on the ${ECLASS} eclass" |
| 20 | |
18 | |
| 21 | # Wait for the supplied number of seconds. If no argument is supplied, defaults |
19 | # Wait for the supplied number of seconds. If no argument is supplied, defaults |
| … | |
… | |
| 1361 | fi |
1359 | fi |
| 1362 | showedmsg=1 |
1360 | showedmsg=1 |
| 1363 | fi |
1361 | fi |
| 1364 | einfo "Press return to scan for the cd again" |
1362 | einfo "Press return to scan for the cd again" |
| 1365 | einfo "or hit CTRL+C to abort the emerge." |
1363 | einfo "or hit CTRL+C to abort the emerge." |
|
|
1364 | echo |
|
|
1365 | einfo "If you are having trouble with the detection" |
|
|
1366 | einfo "of your CD, it is possible that you do not have" |
|
|
1367 | einfo "Joliet support enabled in your kernel. Please" |
|
|
1368 | einfo "check that CONFIG_JOLIET is enabled in your kernel." |
| 1366 | read |
1369 | read |
| 1367 | fi |
1370 | fi |
| 1368 | done |
1371 | done |
| 1369 | } |
1372 | } |
| 1370 | |
1373 | |
| … | |
… | |
| 1494 | |
1497 | |
| 1495 | if [ -n "${LIB}" -a -f "${ROOT}${LIB}" ]; then |
1498 | if [ -n "${LIB}" -a -f "${ROOT}${LIB}" ]; then |
| 1496 | SONAME=`basename ${LIB}` |
1499 | SONAME=`basename ${LIB}` |
| 1497 | |
1500 | |
| 1498 | einfo "An old version of an installed library was detected on your system." |
1501 | einfo "An old version of an installed library was detected on your system." |
| 1499 | einfo "In order to avoid breaking packages that link against is, this older version" |
1502 | einfo "In order to avoid breaking packages that link against it, this older version" |
| 1500 | einfo "is not being removed. In order to make full use of this newer version," |
1503 | einfo "is not being removed. In order to make full use of this newer version," |
| 1501 | einfo "you will need to execute the following command:" |
1504 | einfo "you will need to execute the following command:" |
| 1502 | einfo " revdep-rebuild --soname ${SONAME}" |
1505 | einfo " revdep-rebuild --soname ${SONAME}" |
| 1503 | einfo |
1506 | einfo |
| 1504 | einfo "After doing that, you can safely remove ${LIB}" |
1507 | einfo "After doing that, you can safely remove ${LIB}" |