summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-11-27 01:26:36 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-11-27 01:26:36 +0000
commitb35cab916939ab8c78e0136a298e3f5e723049e0 (patch)
tree96c00a0fa09f0cc2283d63676ac45bfaa0a4567d /sys-devel
parentmark stable on x86 (Manifest recommit) (diff)
downloadgentoo-2-b35cab916939ab8c78e0136a298e3f5e723049e0.tar.gz
gentoo-2-b35cab916939ab8c78e0136a298e3f5e723049e0.tar.bz2
gentoo-2-b35cab916939ab8c78e0136a298e3f5e723049e0.zip
New rev of gcc-sparc64 the sparc64 kernel compiler.
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-sparc64/ChangeLog8
-rw-r--r--sys-devel/gcc-sparc64/Manifest9
-rw-r--r--sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.51
-rw-r--r--sys-devel/gcc-sparc64/files/gcc-3.3.5-gentoo-branding.patch18
-rw-r--r--sys-devel/gcc-sparc64/gcc-sparc64-3.3.5.ebuild124
5 files changed, 156 insertions, 4 deletions
diff --git a/sys-devel/gcc-sparc64/ChangeLog b/sys-devel/gcc-sparc64/ChangeLog
index 11f8de4554d5..ccfde4492908 100644
--- a/sys-devel/gcc-sparc64/ChangeLog
+++ b/sys-devel/gcc-sparc64/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/gcc-sparc64
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.16 2004/11/11 09:19:04 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.17 2004/11/27 01:26:36 kumba Exp $
+
+*gcc-sparc64-3.3.5 (26 Nov 2004)
+
+ 26 Nov 2004; Joshua Kinard <kumba@gentoo.org>
+ +files/gcc-3.3.5-gentoo-branding.patch, +gcc-sparc64-3.3.5.ebuild:
+ New rev of gcc-sparc64 the sparc64 kernel compile.
*gcc-sparc64-3.4.3 (11 Nov 2004)
diff --git a/sys-devel/gcc-sparc64/Manifest b/sys-devel/gcc-sparc64/Manifest
index c034caba9785..96ef20eeae85 100644
--- a/sys-devel/gcc-sparc64/Manifest
+++ b/sys-devel/gcc-sparc64/Manifest
@@ -1,19 +1,22 @@
-MD5 43d467f469a5c900908b5aff4ce98e1d ChangeLog 2984
+MD5 1c6a3ccbb5809db705baaa141fda9368 ChangeLog 3189
MD5 3a6b81a4ef301bd06b8b166474ba1cb2 gcc-sparc64-3.2.3.ebuild 2854
MD5 22dcdb0f5c2e2cf24c2337db48ee8c29 gcc-sparc64-3.3.1.ebuild 2855
MD5 a72d13fe09f14711678ea2457dc74ce3 gcc-sparc64-3.3.2.ebuild 2855
MD5 56ec319c41416c7d7f9621b222002850 gcc-sparc64-3.3.3.ebuild 3040
MD5 2c25aa917b2a178db94ac8c37e6d8c62 gcc-sparc64-3.3.4.ebuild 3048
-MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
MD5 8fea89551a3b4e1496dc63252d9c2e86 gcc-sparc64-3.4.3.ebuild 3250
+MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
+MD5 1cf08c5e11912725546f0be9a92d6470 gcc-sparc64-3.3.5.ebuild 3045
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 6c081be1d52e43fcf80a52040e7c3312 files/digest-gcc-sparc64-3.3.3 151
MD5 af241dd07c46bc5b0c2d54eac803f1f3 files/digest-gcc-sparc64-3.3.4 151
+MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-sparc64-3.4.3 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 e411938ca2908079a2359fed5cb3b442 files/gcc-3.3.4-gentoo-branding.patch 874
-MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-sparc64-3.4.3 64
+MD5 595fc5d3e417d76d1f7e7f0a8439535a files/digest-gcc-sparc64-3.3.5 64
+MD5 5f8835c8de8d96466954796d2512a29b files/gcc-3.3.5-gentoo-branding.patch 874
diff --git a/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.5 b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.5
new file mode 100644
index 000000000000..9678fe79d93d
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.5
@@ -0,0 +1 @@
+MD5 70ee088b498741bb08c779f9617df3a5 gcc-3.3.5.tar.bz2 23833856
diff --git a/sys-devel/gcc-sparc64/files/gcc-3.3.5-gentoo-branding.patch b/sys-devel/gcc-sparc64/files/gcc-3.3.5-gentoo-branding.patch
new file mode 100644
index 000000000000..509927a937bf
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/gcc-3.3.5-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.5";
++const char version_string[] = "3.3.5 @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.5.ebuild b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.5.ebuild
new file mode 100644
index 000000000000..21fc54d93d97
--- /dev/null
+++ b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.5.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/gcc-sparc64-3.3.5.ebuild,v 1.1 2004/11/27 01:26:36 kumba Exp $
+
+# Variables
+inherit eutils flag-o-matic
+MYARCH="$(echo ${PN} | cut -d- -f2)"
+TMP_P="${P/-${MYARCH}/}"
+TMP_PN="${PN/-${MYARCH}/}"
+I="/usr"
+S="${WORKDIR}/${P}"
+BRANCH_UPDATE=""
+
+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/libc
+ >=sys-devel/binutils-2.14.90.0.7
+ >=sys-devel/gcc-config-1.3.1
+ !sys-devel/egcs64-sparc"
+
+RDEPEND="virtual/libc
+ >=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 ""
+ epause 10
+}