[90736] trunk/dports/cross/i386-elf-binutils

jmr at macports.org jmr at macports.org
Tue Mar 13 19:28:25 PDT 2012


Revision: 90736
          http://trac.macports.org/changeset/90736
Author:   jmr at macports.org
Date:     2012-03-13 19:28:22 -0700 (Tue, 13 Mar 2012)
Log Message:
-----------
i386-elf-binutils: update to 2.20 (#22395, maintainer timeout), use correct compiler, apply darwin 10 patch on darwin > 10 as well

Modified Paths:
--------------
    trunk/dports/cross/i386-elf-binutils/Portfile

Removed Paths:
-------------
    trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c
    trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c

Modified: trunk/dports/cross/i386-elf-binutils/Portfile
===================================================================
--- trunk/dports/cross/i386-elf-binutils/Portfile	2012-03-14 01:21:07 UTC (rev 90735)
+++ trunk/dports/cross/i386-elf-binutils/Portfile	2012-03-14 02:28:22 UTC (rev 90736)
@@ -1,8 +1,9 @@
 # $Id$
 
 PortSystem			1.0
+
 name				i386-elf-binutils
-version				2.18.50.0.9
+version				2.20
 
 # Parameters for this port.
 set crossgcc-target i386-elf
@@ -19,9 +20,9 @@
 					http://ftp.kernel.org/pub/linux/devel/binutils/
 distname			binutils-${version}
 use_bzip2			yes
-checksums			md5     68e3510d9c790b134450c0a243c251cd \
-					sha1    369b21b07e06ec44005603acaa046b2ea69831bd \
-					rmd160  edbb31cfd6e0c1756618532064a46d03779bfadb
+checksums			md5    ee2d3e996e9a2d669808713360fa96f8 \
+					sha1   747e7b4d94bce46587236dc5f428e5b412a590dc \
+					rmd160 284074e2453e517d036ffce2c0f3d56439e2e5c0
 
 depends_lib			port:gettext
 
@@ -31,9 +32,7 @@
 # Download everything to binutils/
 dist_subdir			binutils
 
-patchfiles			patch-binutils__dwarf.c patch-gas__listing.c
-
-platform darwin 10 {
+if {${os.platform} == "darwin" && ${os.major} >= 10} {
 	patchfiles-append	patch-binutils__strings.c
 }
 
@@ -41,12 +40,11 @@
 pre-configure   	{ system "cd ${workpath} && mkdir -p build"}
 configure.dir   	${workpath}/build
 configure.cmd   	${worksrcpath}/configure
-configure.cc	   	"cc -no-cpp-precomp -I${prefix}/include"
 configure.args  	--infodir='${prefix}/share/info' --target=${crossgcc-target} \
 					--program-prefix=${crossgcc-target}- --mandir='${prefix}/share/man' \
 					--disable-werror
 if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "ppc64")} {
-    configure.args-append --build=${build_arch}-apple-darwin${os.major}
+    configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
 }
 build.dir       	${workpath}/build
 					
@@ -59,7 +57,7 @@
 	namespace eval crossgcc {}
 
 	# Fix the info pages and related stuff.
-	#	
+	#
 	# path: path to the doc directory (e.g. gas/doc/)
 	# makefile: path to Makefile.in (e.g. gas/doc/Makefile.in)
 	# name: name of the info page (e.g. as)
@@ -92,7 +90,7 @@
 	}
 
 	# Fix the gettext files and related stuff.
-	#	
+	#
 	# module: name of the module (e.g. gas)
 	proc crossgcc::fixgettext { module } {
 		global crossgcc-target worksrcpath

Deleted: trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c
===================================================================
--- trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c	2012-03-14 01:21:07 UTC (rev 90735)
+++ trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c	2012-03-14 02:28:22 UTC (rev 90736)
@@ -1,11 +0,0 @@
---- binutils/dwarf.c.orig	2009-06-26 12:46:14.000000000 -0700
-+++ binutils/dwarf.c	2009-06-26 12:46:27.000000000 -0700
-@@ -186,7 +186,7 @@
-   snprintf (buff, sizeof (buff), "%16.16lx ", val);
- #endif
- 
--  printf (buff + (byte_size == 4 ? 8 : 0));
-+  printf ("%s", buff + (byte_size == 4 ? 8 : 0));
- }
- 
- static unsigned long int

Deleted: trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c
===================================================================
--- trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c	2012-03-14 01:21:07 UTC (rev 90735)
+++ trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c	2012-03-14 02:28:22 UTC (rev 90736)
@@ -1,11 +0,0 @@
---- gas/listing.c.orig	2009-06-26 12:41:45.000000000 -0700
-+++ gas/listing.c	2009-06-26 12:42:04.000000000 -0700
-@@ -1100,7 +1100,7 @@
-   int pos = strlen (field_name);
-   char **p;
- 
--  fprintf (list_file, field_name);
-+  fprintf (list_file, "%s", field_name);
-   for (p = &argv[1]; *p != NULL; p++)
-     if (**p == '-')
-       {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120313/246f33fe/attachment.html>


More information about the macports-changes mailing list