summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-01-11 08:58:54 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-01-11 08:58:54 +0000
commit4f1997f445023067f7103d8dde8e9d17c341f647 (patch)
tree5396b0cc26c67a8170f744ba3769a6912ea5d363 /sys-devel/gcc/gcc-3.2.3-r4.ebuild
parentAddinf glibc emul to package.mask as we get it from sys-libs/glibc now (diff)
downloadgentoo-2-4f1997f445023067f7103d8dde8e9d17c341f647.tar.gz
gentoo-2-4f1997f445023067f7103d8dde8e9d17c341f647.tar.bz2
gentoo-2-4f1997f445023067f7103d8dde8e9d17c341f647.zip
Bump to a newer version of the 3.4 branch from upstream. This should resolve alot of SIMD issues people are hsving with -msse and others. Should resolve bug #57602, hopefully bug #75067, and all of its kin.
Diffstat (limited to 'sys-devel/gcc/gcc-3.2.3-r4.ebuild')
-rw-r--r--sys-devel/gcc/gcc-3.2.3-r4.ebuild58
1 files changed, 29 insertions, 29 deletions
diff --git a/sys-devel/gcc/gcc-3.2.3-r4.ebuild b/sys-devel/gcc/gcc-3.2.3-r4.ebuild
index ab2280790932..7fd2268e57c2 100644
--- a/sys-devel/gcc/gcc-3.2.3-r4.ebuild
+++ b/sys-devel/gcc/gcc-3.2.3-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.3-r4.ebuild,v 1.15 2005/01/07 01:47:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.3-r4.ebuild,v 1.16 2005/01/11 08:58:54 eradicator Exp $
inherit eutils flag-o-matic libtool versionator
@@ -36,17 +36,17 @@ do_filter_flags() {
[ ! -n "${CCHOST}" ] && export CCHOST="${CHOST}"
LOC="/usr"
-#MY_PV="`echo ${PV} | awk -F. '{ gsub(/_pre.*|_alpha.*/, ""); print $1 "." $2 }'`"
-#MY_PV_FULL="`echo ${PV} | awk '{ gsub(/_pre.*|_alpha.*/, ""); print $0 }'`"
-MY_PV="$(get_version_component_range 1-2)"
-MY_PV_FULL="$(get_version_component_range 1-3)"
-
-LIBPATH="${LOC}/lib/gcc-lib/${CCHOST}/${MY_PV_FULL}"
-BINPATH="${LOC}/${CCHOST}/gcc-bin/${MY_PV}"
-DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${MY_PV}"
+#GCC_BRANCH_VER="`echo ${PV} | awk -F. '{ gsub(/_pre.*|_alpha.*/, ""); print $1 "." $2 }'`"
+#GCC_RELEASE_VER="`echo ${PV} | awk '{ gsub(/_pre.*|_alpha.*/, ""); print $0 }'`"
+GCC_BRANCH_VER="$(get_version_component_range 1-2)"
+GCC_RELEASE_VER="$(get_version_component_range 1-3)"
+
+LIBPATH="${LOC}/lib/gcc-lib/${CCHOST}/${GCC_RELEASE_VER}"
+BINPATH="${LOC}/${CCHOST}/gcc-bin/${GCC_BRANCH_VER}"
+DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${GCC_BRANCH_VER}"
# Don't install in /usr/include/g++-v3/, but in gcc internal directory.
# We will handle /usr/include/g++-v3/ with gcc-config ...
-STDCXX_INCDIR="${LIBPATH}/include/g++-v${MY_PV/\.*/}"
+STDCXX_INCDIR="${LIBPATH}/include/g++-v${GCC_BRANCH_VER/\.*/}"
# ProPolice version
PP_VER1="3_2_2"
@@ -61,15 +61,15 @@ PATCH_VER=""
SNAPSHOT=""
# Branch update support ...
-MAIN_BRANCH="${PV}" # Tarball, etc used ...
+GCC_RELEASE_VER="${PV}" # Tarball, etc used ...
#BRANCH_UPDATE="20021208"
BRANCH_UPDATE=""
if [ -z "${SNAPSHOT}" ]
then
- S="${WORKDIR}/${PN}-${MAIN_BRANCH}"
- SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${PN}-${MAIN_BRANCH}.tar.bz2"
+ S="${WORKDIR}/${PN}-${GCC_RELEASE_VER}"
+ SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${PN}-${GCC_RELEASE_VER}.tar.bz2"
if [ -n "${PATCH_VER}" ]
then
@@ -80,7 +80,7 @@ then
if [ -n "${BRANCH_UPDATE}" ]
then
SRC_URI="${SRC_URI}
- mirror://gentoo/${PN}-${MAIN_BRANCH}-branch-update-${BRANCH_UPDATE}.patch.bz2"
+ mirror://gentoo/${PN}-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2"
fi
else
S="${WORKDIR}/gcc-${SNAPSHOT//-}"
@@ -106,7 +106,7 @@ IUSE="static nls bootstrap java build"
# are not cross compiling, than we want SLOT to only contain
# $PV, as people upgrading to new gcc layout will not have
# their old gcc unmerged ...
-SLOT="${MY_PV}"
+SLOT="${GCC_BRANCH_VER}"
DEPEND=">=sys-libs/glibc-2.3.2-r3
mips? ( >=sys-devel/binutils-2.13.90.0.16 )
@@ -135,7 +135,7 @@ chk_gcc_version() {
local OLD_GCC_CHOST="$(gcc -v 2>&1 | egrep '^Reading specs' |\
sed -e 's:^.*/gcc-lib/\([^/]*\)/[0-9]\+.*$:\1:')"
- if [ "${OLD_GCC_VERSION}" != "${MY_PV_FULL}" ]
+ if [ "${OLD_GCC_VERSION}" != "${GCC_RELEASE_VER}" ]
then
echo "${OLD_GCC_VERSION}" > "${WORKDIR}/.oldgccversion"
fi
@@ -162,7 +162,7 @@ version_patch() {
src_unpack() {
if [ -z "${SNAPSHOT}" ]
then
- unpack ${PN}-${MAIN_BRANCH}.tar.bz2
+ unpack ${PN}-${GCC_RELEASE_VER}.tar.bz2
if [ -n "${PATCH_VER}" ]
then
@@ -183,7 +183,7 @@ src_unpack() {
# Branch update ...
if [ -n "${BRANCH_UPDATE}" ]
then
- epatch ${DISTDIR}/${PN}-${MAIN_BRANCH}-branch-update-${BRANCH_UPDATE}.patch.bz2
+ epatch ${DISTDIR}/${PN}-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2
fi
# Do bulk patches included in ${P}-patches-${PATCH_VER}.tar.bz2
@@ -445,15 +445,15 @@ src_install() {
dodir /lib /usr/bin
dodir /etc/env.d/gcc
- echo "PATH=\"${BINPATH}\"" > ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "ROOTPATH=\"${BINPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "LDPATH=\"${LIBPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "MANPATH=\"${DATAPATH}/man\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "INFOPATH=\"${DATAPATH}/info\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "STDCXX_INCDIR=\"${STDCXX_INCDIR##*/}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
+ echo "PATH=\"${BINPATH}\"" > ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "ROOTPATH=\"${BINPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "LDPATH=\"${LIBPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "MANPATH=\"${DATAPATH}/man\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "INFOPATH=\"${DATAPATH}/info\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "STDCXX_INCDIR=\"${STDCXX_INCDIR##*/}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
# Also set CC and CXX
- echo "CC=\"gcc\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- echo "CXX=\"g++\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
+ echo "CC=\"gcc\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "CXX=\"g++\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
# Install wrappers
# Handled by gcc-config now ...
@@ -506,7 +506,7 @@ src_install() {
# Rename jar because it could clash with Kaffe's jar if this gcc is
# primary compiler (aka don't have the -<version> extension)
- cd ${D}${LOC}/${CCHOST}/gcc-bin/${MY_PV}
+ cd ${D}${LOC}/${CCHOST}/gcc-bin/${GCC_BRANCH_VER}
[ -f jar ] && mv -f jar gcj-jar
# Move <cxxabi.h> to compiler-specific directories
@@ -609,7 +609,7 @@ pkg_postinst() {
if [ "${ROOT}" = "/" -a "${CHOST}" = "${CCHOST}" ]
then
- gcc-config --use-portage-chost ${CCHOST}-${MY_PV_FULL}
+ gcc-config --use-portage-chost ${CCHOST}-${GCC_RELEASE_VER}
fi
# Update libtool linker scripts to reference new gcc version ...
@@ -624,7 +624,7 @@ pkg_postinst() {
then
OLD_GCC_VERSION="$(cat "${WORKDIR}/.oldgccversion")"
else
- OLD_GCC_VERSION="${MY_PV_FULL}"
+ OLD_GCC_VERSION="${GCC_RELEASE_VER}"
fi
if [ -f "${WORKDIR}/.oldgccchost" ] && \