| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2008 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/sys-libs/glibc/Attic/glibc-2.7.ebuild,v 1.9 2007/11/18 03:49:31 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/Attic/glibc-2.7.ebuild,v 1.10 2008/03/10 15:22:13 vapier Exp $ |
| 4 | |
4 | |
| 5 | inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib |
5 | inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib |
| 6 | |
6 | |
| 7 | DESCRIPTION="GNU libc6 (also called glibc2) C library" |
7 | DESCRIPTION="GNU libc6 (also called glibc2) C library" |
| 8 | HOMEPAGE="http://www.gnu.org/software/libc/libc.html" |
8 | HOMEPAGE="http://www.gnu.org/software/libc/libc.html" |
| … | |
… | |
| 188 | } |
188 | } |
| 189 | |
189 | |
| 190 | pkg_setup() { |
190 | pkg_setup() { |
| 191 | # prevent native builds from downgrading ... maybe update to allow people |
191 | # prevent native builds from downgrading ... maybe update to allow people |
| 192 | # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) |
192 | # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) |
| 193 | if [[ ${ROOT} != "/" ]] && ! tc-is-cross-compiler ; then |
193 | if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then |
| 194 | if has_version '>'${CATEGORY}/${PF} ; then |
194 | if has_version '>'${CATEGORY}/${PF} ; then |
| 195 | eerror "Sanity check to keep you from breaking your system:" |
195 | eerror "Sanity check to keep you from breaking your system:" |
| 196 | eerror " Downgrading glibc is not supported and a sure way to destruction" |
196 | eerror " Downgrading glibc is not supported and a sure way to destruction" |
| 197 | die "aborting to save your system" |
197 | die "aborting to save your system" |
| 198 | fi |
198 | fi |