summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-02-18 10:04:32 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-02-18 10:04:32 +0000
commit4c4f8dfc4ebb41255c707e121aa34bea8dda296d (patch)
tree315131ac1bf9b87535c0c9c3d7860534725ef8c2 /sys-devel/gcc-sparc64
parentVersion bumped. (Manifest recommit) (diff)
downloadgentoo-2-4c4f8dfc4ebb41255c707e121aa34bea8dda296d.tar.gz
gentoo-2-4c4f8dfc4ebb41255c707e121aa34bea8dda296d.tar.bz2
gentoo-2-4c4f8dfc4ebb41255c707e121aa34bea8dda296d.zip
New gcc-3.3.3 release (on 20040214) and also includes a 20040217 branch update to match the system compiler.
Diffstat (limited to 'sys-devel/gcc-sparc64')
-rw-r--r--sys-devel/gcc-sparc64/ChangeLog11
-rw-r--r--sys-devel/gcc-sparc64/Manifest5
-rw-r--r--sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.32
-rw-r--r--sys-devel/gcc-sparc64/files/gcc-3.3.3-gentoo-branding.patch18
-rw-r--r--sys-devel/gcc-sparc64/gcc-sparc64-3.3.3.ebuild125
5 files changed, 158 insertions, 3 deletions
diff --git a/sys-devel/gcc-sparc64/ChangeLog b/sys-devel/gcc-sparc64/ChangeLog
index c38f6b998149..87da06b86668 100644
--- a/sys-devel/gcc-sparc64/ChangeLog
+++ b/sys-devel/gcc-sparc64/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-devel/gcc-sparc64
-# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.3 2004/01/07 20:49:49 weeve Exp $
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.4 2004/02/18 10:03:54 kumba Exp $
+
+*gcc-sparc64-3.3.3 (18 Feb 2004)
+
+ 18 Feb 2004; Joshua Kinard <kumba@gentoo.org> gcc-sparc64-3.3.3.ebuild,
+ files/gcc-3.3.3-gentoo-branding.patch:
+ New gcc-3.3.3 release (on 20040214) and also includes a 20040217 branch update
+ to match the system compiler.
07 Jan 2004; Jason Wever <weeve@gentoo.org> gcc-sparc64-3.2.3.ebuild,
gcc-sparc64-3.3.1.ebuild, gcc-sparc64-3.3.2.ebuild:
diff --git a/sys-devel/gcc-sparc64/Manifest b/sys-devel/gcc-sparc64/Manifest
index 8e4f777ba933..9a021588cb89 100644
--- a/sys-devel/gcc-sparc64/Manifest
+++ b/sys-devel/gcc-sparc64/Manifest
@@ -1,11 +1,14 @@
-MD5 6ded3e0efb178e19714d69d93d308256 ChangeLog 945
+MD5 d4cc26b76e9e7a17e1278854e4b70d66 ChangeLog 1208
MD5 b75dc4a6466bb93c08c111138a439a2e gcc-sparc64-3.2.3.ebuild 2843
MD5 892444f8db69abe01eaba1c074dc45b3 gcc-sparc64-3.3.1.ebuild 2844
MD5 59974b54f57c0177c152905f091260f3 gcc-sparc64-3.3.2.ebuild 2844
MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
+MD5 acad0848eb86633f5fa9bf24881ad9c8 gcc-sparc64-3.3.3.ebuild 3047
MD5 098c115531e90608348818f9bdb3faac files/digest-gcc-sparc64-3.2.3 64
MD5 12e3974934d4a83bf4540c3e0592b226 files/digest-gcc-sparc64-3.3.1 64
MD5 006481ae255582fae4fa22107dfb359e files/digest-gcc-sparc64-3.3.2 64
MD5 99db7c1a41babe024f0c6859c30a87ee files/gcc-3.2.3-gentoo-branding.patch 2058
MD5 d3e53318166d71a05d2b51bd44502270 files/gcc-3.3.1-gentoo-branding.patch 874
MD5 d9ae122db2768f8e504dfef256d4991f files/gcc-3.3.2-gentoo-branding.patch 874
+MD5 cd87c02e4896f47bf6029eef0dc29468 files/gcc-3.3.3-gentoo-branding.patch 874
+MD5 6c081be1d52e43fcf80a52040e7c3312 files/digest-gcc-sparc64-3.3.3 151
diff --git a/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.3 b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.3
new file mode 100644
index 000000000000..026725d71282
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.3
@@ -0,0 +1,2 @@
+MD5 3c6cfd9fcd180481063b4058cf6faff2 gcc-3.3.3.tar.bz2 23279245
+MD5 c6f0f4baae3ef904ba8886d7ef99938d gcc-3.3.3-branch-update-20040217.patch.bz2 150987
diff --git a/sys-devel/gcc-sparc64/files/gcc-3.3.3-gentoo-branding.patch b/sys-devel/gcc-sparc64/files/gcc-3.3.3-gentoo-branding.patch
new file mode 100644
index 000000000000..fc25bf5e8c37
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/gcc-3.3.3-gentoo-branding.patch
@@ -0,0 +1,18 @@
+diff -Naurp gcc-3.3.orig/gcc/version.c gcc-3.3/gcc/version.c
+--- gcc-3.3.orig/gcc/version.c 2003-05-13 17:26:03.000000000 -0400
++++ gcc-3.3/gcc/version.c 2003-05-16 14:35:08.000000000 -0400
+@@ -6,7 +6,7 @@
+ please modify this string to indicate that, e.g. by putting your
+ organization's name in parentheses at the end of the string. */
+
+-const char version_string[] = "3.3.3";
++const char version_string[] = "3.3.3 @GENTOO@";
+
+ /* This is the location of the online document giving instructions for
+ reporting bugs. If you distribute a modified version of GCC,
+@@ -15,4 +15,4 @@ const char version_string[] = "3.3";
+ forward us bugs reported to you, if you determine that they are
+ not bugs in your modifications.) */
+
+-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
++const char bug_report_url[] = "<URL:http://bugs.gentoo.org/>";
diff --git a/sys-devel/gcc-sparc64/gcc-sparc64-3.3.3.ebuild b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.3.ebuild
new file mode 100644
index 000000000000..426ad63c53d9
--- /dev/null
+++ b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.3.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/gcc-sparc64-3.3.3.ebuild,v 1.1 2004/02/18 10:03:54 kumba Exp $
+
+
+# Variables
+inherit eutils
+MYARCH="$(echo ${PN} | cut -d- -f2)"
+TMP_P="${P/-${MYARCH}/}"
+TMP_PN="${PN/-${MYARCH}/}"
+I="/usr"
+S="${WORKDIR}/${P}"
+BRANCH_UPDATE="20040217"
+
+DESCRIPTION="Sparc64 Kernel Compiler (Experimental)"
+HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${TMP_P}/${TMP_P}.tar.bz2
+ mirror://gentoo/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch.bz2"
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+
+KEYWORDS="~sparc"
+
+DEPEND="virtual/glibc
+ >=sys-devel/binutils-2.14.90.0.7
+ >=sys-devel/gcc-config-1.3.1
+ !sys-devel/egcs64-sparc"
+
+RDEPEND="virtual/glibc
+ >=sys-devel/gcc-config-1.3.1
+ >=sys-libs/zlib-1.1.4
+ >=sys-apps/texinfo-4.2-r4
+ !build? ( >=sys-libs/ncurses-5.2-r2 )"
+
+
+
+version_patch() {
+ [ ! -f "$1" ] && return 1
+ [ -z "$2" ] && return 1
+
+ sed -e "s:@GENTOO@:$2:g" ${1} > ${T}/${1##*/}
+ epatch ${T}/${1##*/}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${WORKDIR}
+ ln -s ${TMP_P} ${P}
+ cd ${S}
+
+ # Patch in Branch update
+ epatch ${WORKDIR}/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch
+
+ # Make gcc's version info specific to Gentoo
+ if [ -z "${PP_VER}" ]; then
+ version_patch ${FILESDIR}/${TMP_P}-gentoo-branding.patch \
+ "${BRANCH_UPDATE} (Gentoo Linux ${PVR})" || die "Failed Branding"
+ fi
+}
+
+src_compile() {
+ cd ${WORKDIR}
+ ln -s ${TMP_P} ${P}
+
+ append-flags "-Dinhibit_libc"
+
+ # Build in a separate build tree
+ mkdir -p ${WORKDIR}/build
+ cd ${WORKDIR}/build
+
+ einfo "Configuring GCC..."
+ if [ "`uname -m | grep 64`" ]; then
+ myconf="${myconf} --host=${MYARCH/64/}-unknown-linux-gnu"
+ fi
+
+ addwrite "/dev/zero"
+ ${S}/configure --prefix=${I} \
+ --disable-shared \
+ --disable-multilib \
+ --target=${MYARCH}-unknown-linux-gnu \
+ --enable-languages=c \
+ --enable-threads=single \
+ ${myconf} || die
+
+ einfo "Building GCC..."
+ S="${WORKDIR}/build" \
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ # Do allow symlinks in ${I}/lib/gcc-lib/${CHOST}/${PV}/include as
+ # this can break the build.
+ for x in cd ${WORKDIR}/build/gcc/include/*
+ do
+ if [ -L ${x} ]
+ then
+ rm -f ${x}
+ fi
+ done
+
+ einfo "Installing GCC..."
+ # Do the 'make install' from the build directory
+ cd ${WORKDIR}/build
+ S="${WORKDIR}/build" \
+ make prefix=${D}${I} \
+ FAKE_ROOT="${D}" \
+ install || die
+
+ cd ${D}${I}/bin
+ ln -s ${MYARCH}-unknown-linux-gnu-gcc gcc64
+ ln -s ${MYARCH}-unknown-linux-gnu-gcc ${MYARCH}-linux-gcc
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "To facilitate an easier kernel build, you may wish to add the following line to your profile:"
+ einfo ""
+ einfo "alias ${MYARCH}make=\"make ARCH=${MYARCH} CROSS_COMPILE=${MYARCH}-unknown-linux-gnu-\""
+ einfo ""
+ einfo "Then to compile a kernel, simply goto the kernel source directory, and issue:"
+ einfo "${MYARCH}make <target>"
+ einfo "Where <target> is one of the usual kernel targets"
+ einfo ""
+ sleep 10
+}