From: "cron2 (Code Review)" Date: Wed, 4 Mar 2026 21:50:33 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., yura.uddr@...277... Message-ID: <4948dfec7955954886e94a11a55067531b065a3e-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="1W8C8HRpm/o="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: vcpkg-ports: Review pkcs11-helper port List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: uddr , plaisthos , openvpn-devel --1W8C8HRpm/o= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15= 18?usp=3Demail ) Change subject: vcpkg-ports: Review pkcs11-helper port ...................................................................... vcpkg-ports: Review pkcs11-helper port - Replace deprecated functions with newer alternatives - Improve vcpkg.json by documenting openssl dependency - Remove unnecessary duplicated version number - Fix whitespaces Change-Id: I7462869a473a7afe2e9ed9474c69de0af96c011c Signed-off-by: Frank Lichtenheld Acked-by: Yuriy Darnobyt Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1518 Message-Id: <20260212110935.19541-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 599.html Signed-off-by: Gert Doering --- M contrib/vcpkg-ports/pkcs11-helper/portfile.cmake M contrib/vcpkg-ports/pkcs11-helper/vcpkg.json 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake b/contrib/vcp= kg-ports/pkcs11-helper/portfile.cmake index af19831..f5742a4 100644 --- a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake +++ b/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake @@ -1,15 +1,12 @@ -set(VERSION 1.31.0) - vcpkg_download_distfile(ARCHIVE URLS "https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11= -helper-${VERSION}/pkcs11-helper-${VERSION}.tar.bz2" FILENAME "pkcs11-helper-${VERSION}.tar.bz2" SHA512 0833efc59e9093dd398a54640d858b01a830ef7adfb40321c1e0ed0afa00450= 0fc1259cc66bc49c5263935adeda0a3bfe658de538eefd66888685a71f731c484 ) -vcpkg_extract_source_archive_ex( - OUT_SOURCE_PATH SOURCE_PATH +vcpkg_extract_source_archive( + SOURCE_PATH ARCHIVE ${ARCHIVE} - REF ${VERSION} PATCHES nmake-compatibility-with-vcpkg-nmake.patch config-w32-vc.h.in-indicate-OpenSSL.patch @@ -33,20 +30,20 @@ file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/libpkcs= 11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) set(PACKAGE_VERSION "${VERSION}") - set(libdir [[${prefix}/lib]]) - set(exec_prefix [[${prefix}]]) - set(PKCS11H_FEATURES key_prompt openssl engine_crypto_cryptoapi engine= _crypto_openssl debug threading token data certificate slotevent engine_cry= pto) - set(LIBS -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -lol= eaut32 -luuid -lcomdlg32 -ladvapi32) - if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") - set(includedir [[${prefix}/include]]) - set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libpkcs11-helpe= r-1.pc") - configure_file("${SOURCE_PATH}/lib/libpkcs11-helper-1.pc.in" "${ou= tfile}" @ONLY) - endif() - if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") - set(includedir [[${prefix}/../include]]) - set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libpkcs11= -helper-1.pc") - configure_file("${SOURCE_PATH}/lib/libpkcs11-helper-1.pc.in" "${ou= tfile}" @ONLY) - endif() + set(libdir [[${prefix}/lib]]) + set(exec_prefix [[${prefix}]]) + set(PKCS11H_FEATURES key_prompt openssl engine_crypto_cryptoapi engine_c= rypto_openssl debug threading token data certificate slotevent engine_crypt= o) + set(LIBS -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -lolea= ut32 -luuid -lcomdlg32 -ladvapi32) + if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + set(includedir [[${prefix}/include]]) + set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libpkcs11-helper-= 1.pc") + configure_file("${SOURCE_PATH}/lib/libpkcs11-helper-1.pc.in" "${outf= ile}" @ONLY) + endif() + if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + set(includedir [[${prefix}/../include]]) + set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libpkcs11-h= elper-1.pc") + configure_file("${SOURCE_PATH}/lib/libpkcs11-helper-1.pc.in" "${outf= ile}" @ONLY) + endif() file(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURR= ENT_PACKAGES_DIR}/include/) @@ -66,4 +63,4 @@ vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/sh= are/${PORT} RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json b/contrib/vcpkg-p= orts/pkcs11-helper/vcpkg.json index 382a3d3..da54646 100644 --- a/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json +++ b/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json @@ -1,7 +1,11 @@ { - "name": "pkcs11-helper", - "version": "1.31.0", - "description": "pkcs11-helper is a library that simplifies the interac= tion with PKCS#11 providers for end-user applications.", - "homepage": "https://github.com/OpenSC/pkcs11-helper", - "license": "BSD-3-Clause OR GPL-2.0-only" + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scr= ipts/vcpkg.schema.json", + "name": "pkcs11-helper", + "version": "1.31.0", + "description": "pkcs11-helper is a library that simplifies the interacti= on with PKCS#11 providers for end-user applications.", + "homepage": "https://github.com/OpenSC/pkcs11-helper", + "license": "BSD-3-Clause OR GPL-2.0-only", + "dependencies": [ + "openssl" + ] } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1518?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I7462869a473a7afe2e9ed9474c69de0af96c011c Gerrit-Change-Number: 1518 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: uddr Gerrit-CC: openvpn-devel --1W8C8HRpm/o= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

vcpkg-ports: Review pkcs11-helper port

- = Replace deprecated functions with newer alternatives
- Improve vcpkg.jso= n by documenting openssl dependency
- Remove unnecessary duplicated vers= ion number
- Fix whitespaces

Change-Id: I7462869a473a7afe2e9ed947= 4c69de0af96c011c
Signed-off-by: Frank Lichtenheld <frank@...2641...&g= t;
Acked-by: Yuriy Darnobyt <yura.uddr@...277...>
Gerrit URL: h= ttps://gerrit.openvpn.net/c/openvpn/+/1518
Message-Id: <2026021211093= 5.19541-1-frank@...2641...>
URL: https://www.mail-archive.com/openvpn= -devel@lists.sourceforge.net/msg35599.html
Signed-off-by: Gert Doering &= lt;gert@...1296...>
---
M contrib/vcpkg-ports/pkcs11-helper/portfi= le.cmake
M contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
2 files chang= ed, 26 insertions(+), 25 deletions(-)

diff --git a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake b/contrib/=
vcpkg-ports/pkcs11-helper/portfile.cmake
index af19831..f57= 42a4 100644
--- a/contrib/vcpkg-ports/pkcs11-helper/portfil= e.cmake
+++ b/contrib/vcpkg-ports/pkcs11-helper/portfile.cm= ake
@@ -1,15 +1,12 @@
-set(VERSION 1.31.0)
-
vcpkg_download_distfile(ARCHIVE
<= span> URLS "https://github.com/OpenSC/pkcs11-helper/releases/downl= oad/pkcs11-helper-${VERSION}/pkcs11-helper-${VERSION}.tar.bz2"<= br> FILENAME "pkcs11-helper-${VERSION}.tar.bz2"<= br> SHA512 0833efc59e9093dd398a54640d858b01a830ef7adfb40321c1e0ed= 0afa004500fc1259cc66bc49c5263935adeda0a3bfe658de538eefd66888685a71f731c484<= /span>
)

-vcpkg_extract_source_archive_ex(
- OUT_SOURCE_PATH SOURCE_PATH
+vcpkg_extract_source_archive(<= br>+ SOURCE_PATH
<= span> ARCHIVE ${ARCHIVE}

- REF ${VERSION}
PATCHES
= nmake-compatibility-with-vcpkg-nmake.patch
co= nfig-w32-vc.h.in-indicate-OpenSSL.patch
@@ -33,20 +30,20 @@=
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET= }-dbg/lib/libpkcs11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/= bin)

set(PACKAGE_VERSION "${VERSI= ON}")
- set(lib= dir [[${prefix}/lib]])
= - set(exec_prefix [[${prefix}]])
- set(PKCS11H_FEATURES key_prompt openssl engine_crypto_cry= ptoapi engine_crypto_openssl debug threading token data certificate sloteve= nt engine_crypto)
- = set(LIBS -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut3= 2 -luuid -lcomdlg32 -ladvapi32)
- if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL = "release")
- = set(includedir [[${prefix}/include]])
- set(outfile "${CURRENT_PACKAGES_DIR}/li= b/pkgconfig/libpkcs11-helper-1.pc")
- configure_file("${SOURCE_PATH}/lib/libpkcs1= 1-helper-1.pc.in" "${outfile}" @ONLY)
- endif()
- if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TY= PE STREQUAL "debug")
- set(includedir [[${prefix}/../include]])
- set(outfile "${CURRENT_PAC= KAGES_DIR}/debug/lib/pkgconfig/libpkcs11-helper-1.pc")
- configure_file("${SOURCE= _PATH}/lib/libpkcs11-helper-1.pc.in" "${outfile}" @ONLY)

