diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-04-11 00:17:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-04-11 00:17:21 +0000 |
commit | e498e9444c4da9f5219837618b7794e45ccbbaf0 (patch) | |
tree | 0fabbb99a0f0c481f37077e9f37270cc6f710c30 /sys-devel/binutils-nios2 | |
parent | run mrproper before building version.h as mrproper will delete the header on us (diff) | |
download | historical-e498e9444c4da9f5219837618b7794e45ccbbaf0.tar.gz historical-e498e9444c4da9f5219837618b7794e45ccbbaf0.tar.bz2 historical-e498e9444c4da9f5219837618b7794e45ccbbaf0.zip |
Fix building with gcc-4.1 hosts.
Package-Manager: portage-2.1_pre7-r5
Diffstat (limited to 'sys-devel/binutils-nios2')
-rw-r--r-- | sys-devel/binutils-nios2/ChangeLog | 8 | ||||
-rw-r--r-- | sys-devel/binutils-nios2/Manifest | 21 | ||||
-rw-r--r-- | sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild | 9 | ||||
-rw-r--r-- | sys-devel/binutils-nios2/files/binutils-nios2-5.1-gcc4.patch | 20 |
4 files changed, 46 insertions, 12 deletions
diff --git a/sys-devel/binutils-nios2/ChangeLog b/sys-devel/binutils-nios2/ChangeLog index 53941ff9486b..a8e1e7c53bbe 100644 --- a/sys-devel/binutils-nios2/ChangeLog +++ b/sys-devel/binutils-nios2/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/binutils-nios2 -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-nios2/ChangeLog,v 1.1 2005/12/31 12:55:20 vapier Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-nios2/ChangeLog,v 1.2 2006/04/11 00:17:19 vapier Exp $ + + 11 Apr 2006; Mike Frysinger <vapier@gentoo.org> + +files/binutils-nios2-5.1-gcc4.patch, binutils-nios2-5.1.ebuild: + Fix building with gcc-4.1 hosts. *binutils-nios2-5.1 (31 Dec 2005) diff --git a/sys-devel/binutils-nios2/Manifest b/sys-devel/binutils-nios2/Manifest index 0de9f6189c8e..b51ad7e02a21 100644 --- a/sys-devel/binutils-nios2/Manifest +++ b/sys-devel/binutils-nios2/Manifest @@ -1,12 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 8aa58738f2a485534a6ee251977c24c3 ChangeLog 351 -RMD160 a63432c0c4e8b8260d235f49238f3ea46c41cc16 ChangeLog 351 -SHA256 e9b9b435f08de485266a849f9baea15b4360bb063327204be7ab0b9e62a8813a ChangeLog 351 -MD5 d55aa0e2dd2a5398de12ce2cf490058d binutils-nios2-5.1.ebuild 578 -RMD160 58986079ef60243a9a18eec06459f2a377447a13 binutils-nios2-5.1.ebuild 578 -SHA256 ae2dcc8065671abc3a57c282b64f16a7bc47c136aa397f64c83151b6d5807c23 binutils-nios2-5.1.ebuild 578 +MD5 58df59310865ba778a9f22acc9dfa60f ChangeLog 504 +RMD160 401881342fcf0207df7a9ab4dcf1d38607b7245c ChangeLog 504 +SHA256 fc5c7f2ff3bbb3a44f61738e6e734f925354da3d7668556811954bfe6e212597 ChangeLog 504 +MD5 1df29fe49852efc9d2039bbc155ff6e1 binutils-nios2-5.1.ebuild 706 +RMD160 0ab768ccf191ddc20006d73065d9452e8bf82d1c binutils-nios2-5.1.ebuild 706 +SHA256 39d3fd5b7300c3645216a394f5cc8a8641944fb03ecc9c911ca83a3aa072dcd4 binutils-nios2-5.1.ebuild 706 +MD5 8333d702f5d354425f1d02e92b2316d4 files/binutils-nios2-5.1-gcc4.patch 644 +RMD160 39be4d94c58679ee5b46221d33e0a5edaa50af58 files/binutils-nios2-5.1-gcc4.patch 644 +SHA256 8da84a4c953d353028f54e4d6fe6efbbac0e733bee255a4df8fab42d5f48f864 files/binutils-nios2-5.1-gcc4.patch 644 MD5 ed47fd0f9c30cce962253d287689be92 files/digest-binutils-nios2-5.1 74 RMD160 0b48ac30485d6872183fbc267a322a55f86bc00c files/digest-binutils-nios2-5.1 74 SHA256 15741170639a278c5d933fc08fb81d163a7a1b72dcdc4e2d1de13a630b2424ba files/digest-binutils-nios2-5.1 74 @@ -16,7 +19,7 @@ SHA256 dc790a4305ce116175492077c64be59b729fac9595769c4ea09ddaa1eb8c9ee6 metadata -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEKh3i2+ySkm8kpY0RAlGvAKCliLkl16UVXLSIb6fYT4YYjuXLTACfZQ96 -zXkwBfvLRZUqszs8s/5k6sc= -=6/CE +iD8DBQFEOvWh2+ySkm8kpY0RAjvUAKCgiadeo5MBl7xc9LWlyrD2EnuX9gCfdxnH +diWhxdOFgT556pQE+2gy4Vo= +=6LDx -----END PGP SIGNATURE----- diff --git a/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild b/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild index 04c4ae192969..d9051a478cd3 100644 --- a/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild +++ b/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild,v 1.3 2006/03/29 05:39:12 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-nios2/binutils-nios2-5.1.ebuild,v 1.4 2006/04/11 00:17:19 vapier Exp $ [[ ${CTARGET} != nios* && ${CATEGORY} == "sys-devel" ]] && export CTARGET="nios2-elf" @@ -14,3 +14,10 @@ SRC_URI="mirror://gentoo/niosii-gnutools-src-${PV}.tgz" KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" S=${WORKDIR}/src/binutils + +src_unpack() { + tc-binutils_unpack + cd "${S}" + epatch "${FILESDIR}"/binutils-nios2-5.1-gcc4.patch + tc-binutils_apply_patches +} diff --git a/sys-devel/binutils-nios2/files/binutils-nios2-5.1-gcc4.patch b/sys-devel/binutils-nios2/files/binutils-nios2-5.1-gcc4.patch new file mode 100644 index 000000000000..efc9a91d983f --- /dev/null +++ b/sys-devel/binutils-nios2/files/binutils-nios2-5.1-gcc4.patch @@ -0,0 +1,20 @@ +--- src/binutils/gas/config/tc-nios2.c ++++ src/binutils/gas/config/tc-nios2.c +@@ -1792,7 +1792,7 @@ + + + /* apply the rightshift */ +- (signed) fixup >>= howto->rightshift; ++ fixup = (signed)fixup >> howto->rightshift; + + /* truncate the fixup to right size */ + switch (fixP->fx_r_type) +@@ -1837,7 +1837,7 @@ + nios2_check_overflow (valueT fixup, reloc_howto_type * howto) + { + /* apply the rightshift before checking for overflow */ +- (signed) fixup >>= howto->rightshift; ++ fixup = (signed)fixup >> howto->rightshift; + + /* check for overflow - return TRUE if overflow, FALSE if not */ + switch (howto->complain_on_overflow) |