From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ry3Mn-000744-U5 for garchives@archives.gentoo.org; Thu, 16 Feb 2012 15:35:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34716E04C8; Thu, 16 Feb 2012 15:35:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EBA29E04C8 for ; Thu, 16 Feb 2012 15:35:20 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D9361B400F for ; Thu, 16 Feb 2012 15:35:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F1E8BE5400 for ; Thu, 16 Feb 2012 15:35:18 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1329406509.7e31f732746b80a8bc6e4ef0591edc5c63a38b1b.blueness@gentoo> Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: sys-devel/gcc/ X-VCS-Repository: proj/hardened-dev X-VCS-Files: sys-devel/gcc/gcc-4.6.2-r99.ebuild sys-devel/gcc/metadata.xml X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 7e31f732746b80a8bc6e4ef0591edc5c63a38b1b X-VCS-Branch: uclibc Date: Thu, 16 Feb 2012 15:35:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1010eef1-8f2a-43e1-a821-dc255c83b9c2 X-Archives-Hash: 14d16e9b9894fce74f9f230d9f56a845 commit: 7e31f732746b80a8bc6e4ef0591edc5c63a38b1b Author: Anthony G. Basile gentoo org> AuthorDate: Thu Feb 16 15:35:09 2012 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu Feb 16 15:35:09 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-dev.= git;a=3Dcommit;h=3D7e31f732 sys-devel/gcc: added gcc 4.6.2 with mips support for piepatch --- sys-devel/gcc/gcc-4.6.2-r99.ebuild | 63 ++++++++++++++++++++++++++++++= ++++++ sys-devel/gcc/metadata.xml | 19 ++++++++-- 2 files changed, 78 insertions(+), 4 deletions(-) diff --git a/sys-devel/gcc/gcc-4.6.2-r99.ebuild b/sys-devel/gcc/gcc-4.6.2= -r99.ebuild new file mode 100644 index 0000000..d2bf01b --- /dev/null +++ b/sys-devel/gcc/gcc-4.6.2-r99.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.6.2.ebuild,v 1.7 = 2011/12/08 18:14:25 vapier Exp $ + +PATCH_VER=3D"1.3" +UCLIBC_VER=3D"1.0" + +# Hardened gcc 4 stuff +PIE_VER=3D"0.5.1" +SPECS_VER=3D"0.2.0" +SPECS_GCC_VER=3D"4.4.3" +# arch/libc configurations known to be stable with {PIE,SSP}-by-default +PIE_GLIBC_STABLE=3D"x86 amd64 mips" +PIE_UCLIBC_STABLE=3D"x86 amd64 mips" +SSP_STABLE=3D"amd64 x86 mips" +SSP_UCLIBC_STABLE=3D"amd64 x86 mips" +#end Hardened stuff + +inherit toolchain + +DESCRIPTION=3D"The GNU Compiler Collection" + +LICENSE=3D"GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-= exception-3.1 ) FDL-1.2" +KEYWORDS=3D"amd64 mips x86" + +RDEPEND=3D"" +DEPEND=3D"${RDEPEND} + elibc_glibc? ( >=3Dsys-libs/glibc-2.8 ) + amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) ) + >=3D${CATEGORY}/binutils-2.18" +PDEPEND=3D"go? ( >=3Dsys-devel/gcc-config-1.5 )" + +if [[ ${CATEGORY} !=3D cross-* ]] ; then + PDEPEND=3D"${PDEPEND} elibc_glibc? ( >=3Dsys-libs/glibc-2.8 )" +fi + +src_unpack() { + if has_version '=3Dglibc-2.12 #362315" + EPATCH_EXCLUDE+=3D" 10_all_default-fortify-source.patch" + fi + + # drop the x32 stuff once 4.7 goes stable + case ${CHOST} in + x86_64*) has x32 $(get_all_abis) || EPATCH_EXCLUDE+=3D" 80_all_gcc-4.6-= x32.patch" ;; + esac + + toolchain_src_unpack + + use vanilla && return 0 + + [[ ${CHOST} =3D=3D ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.p= atch +} + +pkg_setup() { + toolchain_pkg_setup + + ewarn + ewarn "LTO support is still experimental and unstable." + ewarn "Any bugs resulting from the use of LTO will not be fixed." + ewarn +} diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml index 179eb6a..4980ae5 100644 --- a/sys-devel/gcc/metadata.xml +++ b/sys-devel/gcc/metadata.xml @@ -3,22 +3,33 @@ toolchain + Enable support for the D programming language Enable fixed-point arithmetic support for= MIPS targets=20 - in gcc (Warning: significantly increases compile time!) + in gcc (Warning: significantly increases compile time!) + Build the GCC Go language frontend. Add support for the framework for loop optimizations based on a polyhedral intermediate representation + Useful only when building GCJ, this enables Abstr= act Window Toolkit + (AWT) peer support on top of GTK+ + Enable building a compiler capable of building a= kernel + for SGI Indigo2 Impact R10000 (IP28) + Enable building a compiler capable of buildi= ng an + experimental kernel for SGI O2 w/ R1x000 CPUs (IP32) Build the portable foreign function interface = library + Build SSP support into a dedicated library rat= her than use the + code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT I= T DOES) Add support for link-time optimizations (unsuppor= ted, use - at your own risk). + at your own risk). Add support for mudflap, a pointer use checki= ng library Allow for SLOTs to include minor version (3= .3.4 instead of just 3.3) + Enable n32 ABI support on mips + Enable n64 ABI support on mips Disable PIE support (NOT FOR GENERAL USE) Disable SSP support (NOT FOR GENERAL USE) Build support for the Objective C code language<= /flag> Build support for the Objective C++ language Build support for the Objective C code langua= ge Garbage - Collector - Build support for libssp + Collector