mail/archiveopteryx: Fix build with modern clang
MFH: 2018Q2
This commit is contained in:
parent
45a5d4d5da
commit
305c4394a7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467334
2 changed files with 22 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= archiveopteryx
|
||||
PORTVERSION= 3.2.0
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://archiveopteryx.org/download/
|
||||
|
||||
|
@ -12,8 +12,6 @@ COMMENT= Advanced PostgreSQL-based IMAP/POP server
|
|||
|
||||
LICENSE= MIT
|
||||
|
||||
BROKEN_armv6= fails to build: core/md5.cpp:55:5: 'register' storage class specifier is deprecated and incompatible with C++17
|
||||
BROKEN_armv7= fails to build: core/md5.cpp:55:5: 'register' storage class specifier is deprecated and incompatible with C++17
|
||||
BROKEN_powerpc64= fails to build: /bin/sh: clang: not found
|
||||
|
||||
BUILD_DEPENDS= jam:devel/jam
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
--- ./core/md5.cpp.orig 2014-03-06 13:46:23.918398965 -0600
|
||||
+++ ./core/md5.cpp 2014-03-06 13:46:30.784414914 -0600
|
||||
@@ -149,12 +149,9 @@
|
||||
--- core/md5.cpp.orig 2014-03-10 13:44:59 UTC
|
||||
+++ core/md5.cpp
|
||||
@@ -52,7 +52,7 @@ void MD5::init()
|
||||
|
||||
void MD5::add( const char *str, uint len )
|
||||
{
|
||||
- register uint32 t;
|
||||
+ uint32 t;
|
||||
|
||||
/* It's not possible to add() data, call hash(), then add more data
|
||||
and call hash() again, because hash() destroys the accumulated
|
||||
@@ -149,12 +149,9 @@ EString MD5::hash()
|
||||
}
|
||||
swapBytes( in, 14 );
|
||||
|
||||
|
@ -13,3 +22,12 @@
|
|||
transform();
|
||||
swapBytes( (char *)buf, 4 );
|
||||
|
||||
@@ -247,7 +244,7 @@ EString MD5::HMAC( const EString &secret
|
||||
|
||||
void MD5::transform()
|
||||
{
|
||||
- register uint32 a, b, c, d;
|
||||
+ uint32 a, b, c, d;
|
||||
uint32 *inw = (uint32 *)in;
|
||||
|
||||
a = buf[0];
|
||||
|
|
Loading…
Reference in a new issue