svn commit: r486750 - in head/devel/staf: . files
Serhii (Sergey) Kozlov
skozlov at FreeBSD.org
Thu Dec 6 10:50:43 UTC 2018
Author: skozlov
Date: Thu Dec 6 10:50:41 2018
New Revision: 486750
URL: https://svnweb.freebsd.org/changeset/ports/486750
Log:
devel/staf: Unbreak for openssl111
Summary:
- Unbreak for openssl111 using patch https://sourceforge.net/p/staf/bugs/1593/#f4aa
- Pet stage-qa by making symlinks relational
Approved By: sbruno (mentor)
Differential Revision: https://reviews.freebsd.org/D18440
Added:
head/devel/staf/files/patch-stafproc_STAFFSService.cpp (contents, props changed)
Modified:
head/devel/staf/Makefile
Modified: head/devel/staf/Makefile
==============================================================================
--- head/devel/staf/Makefile Thu Dec 6 10:48:46 2018 (r486749)
+++ head/devel/staf/Makefile Thu Dec 6 10:50:41 2018 (r486750)
@@ -3,6 +3,7 @@
PORTNAME= staf
PORTVERSION= 3.4.26
+PORTREVISION= 1
CATEGORIES= devel net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/V${PORTVERSION}
DISTNAME= STAF${PORTVERSION:S/.//g}-src
@@ -13,9 +14,6 @@ COMMENT= Software Testing Automation Framework
LICENSE= EPL
LICENSE_FILE= ${WRKSRC}/LICENSE.htm
-BROKEN_SSL= openssl111
-BROKEN_SSL_REASON_openssl111= variable has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
-
WRKSRC= ${WRKDIR}/src
WRKSRC_SUBDIR= ${PORTNAME}
INSTALL_WRKSRC= ${WRKDIR}/rel/freebsd/staf/${STAF_BUILD_TYPE}
@@ -151,8 +149,8 @@ do-install:
.for bin in ${STAF_BIN_FILES}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/${bin} ${STAGEDIR}${PREFIX}/bin/
.endfor
- ${LN} -s ${PREFIX}/bin/STAF ${STAGEDIR}${PREFIX}/bin/staf
- ${LN} -s ${PREFIX}/bin/FmtLog ${STAGEDIR}${PREFIX}/bin/fmtlog
+ ${LN} -s STAF ${STAGEDIR}${PREFIX}/bin/staf
+ ${LN} -s FmtLog ${STAGEDIR}${PREFIX}/bin/fmtlog
.for lib in ${STAF_LIB_FILES}
${INSTALL_LIB} ${INSTALL_WRKSRC}/lib/${lib} ${STAGEDIR}${PREFIX}/lib/
.endfor
Added: head/devel/staf/files/patch-stafproc_STAFFSService.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/staf/files/patch-stafproc_STAFFSService.cpp Thu Dec 6 10:50:41 2018 (r486750)
@@ -0,0 +1,39 @@
+--- stafproc/STAFFSService.cpp.orig 2016-12-31 04:11:18 UTC
++++ stafproc/STAFFSService.cpp
+@@ -4451,12 +4451,11 @@ STAFServiceResult STAFFSService::handleG
+
+ unsigned int fileLength = lowerSize;
+
+- EVP_MD_CTX mdctx;
++ EVP_MD_CTX* mdctx = EVP_MD_CTX_create();
+ unsigned char md_value[EVP_MAX_MD_SIZE];
+ unsigned int md_len;
+
+- EVP_MD_CTX_init(&mdctx);
+- EVP_DigestInit_ex(&mdctx, md, NULL);
++ EVP_DigestInit_ex(mdctx, md, NULL);
+
+ // Read the entire file using a buffer size of 4096 bytes and
+ // update the digest with the buffer
+@@ -4475,7 +4474,7 @@ STAFServiceResult STAFFSService::handleG
+
+ if (rc != kSTAFOk) break;
+
+- EVP_DigestUpdate(&mdctx, fileBuffer, writeLength);
++ EVP_DigestUpdate(mdctx, fileBuffer, writeLength);
+ fileLength -= writeLength;
+ bytesCopied += writeLength;
+ }
+@@ -4485,10 +4484,10 @@ STAFServiceResult STAFFSService::handleG
+ if (rc == kSTAFOk)
+ {
+ // Get the checksum value
+- EVP_DigestFinal_ex(&mdctx, md_value, &md_len);
++ EVP_DigestFinal_ex(mdctx, md_value, &md_len);
+ }
+
+- EVP_MD_CTX_cleanup(&mdctx);
++ EVP_MD_CTX_destroy(mdctx);
+
+ if (rc == kSTAFOk)
+ {
More information about the svn-ports-head
mailing list