- endif()
+ set(libdir [[${prefix}/lib]])
+ set(exec_prefix [[$= {prefix}]])
+ set(PK= CS11H_FEATURES key_prompt openssl engine_crypto_cryptoapi engine_crypto_ope= nssl debug threading token data certificate slotevent engine_crypto)=
+ set(LIBS -lkernel32 -lus= er32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -lad= vapi32)
+ if(NOT DEF= INED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")

+ set(includedir [[= ${prefix}/include]])
= + set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libpkcs11-he= lper-1.pc")
+ = configure_file("${SOURCE_PATH}/lib/libpkcs11-helper-1.pc.in" &= quot;${outfile}" @ONLY)
+ endif()
+ = if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug&q= uot;)
+ set(incl= udedir [[${prefix}/../include]])
+ set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgc= onfig/libpkcs11-helper-1.pc")
+ configure_file("${SOURCE_PATH}/lib/libpkcs11-help= er-1.pc.in" "${outfile}" @ONLY)
+ endif()

f= ile(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURRENT_= PACKAGES_DIR}/include/)

@@ -66,4 +63,4 @@=
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs(= )

-fi= le(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share= /${PORT} RENAME copyright)
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING"= )
diff --git a/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json= b/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
index 382a3= d3..da54646 100644
--- a/contrib/vcpkg-ports/pkcs11-helper/= vcpkg.json
+++ b/contrib/vcpkg-ports/pkcs11-helper/vcpkg.js= on
@@ -1,7 +1,11 @@
{
- "name": "pkcs11-helper&= quot;,
- "versi= on": "1.31.0",
- "description": "pkcs11-helper is a library that = simplifies the interaction with PKCS#11 providers for end-user applications= .",
- "hom= epage": "https://github.com/OpenSC/pkcs11-helper",- "license": "= BSD-3-Clause OR GPL-2.0-only"
+ "$schema": "https://raw.githubusercontent.c= om/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
+ "name": "pkcs11-hel= per",
+ "v= ersion": "1.31.0",
+ "description": "pkcs11-helper is a library t= hat simplifies the interaction with PKCS#11 providers for end-user applicat= ions.",
+ "= ;homepage": "https://github.com/OpenSC/pkcs11-helper",
+ "license": &q= uot;BSD-3-Clause OR GPL-2.0-only",
+ "dependencies": [
+ "openssl"
+ ]
}

To view, visit change 1518. To unsubscribe, or for help writi= ng mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7462869a473a7afe2e9ed9474c6= 9de0af96c011c
Gerrit-Change-Number: 1518
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: uddr <yura.uddr@...277...&= gt;
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --1W8C8HRpm/o=--