Subject: [alpine-aports] [PATCH] main/putty: new upstream version 0.66

From: Christian Kampka <[email-masked]>
Date: Sun, 8 Nov 2015 20:48:51 +0100

---
 main/putty/APKBUILD               | 21 +++++++++++++++------
 main/putty/fix-big-int-type.patch | 14 ++++++++++++++
 main/putty/fix-include.patch      | 12 ++++++++++++
 3 files changed, 41 insertions(+), 6 deletions(-)
 create mode 100644 main/putty/fix-big-int-type.patch
 create mode 100644 main/putty/fix-include.patch

diff --git a/main/putty/APKBUILD b/main/putty/APKBUILD
index ba3d455..c101c91 100644
--- a/main/putty/APKBUILD
+++ b/main/putty/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jeff Bilyk <[email-masked]>
 pkgname=putty
-pkgver=0.64
-pkgrel=1
+pkgver=0.66
+pkgrel=0
 pkgdesc="SSH and telnet client"
 url="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
 arch="all"
@@ -11,7 +11,10 @@ depends_dev=
 makedepends="$depends_dev"
 install=""
 subpackages="$pkgname-doc"
-source="http://the.earth.li/~sgtatham/putty/latest/putty-$pkgver.tar.gz"
+source="http://the.earth.li/~sgtatham/putty/latest/putty-$pkgver.tar.gz
+fix-big-int-type.patch
+fix-include.patch
+"
 
 _builddir="$srcdir"/putty-$pkgver
 prepare() {
@@ -39,6 +42,12 @@ package() {
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-md5sums="75ff711e8b7cc9e0073bc511e1c1c14a  putty-0.64.tar.gz"
-sha256sums="2a46c97a184144e3ec2392aca9acc64d062317a3a38b9a5f623a147eda5f3821  putty-0.64.tar.gz"
-sha512sums="ba4d4086b8edcb6388924bf3d9b018841be36a9dbf298271c9d2ed063aae9854093e9ff6808bd1f65669d78369548639eb3c95fdec5e3f0daee4b1c7bb603051  putty-0.64.tar.gz"
+md5sums="af8e1c64dd064aa33d4a47baa3d80614  putty-0.66.tar.gz
+a9a76a4b889eaa3c25bce60c2c3d1211  fix-big-int-type.patch
+c376fb348650e28b88cbf06c07cd35d4  fix-include.patch"
+sha256sums="fe7312f66c54865868b362f4b79bd1fbe7ce9e8b1fd504b04034182db1f32993  putty-0.66.tar.gz
+77cf14b0c1b793c79c3f80a6e11b57ca281a155a3b01c96ec052ec1cd37d849b  fix-big-int-type.patch
+c10f453b2b8f4df670e192234ab14aa81d28f5b917a38c75d8936e351478c738  fix-include.patch"
+sha512sums="796fdb104fbdcad22d93274ea7c3599a34a94b35c849eafd1398f9a71721fbf2b6e4cec4abb64bb7fffe8ac45faefd8995339547fdc9b0beca5d7a76e0cb6bd3  putty-0.66.tar.gz
+7dae793a7f9c5248f10ebf456087c01459c99bc8ab931b06a9aa09d70ef010a06bf7b248c38b03ddd0b76d1a35d3b32a095ac99a22d08aa170ce0d100f5dffb7  fix-big-int-type.patch
+1ac1d9c803e0bc180b4c9a2dde357d06b0af37d182e8037fccc5c42f03f5e796fca0a1a2e6fa2db5ae27fbbdfb2579938a70ccf5028fee20c828a853607f330b  fix-include.patch"
diff --git a/main/putty/fix-big-int-type.patch b/main/putty/fix-big-int-type.patch
new file mode 100644
index 0000000..77c1728
--- /dev/null
+++ b/main/putty/fix-big-int-type.patch
@@ -0,0 +1,14 @@
+diff --git a/sshbn.h.orig b/sshbn.h
+index a043241..f2a3217 100644
+--- a/sshbn.h.orig
++++ b/sshbn.h
+@@ -26,7 +26,8 @@
+  * using the same 'two machine registers' kind of code generation that
+  * 32-bit targets use for 64-bit ints. If we have one of these, we can
+  * use a 64-bit BignumInt and a 128-bit BignumDblInt. */
+-typedef __uint64_t BignumInt;
++#include <stdint.h>
++typedef uint64_t BignumInt;
+ typedef __uint128_t BignumDblInt;
+ #define BIGNUM_INT_MASK  0xFFFFFFFFFFFFFFFFULL
+ #define BIGNUM_TOP_BIT   0x8000000000000000ULL
diff --git a/main/putty/fix-include.patch b/main/putty/fix-include.patch
new file mode 100644
index 0000000..f024a5e
--- /dev/null
+++ b/main/putty/fix-include.patch
@@ -0,0 +1,12 @@
+diff --git a/unix/uxcons.c b/unix/uxcons.c
+index fa1c43f..8c8da0c 100644
+--- a/unix/uxcons.c
++++ b/unix/uxcons.c
+@@ -8,6 +8,7 @@
+ #include <stdarg.h>
+ #include <assert.h>
+ #include <errno.h>
++#include <sys/select.h>
+
+ #include <termios.h>
+ #include <unistd.h>
-- 
2.6.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---