> base64/base64.cpp:65:2: error: narrowing conversion of '-1' from > "'int' to 'char' inside { } [-Wnarrowing]"
Really gcc-8 is better at finding narrowing errors. It looks like clang hasn't spotted it as it packages on aarch64. It's similar to the games/spacehulk issue i had earlier. I've fixed the code, and moved HOMEPAGE to https while here. It works fine on macppc. Charlène. Index: Makefile =================================================================== RCS file: /cvs/ports/net/psi/Makefile,v retrieving revision 1.31 diff -u -p -r1.31 Makefile --- Makefile 21 Jan 2019 20:55:38 -0000 1.31 +++ Makefile 15 Apr 2019 14:19:18 -0000 @@ -3,10 +3,10 @@ COMMENT= multiplatform Jabber client DISTNAME= psi-0.15 -REVISION= 10 +REVISION= 11 CATEGORIES= net -HOMEPAGE= http://psi-im.org/ +HOMEPAGE= https://psi-im.org/ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=psi/} EXTRACT_SUFX= .tar.bz2 Index: patches/patch-iris_src_xmpp_base64_base64_cpp =================================================================== RCS file: patches/patch-iris_src_xmpp_base64_base64_cpp diff -N patches/patch-iris_src_xmpp_base64_base64_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-iris_src_xmpp_base64_base64_cpp 15 Apr 2019 14:19:18 -0000 @@ -0,0 +1,16 @@ +$OpenBSD$ + +ppc, arm: char is unsigned by default, fix narrowing on these platforms + +Index: iris/src/xmpp/base64/base64.cpp +--- iris/src/xmpp/base64/base64.cpp.orig ++++ iris/src/xmpp/base64/base64.cpp +@@ -45,7 +45,7 @@ QByteArray Base64::decode(const QString& input) + // 64 specifies eof + // everything else specifies data + +- char tbl[] = { ++ signed char tbl[] = { + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,