Bug 179291 - devel/binutils: import patch for upstream bug 15178
Summary: devel/binutils: import patch for upstream bug 15178
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Niclas Zeising
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 10:10 UTC by Michael Moll
Modified: 2013-06-25 16:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moll freebsd_committer freebsd_triage 2013-06-04 10:10:00 UTC
Without the patch to src/gas/config/tc-sparc.h referenced in http://sourceware.org/bugzilla/show_bug.cgi?id=15178 it's impossible to build newer GCCs on FreeBSD/sparc64.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-06-04 19:42:44 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

ports PR.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-04 19:43:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->zeising

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 Anton Shterenlikht 2013-06-10 08:51:38 UTC
I confirm that these ports

# pkg info -xo gcc
gcc-4.6.4,1: lang/gcc46
gcc-4.7.4.20130518: lang/gcc47
gcc-4.8.1.20130418: lang/gcc48
# 

build with the patch on 10.0-CURRENT #9 r239940 sparc64.
Comment 4 Anton Shterenlikht 2013-06-11 08:36:08 UTC
gcc-4.9.0.20130526: lang/gcc49 builds too.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-06-25 15:55:50 UTC
Author: zeising
Date: Tue Jun 25 14:55:37 2013
New Revision: 321747
URL: http://svnweb.freebsd.org/changeset/ports/321747

Log:
  Update to 2.23.2
  Add upstream patch to make it possible to build gcc on sparc64 [1]
  Fix CONFIGURE_TARGET to do the right thing, previously the binutils build
  could fail on amd64 when built as a dependency of for instance gcc. [2]
  
  PR:		ports/179291 [1]
  Submitted by:	Michael Moll <kvedulv@kvedulv.de> (PR) [1]
  Reported by:	kwm and dim [2]

Added:
  head/devel/binutils/files/patch-src_gas_config_tc-sparc.h   (contents, props changed)
Modified:
  head/devel/binutils/Makefile
  head/devel/binutils/distinfo

Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile	Tue Jun 25 14:37:12 2013	(r321746)
+++ head/devel/binutils/Makefile	Tue Jun 25 14:55:37 2013	(r321747)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	binutils
-PORTVERSION=	2.23.1
+PORTVERSION=	2.23.2
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEWARE}
 MASTER_SITE_SUBDIR=	binutils/releases
@@ -83,7 +83,9 @@ PLIST_SUB+=	NLS="@comment "
 .endif
 
 .if ${ARCH} == "amd64"
-ARCH=		x86_64
+CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
+.else
+CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
 .endif
 
 post-install:

Modified: head/devel/binutils/distinfo
==============================================================================
--- head/devel/binutils/distinfo	Tue Jun 25 14:37:12 2013	(r321746)
+++ head/devel/binutils/distinfo	Tue Jun 25 14:55:37 2013	(r321747)
@@ -1,2 +1,2 @@
-SHA256 (binutils-2.23.1.tar.bz2) = 2ab2e5b03e086d12c6295f831adad46b3e1410a3a234933a2e8fac66cb2e7a19
-SIZE (binutils-2.23.1.tar.bz2) = 21455321
+SHA256 (binutils-2.23.2.tar.bz2) = fe914e56fed7a9ec2eb45274b1f2e14b0d8b4f41906a5194eac6883cfe5c1097
+SIZE (binutils-2.23.2.tar.bz2) = 21440347

Added: head/devel/binutils/files/patch-src_gas_config_tc-sparc.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/binutils/files/patch-src_gas_config_tc-sparc.h	Tue Jun 25 14:55:37 2013	(r321747)
@@ -0,0 +1,16 @@
+===================================================================
+RCS file: gas/config/tc-sparc.h,v
+retrieving revision 1.31
+retrieving revision 1.32
+diff -u -r1.31 -r1.32
+--- gas/config/tc-sparc.h	2010/10/22 12:08:29	1.31
++++ gas/config/tc-sparc.h	2013/03/26 13:49:12	1.32
+@@ -33,7 +33,7 @@
+ #define TARGET_ARCH bfd_arch_sparc
+ 
+ #ifdef TE_FreeBSD
+-#define ELF_TARGET_FORMAT	"elf32-sparc-freebsd"
++#define ELF_TARGET_FORMAT	"elf32-sparc"
+ #define ELF64_TARGET_FORMAT	"elf64-sparc-freebsd"
+ #endif
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Niclas Zeising freebsd_committer freebsd_triage 2013-06-25 15:56:41 UTC
State Changed
From-To: open->closed

Fixed, thanks for reporing and apologies for taking so long to get to 
this.