Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/devel
In directory vz-cvs-3.sog:/tmp/cvs-serv11639/stable/main/finkinfo/devel

Modified Files:
        avr-binutils.info 
Added Files:
        avr-binutils.patch 
Log Message:
sync avr-binutils to stable to satisfy dep of avr-gcc in stable


Index: avr-binutils.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/devel/avr-binutils.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- avr-binutils.info   24 Jul 2011 17:35:19 -0000      1.5
+++ avr-binutils.info   20 Oct 2011 04:36:58 -0000      1.6
@@ -1,10 +1,12 @@
 Package: avr-binutils
-Version: 2.17
-Revision: 2
-Distribution: 10.4, 10.5
+Version: 2.19
+Revision: 3
+BuildDepends: fink (>= 0.24.12)
 Maintainer: Matthias Ringwald <[email protected]>
 Source: mirror:gnu:binutils/binutils-%v.tar.bz2
-Source-MD5: e26e2e06b6e4bf3acf1dc8688a94c0d1 
+Source-MD5: 17a52219dee5a76c1a9d9b0bfd337d66 
+PatchFile: %n.patch
+PatchFile-MD5: 8c24f8e7d9c7950b66dff0331b6633c4
 
 ConfigureParams: --target=avr --prefix=%p/share/avr --bindir=%p/bin 
--mandir=%p/share/man --infodir=%p/share/info --disable-nls
 
@@ -21,6 +23,9 @@
 Removed libiberty.a installation of avr-gcc & avr-binutils.
 Avoided using /sw/avr. Its lib & include folders have been moved to 
/sw/share/avr and the binaries are put into /sw/bin.
 Removed xxx.info files to avoid clashes with other potential toolchains.
+
+opcodes/avr-dis.c: uses sprintf without formats (compile error on 10.6), using 
strcpy insteads
+strings.c: uses stat64 which is deprecated in 10.6. stat64 provides 64 bit 
inodes which are not used anyway, use stat.
 TODO: Native Language Support
 <<
 

--- NEW FILE: avr-binutils.patch ---
--- binutils-2.19/opcodes/avr-dis.c     2007-07-05 11:49:00.000000000 +0200
+++ binutils-2.19-patched/opcodes/avr-dis.c     2009-09-12 09:34:15.000000000 
+0200
@@ -109,7 +109,7 @@
            case 0x100e: xyz = "-X"; break;
            default: xyz = "??"; ok = 0;
          }
-       sprintf (buf, xyz);
+       strcpy(buf, xyz);
 
        if (AVR_UNDEF_P (insn))
          sprintf (comment, _("undefined"));
@@ -149,7 +149,7 @@
         value of the address only once, but this would mean recoding
         objdump_print_address() which would affect many targets.  */
       sprintf (buf, "%#lx", (unsigned long) *sym_addr);      
-      sprintf (comment, comment_start);
+      strcpy (comment, comment_start);
       break;
       
     case 'L':
@@ -158,7 +158,7 @@
        sprintf (buf, ".%+-8d", rel_addr);
         *sym = 1;
         *sym_addr = pc + 2 + rel_addr;
-       sprintf (comment, comment_start);
+       strcpy (comment, comment_start);
       }
       break;
 
@@ -169,7 +169,7 @@
        sprintf (buf, ".%+-8d", rel_addr);
         *sym = 1;
         *sym_addr = pc + 2 + rel_addr;
-       sprintf (comment, comment_start);
+       strcpy (comment, comment_start);
       }
       break;
 
--- binutils-2.19/binutils/strings.c    2008-08-25 06:38:13.000000000 +0200
+++ binutils-2.19-patched/binutils/strings.c    2009-09-12 09:59:00.000000000 
+0200
@@ -85,13 +85,9 @@
 typedef off_t file_off;
 #define file_open(s,m) fopen(s, m)
 #endif
-#ifdef HAVE_STAT64
-typedef struct stat64 statbuf;
-#define file_stat(f,s) stat64(f, s)
-#else
+// inode not used - don't try to used 64 bit inodes
 typedef struct stat statbuf;
 #define file_stat(f,s) stat(f, s)
-#endif
 
 /* Radix for printing addresses (must be 8, 10 or 16).  */
 static int address_radix;


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to