diff options
author | Danilo G. Baio <dbaio@FreeBSD.org> | 2021-08-25 12:25:15 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2021-08-25 12:27:30 +0000 |
commit | a5d11eeb395da6b6b8af01206765173d0fb1bfe5 (patch) | |
tree | 530bdff2e077203380f2838764f050824ef67f74 | |
parent | aeb4f15f0f53cd80e591c4a2e59cfe63966175db (diff) | |
download | ports-a5d11eeb395da6b6b8af01206765173d0fb1bfe5.tar.gz ports-a5d11eeb395da6b6b8af01206765173d0fb1bfe5.zip |
security/pecl-scrypt: Fix build with PHP 8
PR: 258030
Reported by: clpo13@gmail.com
-rw-r--r-- | security/pecl-scrypt/Makefile | 5 | ||||
-rw-r--r-- | security/pecl-scrypt/distinfo | 4 | ||||
-rw-r--r-- | security/pecl-scrypt/files/patch-crypto_crypto__scrypt-nosse.c | 12 |
3 files changed, 19 insertions, 2 deletions
diff --git a/security/pecl-scrypt/Makefile b/security/pecl-scrypt/Makefile index 77dd2af3e0cf..7d6620345fe9 100644 --- a/security/pecl-scrypt/Makefile +++ b/security/pecl-scrypt/Makefile @@ -4,6 +4,10 @@ PORTNAME= scrypt PORTVERSION= 1.4.2 CATEGORIES= security pear +# https://github.com/DomBlack/php-scrypt/pull/56/ +PATCH_SITES= https://github.com/DomBlack/php-scrypt/commit/ +PATCHFILES= 5010f9fa0743518d149d994728ca930503adde1e.patch:-p1 + MAINTAINER= dbaio@FreeBSD.org COMMENT= PHP wrapper to Colin Percival's scrypt implementation @@ -11,7 +15,6 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= php:pecl -IGNORE_WITH_PHP= 80 USE_PHP= hash:build OPTIONS_DEFINE= DOCS EXAMPLES diff --git a/security/pecl-scrypt/distinfo b/security/pecl-scrypt/distinfo index 4dacd769456c..3307ee3453b0 100644 --- a/security/pecl-scrypt/distinfo +++ b/security/pecl-scrypt/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1491395894 +TIMESTAMP = 1629893529 SHA256 (PECL/scrypt-1.4.2.tgz) = 94c7e7f3378f6ddf1755f59d99f61570f380df2b2fa630853a932d58fa38389c SIZE (PECL/scrypt-1.4.2.tgz) = 21585 +SHA256 (PECL/5010f9fa0743518d149d994728ca930503adde1e.patch) = 9241f4d2a3c5360a209c7fd308eabaac0dcd0ee356a4badf9e24d93a94ba4bb8 +SIZE (PECL/5010f9fa0743518d149d994728ca930503adde1e.patch) = 1277 diff --git a/security/pecl-scrypt/files/patch-crypto_crypto__scrypt-nosse.c b/security/pecl-scrypt/files/patch-crypto_crypto__scrypt-nosse.c new file mode 100644 index 000000000000..3c2d95905024 --- /dev/null +++ b/security/pecl-scrypt/files/patch-crypto_crypto__scrypt-nosse.c @@ -0,0 +1,12 @@ +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258030 +# Based on https://github.com/DomBlack/php-scrypt/pull/56 +--- crypto/crypto_scrypt-nosse.c.orig 2016-05-18 14:49:13 UTC ++++ crypto/crypto_scrypt-nosse.c +@@ -45,6 +45,7 @@ + #include "sysendian.h" + + #include "crypto_scrypt.h" ++#include "php_scrypt.h" + + static void blkcpy(uint8_t *, uint8_t *, size_t); + static void blkxor(uint8_t *, uint8_t *, size_t); |