Fix compile with gcc4, bug #112109
authorStefan Jones <cretin@gentoo.org>
Thu, 10 Nov 2005 22:22:41 +0000 (22:22 +0000)
committerStefan Jones <cretin@gentoo.org>
Thu, 10 Nov 2005 22:22:41 +0000 (22:22 +0000)
Package-Manager: portage-2.0.53_rc7

dev-util/xmingw-binutils/ChangeLog
dev-util/xmingw-binutils/Manifest
dev-util/xmingw-binutils/files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch [new file with mode: 0644]
dev-util/xmingw-binutils/xmingw-binutils-2.15.94.20050118.1.ebuild

index 3d462f1681efa455fab0738c7ea189a8a55cbe09..ecd158c6e48b996468b1670ed8ebb596582614dc 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-util/xmingw-binutils
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/ChangeLog,v 1.7 2005/05/27 17:32:05 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/ChangeLog,v 1.8 2005/11/10 22:22:41 cretin Exp $
+
+  10 Nov 2005; Stefan Jones <cretin@gentoo.org>
+  +files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch,
+  xmingw-binutils-2.15.94.20050118.1.ebuild:
+  Fix compile with gcc4, bug #112109
+  Fix found by Dario Birtic
 
 *xmingw-binutils-2.15.94.20050118.1 (27 May 2005)
 
index 550093afe865b5b123b49e87a64b0743b2154872..da8536841574c1f6ec908caaa3c312850e47aa57 100644 (file)
@@ -1,6 +1,7 @@
-MD5 d4f0c6ba11fd69f2938e6c2609163f0e xmingw-binutils-2.15.90.0.2.ebuild 945
-MD5 748be0980042c122ce895243b5d9b971 xmingw-binutils-2.15.94.20050118.1.ebuild 778
-MD5 c377ec26caf3b2eeb14d0244902ece34 ChangeLog 851
-MD5 d5a08b81c465636d4c7fd5286c6e6e00 metadata.xml 225
+MD5 63f03c72b1f326beed3613efd2520d51 ChangeLog 1066
 MD5 64fe03ab4e08a6313bc2b3f5c7423e83 files/digest-xmingw-binutils-2.15.90.0.2 157
 MD5 4ec7e1dce377315f3376b62ea328d8a7 files/digest-xmingw-binutils-2.15.94.20050118.1 85
+MD5 cb4736d7410f9e8a58293864fe131193 files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch 1812
+MD5 d5a08b81c465636d4c7fd5286c6e6e00 metadata.xml 225
+MD5 d4f0c6ba11fd69f2938e6c2609163f0e xmingw-binutils-2.15.90.0.2.ebuild 945
+MD5 c9604b56352851a511ad164fd46baddf xmingw-binutils-2.15.94.20050118.1.ebuild 822
diff --git a/dev-util/xmingw-binutils/files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch b/dev-util/xmingw-binutils/files/xmingw-binutils-2.15.94.20050118.1-gcc4.patch
new file mode 100644 (file)
index 0000000..9d05827
--- /dev/null
@@ -0,0 +1,60 @@
+Submitted By: Alexander E. Patrakov
+Date: 2005-10-10
+Initial Package Version: 2.15.94.0.2.2
+Upstream Status: Backport from 2.16.1
+Origin: Alexander E. Patrakov
+Description: Fixes compilation by gcc4 (e.g. from Fedora Core 4 hosts)
+
+--- binutils-2.15.94.0.2.2/gas/tc.h    2004-11-22 20:33:31.000000000 +0000
++++ binutils-2.16.1/gas/tc.h   2005-02-17 13:46:00.000000000 +0000
+@@ -24,25 +25,6 @@
+ 
+ extern const pseudo_typeS md_pseudo_table[];
+ 
+-/* JF moved this here from as.h under the theory that nobody except MACHINE.c
+-   and write.c care about it anyway.  */
+-
+-struct relax_type
+-{
+-  /* Forward reach. Signed number. > 0.  */
+-  long rlx_forward;
+-  /* Backward reach. Signed number. < 0.  */
+-  long rlx_backward;
+-
+-  /* Bytes length of this address.  */
+-  unsigned char rlx_length;
+-
+-  /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
+-  relax_substateT rlx_more;
+-};
+-
+-typedef struct relax_type relax_typeS;
+-
+ extern const int md_reloc_size;       /* Size of a relocation record.  */
+ 
+ char * md_atof (int, char *, int *);
+--- binutils-2.15.94.0.2.2/gas/as.h    2004-09-15 19:05:03.000000000 +0000
++++ binutils-2.16.1/gas/as.h   2005-04-13 17:58:40.000000000 +0000
+@@ -397,6 +384,22 @@
+ /* Enough bits for address, but still an integer type.
+    Could be a problem, cross-assembling for 64-bit machines.  */
+ typedef addressT relax_addressT;
++
++struct relax_type
++{
++  /* Forward reach. Signed number. > 0.  */
++  offsetT rlx_forward;
++  /* Backward reach. Signed number. < 0.  */
++  offsetT rlx_backward;
++
++  /* Bytes length of this address.  */
++  unsigned char rlx_length;
++
++  /* Next longer relax-state.  0 means there is no 'next' relax-state.  */
++  relax_substateT rlx_more;
++};
++
++typedef struct relax_type relax_typeS;
+ \f
+ /* main program "as.c" (command arguments etc).  */
+ 
index 253dda0364223a9c1f11eead51f0b78de31d5227..fba071e9de14f95ba6bb77f64219f54df5cf8ff5 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.15.94.20050118.1.ebuild,v 1.1 2005/05/27 17:32:05 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.15.94.20050118.1.ebuild,v 1.2 2005/11/10 22:22:41 cretin Exp $
 
-inherit eutils
+inherit eutils base
 
 MY_P=binutils-2.15.94-20050118-1
 S=${WORKDIR}/${MY_P}
@@ -18,6 +18,8 @@ IUSE=""
 
 DEPEND=""
 
+PATCHES="${FILESDIR}/${P}-gcc4.patch"
+
 src_compile() {
        ./configure \
                --target=i386-mingw32msvc \