From 1fc42dbf58fe42c2fafd1f1d50c59249f8e65e5c Mon Sep 17 00:00:00 2001
From: p-wassi
Date: Sat, 3 Dec 2016 22:14:06 +0100
Subject: [PATCH] utils/avrdude: update to 6.3
Update avrdude to upstream release 6.3
Signed-off-by: Paul Wassi
---
utils/avrdude/Makefile | 8 ++++----
utils/avrdude/patches/010-configure-fixups.patch | 4 ++--
utils/avrdude/patches/100-musl-compat.patch | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/utils/avrdude/Makefile b/utils/avrdude/Makefile
index f933cc155..ca27a853e 100644
--- a/utils/avrdude/Makefile
+++ b/utils/avrdude/Makefile
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=avrdude
-PKG_VERSION:=6.1
-PKG_RELEASE:=3
+PKG_VERSION:=6.3
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/avrdude
-PKG_MD5SUM:=9db8c25b935d34234b9b1ba16ad55fd5
+PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
+PKG_MD5SUM:=58bb42049122cf80fe4f4d0ce36d92ee
PKG_MAINTAINER:=Ted Hess
PKG_LICENSE:=GPL-2.0
diff --git a/utils/avrdude/patches/010-configure-fixups.patch b/utils/avrdude/patches/010-configure-fixups.patch
index b945ecbeb..11ddad7eb 100644
--- a/utils/avrdude/patches/010-configure-fixups.patch
+++ b/utils/avrdude/patches/010-configure-fixups.patch
@@ -1,6 +1,6 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -35,6 +35,7 @@ AC_CONFIG_HEADERS(ac_cfg.h)
+@@ -38,6 +38,7 @@ LT_INIT()
# Checks for programs.
AC_PROG_CC
@@ -8,7 +8,7 @@
AC_PROG_INSTALL
AC_PROG_SED
AC_PROG_YACC
-@@ -183,6 +184,7 @@ fi
+@@ -182,6 +183,7 @@ fi
AC_SUBST(LIBPTHREAD, $LIBPTHREAD)
# Checks for header files.
AC_CHECK_HEADERS([limits.h stdlib.h string.h])
diff --git a/utils/avrdude/patches/100-musl-compat.patch b/utils/avrdude/patches/100-musl-compat.patch
index 6baedc09e..cef5fe42e 100644
--- a/utils/avrdude/patches/100-musl-compat.patch
+++ b/utils/avrdude/patches/100-musl-compat.patch
@@ -17,7 +17,7 @@
+#include
#include "avrdude.h"
- #include "avr.h"
+ #include "libavrdude.h"
--- a/ser_avrdoper.c
+++ b/ser_avrdoper.c
@@ -248,6 +248,7 @@ static int usbGetReport(union filedescri
@@ -30,7 +30,7 @@
# include
--- a/usbtiny.c
+++ b/usbtiny.c
-@@ -41,6 +41,7 @@
+@@ -40,6 +40,7 @@
#if defined(HAVE_LIBUSB) // we use LIBUSB to talk to the board
#if defined(HAVE_USB_H)