mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
putty: unbreak musl with Alpine patches and -Wno-error.
This commit is contained in:
parent
dc022c7a98
commit
61c79851a1
3 changed files with 26 additions and 1 deletions
12
srcpkgs/putty/patches/fix-big-int-type.patch
Normal file
12
srcpkgs/putty/patches/fix-big-int-type.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- sshbn.h.orig
|
||||||
|
+++ 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
|
10
srcpkgs/putty/patches/fix-include.patch
Normal file
10
srcpkgs/putty/patches/fix-include.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- unix/uxcons.c
|
||||||
|
+++ 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>
|
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'putty'
|
# Template file for 'putty'
|
||||||
pkgname=putty
|
pkgname=putty
|
||||||
version=0.66
|
version=0.66
|
||||||
revision=1
|
revision=2
|
||||||
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="gtk+-devel"
|
makedepends="gtk+-devel"
|
||||||
|
@ -11,3 +12,5 @@ license="MIT"
|
||||||
homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
|
homepage="http://www.chiark.greenend.org.uk/~sgtatham/putty/"
|
||||||
distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
|
distfiles="http://the.earth.li/~sgtatham/putty/latest/putty-${version}.tar.gz"
|
||||||
checksum=fe7312f66c54865868b362f4b79bd1fbe7ce9e8b1fd504b04034182db1f32993
|
checksum=fe7312f66c54865868b362f4b79bd1fbe7ce9e8b1fd504b04034182db1f32993
|
||||||
|
|
||||||
|
CFLAGS="-Wno-error"
|
||||||
|
|
Loading…
Add table
Reference in a new issue