Index: head/security/veracrypt/Makefile =================================================================== --- head/security/veracrypt/Makefile (revision 459566) +++ head/security/veracrypt/Makefile (revision 459567) @@ -1,42 +1,43 @@ # $FreeBSD$ PORTNAME= veracrypt PORTVERSION= 1.21 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME:S/v/V/:S/c/C/}%20${PORTVERSION}/ DISTNAME= ${PORTNAME:S/v/V/:S/c/C/}_${PORTVERSION}_Source MAINTAINER= acm@FreeBSD.org COMMENT= Open-source disk encryption software based on Truecrypt LICENSE_FILE= ${DOCSDIR}/LICENSE BUILD_DEPENDS= yasm:devel/yasm RUN_DEPENDS= ${LOCALBASE}/bin/sudo:security/sudo USES= desktop-file-utils fuse gmake iconv pkgconfig tar:bz2 USE_WX= 3.0+ NO_WRKSUBDIR= yes BUILD_WRKSRC= ${WRKSRC}/src ALL_TARGET= # DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS post-patch: ${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g' ${WRKSRC}/src/Makefile ${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|g' -e \ 's|Icon=veracrypt|Icon=VeraCrypt-16x16|g' ${WRKSRC}/src/Setup/FreeBSD/veracrypt.desktop do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/Main/veracrypt ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/src/Setup/FreeBSD/veracrypt.desktop ${STAGEDIR}${PREFIX}/share/applications/ cd ${WRKSRC}/src/Resources/Icons && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/pixmaps "-name *\.xpm" do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/html ${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html .include Index: head/security/veracrypt/files/patch-src_Main_TextUserInterface.cpp =================================================================== --- head/security/veracrypt/files/patch-src_Main_TextUserInterface.cpp (nonexistent) +++ head/security/veracrypt/files/patch-src_Main_TextUserInterface.cpp (revision 459567) @@ -0,0 +1,15 @@ +TextUserInterface.cpp:122:5: error: const_cast from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer') to 'wchar_t *' is not allowed + const_cast (passwordStr.wc_str())[i] = L'X'; + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- src/Main/TextUserInterface.cpp.orig 2017-07-09 22:31:19 UTC ++++ src/Main/TextUserInterface.cpp +@@ -119,7 +119,7 @@ namespace VeraCrypt + for (size_t i = 0; i < length && i < VolumePassword::MaxSize; ++i) + { + passwordBuf[i] = (wchar_t) passwordStr[i]; +- const_cast (passwordStr.wc_str())[i] = L'X'; ++ passwordStr[i] = L'X'; + } + + if (verify && verPhase) Property changes on: head/security/veracrypt/files/patch-src_Main_TextUserInterface.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property