Fix build on aarch64 by providing dummy functions in a file that was

accidentally omitted when upstream included a copy of PuTTY.  ok bket@
This commit is contained in:
naddy 2020-04-26 19:16:07 +00:00
parent cf941927ff
commit 207a4c5532
3 changed files with 39 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.67 2020/03/13 12:34:42 bket Exp $
# $OpenBSD: Makefile,v 1.68 2020/04/26 19:16:07 naddy Exp $
COMMENT= fast FTP and SFTP GUI client with a lot of features
BROKEN-hppa= serverpath.h:17:19: error: variable 'CServerPath final' has initializer but incomplete type
@ -70,4 +70,7 @@ WRKDIST= ${WRKDIR}/filezilla-$V
FAKE_FLAGS+= docsdir="${PREFIX}/share/examples/filezilla/"
post-extract:
cp ${FILESDIR}/uxutils.c ${WRKSRC}/src/putty/unix/uxutils.c
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
/* $OpenBSD: uxutils.c,v 1.1 2020/04/26 19:16:07 naddy Exp $
* Replacement for missing src/putty/unix/uxutils.c.
*/
#include "putty.h"
#include "ssh.h"
bool platform_aes_hw_available(void)
{
return false;
}
bool platform_sha1_hw_available(void)
{
return false;
}
bool platform_sha256_hw_available(void)
{
return false;
}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_putty_Makefile_am,v 1.1 2020/04/26 19:16:07 naddy Exp $
Index: src/putty/Makefile.am
--- src/putty/Makefile.am.orig
+++ src/putty/Makefile.am
@@ -48,7 +48,8 @@ libfzputtycommon_a_SOURCES += \
unix/uxmisc.c \
unix/uxnoise.c \
unix/uxpoll.c \
- unix/uxstore.c
+ unix/uxstore.c \
+ unix/uxutils.c
endif
bin_PROGRAMS = fzsftp fzputtygen