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

toby at macports.org toby at macports.org
Fri Jun 26 13:01:19 PDT 2009


Revision: 52972
          http://trac.macports.org/changeset/52972
Author:   toby at macports.org
Date:     2009-06-26 13:01:18 -0700 (Fri, 26 Jun 2009)
Log Message:
-----------
buildfix

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

Added Paths:
-----------
    trunk/dports/cross/i386-elf-binutils/files/
    trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c
    trunk/dports/cross/i386-elf-binutils/files/patch-binutils__strings.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	2009-06-26 19:54:27 UTC (rev 52971)
+++ trunk/dports/cross/i386-elf-binutils/Portfile	2009-06-26 20:01:18 UTC (rev 52972)
@@ -30,6 +30,12 @@
 # Download everything to binutils/
 dist_subdir			binutils
 
+patchfiles			patch-binutils__dwarf.c patch-gas__listing.c
+
+platform darwin 10 {
+	patchfiles-append	patch-binutils__strings.c
+}
+
 # Build in a different directory, as advised in the README file.
 pre-configure   	{ system "cd ${workpath} && mkdir -p build"}
 configure.dir   	${workpath}/build

Added: trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c
===================================================================
--- trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c	                        (rev 0)
+++ trunk/dports/cross/i386-elf-binutils/files/patch-binutils__dwarf.c	2009-06-26 20:01:18 UTC (rev 52972)
@@ -0,0 +1,11 @@
+--- 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

Added: trunk/dports/cross/i386-elf-binutils/files/patch-binutils__strings.c
===================================================================
--- trunk/dports/cross/i386-elf-binutils/files/patch-binutils__strings.c	                        (rev 0)
+++ trunk/dports/cross/i386-elf-binutils/files/patch-binutils__strings.c	2009-06-26 20:01:18 UTC (rev 52972)
@@ -0,0 +1,11 @@
+--- binutils/strings.c.orig	2009-06-26 12:59:38.000000000 -0700
++++ binutils/strings.c	2009-06-26 12:59:46.000000000 -0700
+@@ -97,7 +97,7 @@
+ typedef off_t file_off;
+ #define file_open(s,m) fopen(s, m)
+ #endif
+-#ifdef HAVE_STAT64
++#ifdef 0
+ typedef struct stat64 statbuf;
+ #define file_stat(f,s) stat64(f, s)
+ #else

Added: trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c
===================================================================
--- trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c	                        (rev 0)
+++ trunk/dports/cross/i386-elf-binutils/files/patch-gas__listing.c	2009-06-26 20:01:18 UTC (rev 52972)
@@ -0,0 +1,11 @@
+--- 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/20090626/ae63e940/attachment.html>


More information about the macports-changes mailing list