Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a562dd72ad3e35dca767cac8934b1959ab2b213f

commit a562dd72ad3e35dca767cac8934b1959ab2b213f
Author: Laszlo Papp <djsz...@archlinux.us>
Date:   Mon Nov 2 06:18:00 2009 +0900

avarice-2.10-1-x86_64

* new package

diff --git a/source/devel-extra/avarice/FrugalBuild 
b/source/devel-extra/avarice/FrugalBuild
new file mode 100644
index 0000000..689b20d
--- /dev/null
+++ b/source/devel-extra/avarice/FrugalBuild
@@ -0,0 +1,19 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: Elentir <elen...@mailoo.org>
+# Contributor: Laszlo Papp <djszapi at archlinux.us>
+
+pkgname=avarice
+pkgver=2.10
+pkgrel=1
+pkgdesc="Tool for debugging AVR devices via JTAG with gdb"
+license="GPL"
+depends=('libusb' 'zlib')
+groups=('devel-extra')
+archs=('i686' 'x86_64')
+_F_sourceforge_ext=".tar.bz2"
+Finclude sourceforge
+source=($source jtag2usb.patch)
+Fconfopts="${fconfop...@]} --enable-unicode --enable-clock --with-taglib 
--with-curl"
+sha1sums=('fbac00e37f90185f24a17023eccc111493792cb1' \
+          '907b8fde80227c2e441d416a93a1112f23d5473b')
+
diff --git a/source/devel-extra/avarice/jtag2usb.patch 
b/source/devel-extra/avarice/jtag2usb.patch
new file mode 100644
index 0000000..8e77a5e
--- /dev/null
+++ b/source/devel-extra/avarice/jtag2usb.patch
@@ -0,0 +1,48 @@
+--- src/jtag2usb.cc    2007/02/17 22:41:46     1.9
++++ src/jtag2usb.cc    2009/06/25 09:29:21     1.10
+@@ -18,7 +18,7 @@
+  * This file implements the libusb-based USB connection to a JTAG ICE
+  * mkII.
+  *
+- * $Id: jtag2usb.cc,v 1.9 2007/02/17 22:41:46 joerg_wunsch Exp $
++ * $Id: jtag2usb.cc,v 1.10 2009/06/25 09:29:21 joerg_wunsch Exp $
+  */
+
+
+@@ -70,7 +70,7 @@
+   struct usb_bus *bus;
+   struct usb_device *dev;
+   usb_dev_handle *udev;
+-  char *serno, *cp2;
++  char *devnamecopy, *serno, *cp2;
+   u_int16_t pid;
+   size_t x;
+
+@@ -85,6 +85,9 @@
+       break;
+     }
+
++  devnamecopy = new char[x = strlen(jtagDeviceName) + 1];
++  memcpy(devnamecopy, jtagDeviceName, x);
++
+   /*
+    * The syntax for usb devices is defined as:
+    *
+@@ -95,7 +98,7 @@
+    * right-to-left, so only the least significant nibbles need to be
+    * specified.
+    */
+-  if ((serno = strchr(jtagDeviceName, ':')) != NULL)
++  if ((serno = strchr(devnamecopy, ':')) != NULL)
+     {
+       /* first, drop all colons there if any */
+       cp2 = ++serno;
+@@ -159,6 +162,8 @@
+           }
+       }
+     }
++
++  delete devnamecopy;
+   if (!found)
+   {
+     printf("did not find any%s USB device \"%s\"\n",
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to