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.4.1-r3.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.4.1-r3.ebuild')
-rw-r--r--sys-devel/gcc/gcc-3.4.1-r3.ebuild56
1 files changed, 28 insertions, 28 deletions
diff --git a/sys-devel/gcc/gcc-3.4.1-r3.ebuild b/sys-devel/gcc/gcc-3.4.1-r3.ebuild
index 5a584378893d..570b0f4f15f2 100644
--- a/sys-devel/gcc/gcc-3.4.1-r3.ebuild
+++ b/sys-devel/gcc/gcc-3.4.1-r3.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.4.1-r3.ebuild,v 1.12 2005/01/07 01:47:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.1-r3.ebuild,v 1.13 2005/01/11 08:58:54 eradicator Exp $
IUSE="static nls bootstrap build multilib gcj gtk fortran objc hardened uclibc n32 n64"
@@ -75,7 +75,7 @@ if [ ${PV} != ${PV/_pre/-} ] ; then
fi
# Branch update support ...
-MAIN_BRANCH="${PV}" # Tarball, etc used ...
+GCC_RELEASE_VER="${PV}" # Tarball, etc used ...
BRANCH_UPDATE=20040803
# PIE support
@@ -95,12 +95,12 @@ elif [ -n "${SNAPSHOT}" ] ; then
S="${WORKDIR}/gcc-${SNAPSHOT//-}"
SRC_URI="ftp://sources.redhat.com/pub/gcc/snapshots/${SNAPSHOT}/gcc-${SNAPSHOT//-}.tar.bz2"
else
- 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 "${BRANCH_UPDATE}" ]
then
SRC_URI="${SRC_URI}
- ${GENTOO_BASE_URI}/${PN}-${MAIN_BRANCH}-branch-update-${BRANCH_UPDATE}.patch.bz2"
+ ${GENTOO_BASE_URI}/${PN}-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2"
fi
fi
@@ -176,26 +176,26 @@ 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)"
+#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)"
# GCC 3.4 no longer uses gcc-lib. we'll rename this later for compatibility
# reasons, as a few things would break without gcc-lib.
-LIBPATH="${LOC}/lib/gcc/${CCHOST}/${MY_PV_FULL}"
-BINPATH="${LOC}/${CCHOST}/gcc-bin/${MY_PV}"
-DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${MY_PV}"
+LIBPATH="${LOC}/lib/gcc/${CCHOST}/${GCC_RELEASE_VER}"
+BINPATH="${LOC}/${CCHOST}/gcc-bin/${GCC_BRANCH_VER}"
+DATAPATH="${LOC}/share/gcc-data/${CCHOST}/${GCC_BRANCH_VER}"
# Dont 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/\.*/}"
# Ok, this is a hairy one again, but lets assume that we
# 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 ...
# GCC 3.4 introduces a new version of libstdc++
-SLOT="${MY_PV}"
+SLOT="${GCC_BRANCH_VER}"
has_lib64() {
use amd64 && return 0
@@ -209,7 +209,7 @@ chk_gcc_version() {
local OLD_GCC_CHOST="$(gcc -v 2>&1 | egrep '^Reading specs' |\
sed -e 's:^.*/gcc[^/]*/\([^/]*\)/[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
@@ -469,7 +469,7 @@ src_unpack() {
elif [ -n "${SNAPSHOT}" ] ; then
unpack gcc-${SNAPSHOT//-}.tar.bz2
else
- unpack ${PN}-${MAIN_BRANCH}.tar.bz2
+ unpack ${PN}-${GCC_RELEASE_VER}.tar.bz2
fi
if [ -n "${PATCH_VER}" ]
@@ -492,7 +492,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_patch_tarball
@@ -747,8 +747,8 @@ 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 "PATH=\"${BINPATH}\"" > ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
+ echo "ROOTPATH=\"${BINPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
# The LDPATH stuff is kinda iffy now that we need to provide compatibility
# with older versions of GCC for binary apps.
@@ -763,14 +763,14 @@ src_install() {
then
LDPATH="${LDPATH}:${LOC}/lib/gcc-lib/${CCHOST}/${BULIB}"
fi
- echo "LDPATH=\"${LDPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
+ echo "LDPATH=\"${LDPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${GCC_RELEASE_VER}
- 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 "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}
# Make sure we do not check glibc for SSP again, as we did already
if glibc_have_ssp || \
@@ -829,7 +829,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
@@ -971,7 +971,7 @@ pkg_postinst() {
fi
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 ...
@@ -986,7 +986,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" ] && \