From: "flichtenheld (Code Review)" Date: Fri, 21 Jul 2023 13:55:40 +0000 References: Reply-To: frank@...2641..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="6iX74gBrAmY="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[release/2.6]: vcpkg-ports/pkcs11-helper: Backport MinGW series from master to relea... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel --6iX74gBrAmY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable flichtenheld has uploaded this change for review. ( http://gerrit.openvpn.n= et/c/openvpn/+/311?usp=3Demail ) Change subject: vcpkg-ports/pkcs11-helper: Backport MinGW series from maste= r to release/2.6 ...................................................................... vcpkg-ports/pkcs11-helper: Backport MinGW series from master to release/2.6 Contains the following commits: - Make compatible with mingw build (commit 17746e53f65249b42017256056c5415099df288d) - Convert CONTROL to vcpkg.json (commit a2160d3e42a1eff59aee3d984fd3354907f4379f) - reference upstream PRs in patches (commit 9577ffe92f033d8452cff0a3dbdfdc943655c5b8) - rename patches to make file names shorter (commit 0c25a5462e945f537d1836b47a5f147a2132875c) Change-Id: Ie61fed8758e44576939a8bb0a04bc95245a3ce18 Signed-off-by: Frank Lichtenheld --- M .github/workflows/build.yaml D contrib/vcpkg-ports/pkcs11-helper/CONTROL A contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch R contrib/vcpkg-ports/pkcs11-helper/config-w32-vc.h.in-indicate-OpenSSL.pat= ch R contrib/vcpkg-ports/pkcs11-helper/nmake-compatibility-with-vcpkg-nmake.pa= tch M contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch M contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.= patch M contrib/vcpkg-ports/pkcs11-helper/portfile.cmake A contrib/vcpkg-ports/pkcs11-helper/vcpkg.json A contrib/vcpkg-triplets/x64-mingw-ovpn.cmake A contrib/vcpkg-triplets/x86-mingw-ovpn.cmake 11 files changed, 104 insertions(+), 13 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/11/311/1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4766efd..8a80c67 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -441,6 +441,7 @@ uses: lukka/run-vcpkg@...2637... with: vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6485efc63010' + vcpkgJsonGlob: '**/openvpn/vcpkg.json' appendedCacheKey: '${{matrix.triplet}}' =20 - name: Run MSBuild consuming vcpkg.json diff --git a/contrib/vcpkg-ports/pkcs11-helper/CONTROL b/contrib/vcpkg-port= s/pkcs11-helper/CONTROL deleted file mode 100644 index 1ead697..0000000 --- a/contrib/vcpkg-ports/pkcs11-helper/CONTROL +++ /dev/null @@ -1,4 +0,0 @@ -Source: pkcs11-helper -Version: 1.29-1 -Homepage: https://github.com/OpenSC/pkcs11-helper -Description: pkcs11-helper is a library that simplifies the interaction wi= th PKCS#11 providers for end-user applications. diff --git a/contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-share= d.patch b/contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.p= atch new file mode 100644 index 0000000..16fa704 --- /dev/null +++ b/contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch @@ -0,0 +1,48 @@ +From 7171396a151a2edb3474c7a321b7ae4ff7e171fc Mon Sep 17 00:00:00 2001 +From: Frank Lichtenheld +Date: Wed, 29 Mar 2023 12:44:44 +0200 +Subject: [PATCH] Allow the build to succeed if configured with + --disable-shared + +Do not try to install a file that does not exist. + +Signed-off-by: Frank Lichtenheld +--- + configure.ac | 1 + + lib/Makefile.am | 2 ++ + 2 files changed, 3 insertions(+) + +upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/62 + +diff --git a/configure.ac b/configure.ac +index a7e9760..f154ae3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -581,6 +581,7 @@ AC_SUBST([LIBPKCS11_HELPER_LT_AGE]) + AC_SUBST([LIBPKCS11_HELPER_LT_OLDEST]) + AC_SUBST([WIN_LIBPREFIX]) + AC_SUBST([PKCS11H_FEATURES]) ++AM_CONDITIONAL([ENABLE_SHARED], [test "${enable_shared}" =3D "yes" ]) + AM_CONDITIONAL([WIN32], [test "${WIN32}" =3D "yes"]) + AM_CONDITIONAL([CYGWIN], [test "${CYGWIN}" =3D "yes"]) + AM_CONDITIONAL([ENABLE_DOC], [test "${enable_doc}" =3D "yes"]) +diff --git a/lib/Makefile.am b/lib/Makefile.am +index 31b928f..3cba32f 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -128,10 +128,12 @@ if ENABLE_PKCS11H_TOKEN + endif + + if WIN32 ++if ENABLE_SHARED + mylibdir=3D$(libdir) + mylib_DATA=3D.libs/@WIN_LIBPREFIX@...2727...@LIBPKCS11_HELPER_LT_OLDEST@...220...= ..2728... + .libs/@WIN_LIBPREFIX@...2727...@LIBPKCS11_HELPER_LT_OLDEST@...2728...: li= bpkcs11-helper.la + endif ++endif + + RCCOMPILE =3D $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) +-- +2.34.1 + diff --git a/contrib/vcpkg-ports/pkcs11-helper/0002-config-w32-vc.h.in-indi= cate-OpenSSL.patch b/contrib/vcpkg-ports/pkcs11-helper/config-w32-vc.h.in-i= ndicate-OpenSSL.patch similarity index 100% rename from contrib/vcpkg-ports/pkcs11-helper/0002-config-w32-vc.h.in-indic= ate-OpenSSL.patch rename to contrib/vcpkg-ports/pkcs11-helper/config-w32-vc.h.in-indicate-Ope= nSSL.patch diff --git a/contrib/vcpkg-ports/pkcs11-helper/0001-nmake-compatibility-wit= h-vcpkg-nmake.patch b/contrib/vcpkg-ports/pkcs11-helper/nmake-compatibility= -with-vcpkg-nmake.patch similarity index 100% rename from contrib/vcpkg-ports/pkcs11-helper/0001-nmake-compatibility-with= -vcpkg-nmake.patch rename to contrib/vcpkg-ports/pkcs11-helper/nmake-compatibility-with-vcpkg-= nmake.patch diff --git a/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.pa= tch b/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch index 84fba08..56e3486 100644 --- a/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch +++ b/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch @@ -1,3 +1,5 @@ +upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/4 + commit 90590b02085edc3830bdfe0942a46c4e7bf3f1ab (HEAD -> master) Author: David Woodhouse Date: Thu Apr 30 14:58:24 2015 +0100 diff --git a/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_lo= ader_flags.patch b/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dyna= mic_loader_flags.patch index 325dea8..6d67458 100644 --- a/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_fl= ags.patch +++ b/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_fl= ags.patch @@ -11,6 +11,8 @@ lib/pkcs11h-core.c | 13 +++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) +upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/59 + diff --git a/include/pkcs11-helper-1.0/pkcs11h-core.h b/include/pkcs11-hel= per-1.0/pkcs11h-core.h index 9028c277..56f87718 100644 --- a/include/pkcs11-helper-1.0/pkcs11h-core.h diff --git a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake b/contrib/vcp= kg-ports/pkcs11-helper/portfile.cmake index 1c6ceda..47919bc 100644 --- a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake +++ b/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake @@ -11,26 +11,45 @@ ARCHIVE ${ARCHIVE} REF ${VERSION} PATCHES - 0001-nmake-compatibility-with-vcpkg-nmake.patch - 0002-config-w32-vc.h.in-indicate-OpenSSL.patch + nmake-compatibility-with-vcpkg-nmake.patch + config-w32-vc.h.in-indicate-OpenSSL.patch + Fix-build-with-disable-shared.patch pkcs11-helper-001-RFC7512.patch pkcs11-helper-002-dynamic_loader_flags.patch ) -vcpkg_build_nmake( +if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) + vcpkg_build_nmake( SOURCE_PATH ${SOURCE_PATH} PROJECT_SUBPATH lib PROJECT_NAME Makefile.w32-vc OPTIONS OPENSSL=3D1 OPENSSL_HOME=3D${CURRENT_PACKAGES_DIR}/../openssl_${TARGET_TRIPLET} -) + ) -file(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURREN= T_PACKAGES_DIR}/include/) -file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/pkcs11-he= lper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) -file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/pkcs11-he= lper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) + file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/pkcs11-= helper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) + file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/pkcs11-= helper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) -file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/libpkcs11= -helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin) -file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/libpkcs11= -helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) + file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/libpkcs= 11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin) + file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/libpkcs= 11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) + + file(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURR= ENT_PACKAGES_DIR}/include/) + +else() + find_program(man_to_html man2html REQUIRED) + + vcpkg_configure_make( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS --disable-crypto-engine-gnutls --disable-crypto-engine-nss + --disable-crypto-engine-polarssl --disable-crypto-engine-mbedtls + ) + vcpkg_install_make() + vcpkg_fixup_pkgconfig() + + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +endif() + +vcpkg_copy_pdbs() file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/sh= are/${PORT} RENAME copyright) diff --git a/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json b/contrib/vcpkg-p= orts/pkcs11-helper/vcpkg.json new file mode 100644 index 0000000..12f918b --- /dev/null +++ b/contrib/vcpkg-ports/pkcs11-helper/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "pkcs11-helper", + "version": "1.29.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" +} diff --git a/contrib/vcpkg-triplets/x64-mingw-ovpn.cmake b/contrib/vcpkg-tr= iplets/x64-mingw-ovpn.cmake new file mode 100644 index 0000000..3676cdb --- /dev/null +++ b/contrib/vcpkg-triplets/x64-mingw-ovpn.cmake @@ -0,0 +1,8 @@ +set(VCPKG_TARGET_ARCHITECTURE x64) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) +set(VCPKG_ENV_PASSTHROUGH PATH) + +set(VCPKG_CMAKE_SYSTEM_NAME MinGW) + +set(VCPKG_MAKE_BUILD_TRIPLET --host=3Dx86_64-w64-mingw32) diff --git a/contrib/vcpkg-triplets/x86-mingw-ovpn.cmake b/contrib/vcpkg-tr= iplets/x86-mingw-ovpn.cmake new file mode 100644 index 0000000..9e65f67 --- /dev/null +++ b/contrib/vcpkg-triplets/x86-mingw-ovpn.cmake @@ -0,0 +1,8 @@ +set(VCPKG_TARGET_ARCHITECTURE x86) +set(VCPKG_CRT_LINKAGE dynamic) +set(VCPKG_LIBRARY_LINKAGE static) +set(VCPKG_ENV_PASSTHROUGH PATH) + +set(VCPKG_CMAKE_SYSTEM_NAME MinGW) + +set(VCPKG_MAKE_BUILD_TRIPLET --host=3Di686-w64-mingw32) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/311?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: Ie61fed8758e44576939a8bb0a04bc95245a3ce18 Gerrit-Change-Number: 311 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newchange --6iX74gBrAmY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

flichtenheld has uploaded this change for review.

View Cha= nge

vcpkg-ports/pkcs11-helper: Backport MinGW series from master to rel=
ease/2.6

Contains the following commits:
- Make compatible with m= ingw build
(commit 17746e53f65249b42017256056c5415099df288d)
- Conv= ert CONTROL to vcpkg.json
(commit a2160d3e42a1eff59aee3d984fd3354907f4= 379f)
- reference upstream PRs in patches
(commit 9577ffe92f033d845= 2cff0a3dbdfdc943655c5b8)
- rename patches to make file names shorter
= (commit 0c25a5462e945f537d1836b47a5f147a2132875c)

Change-Id: Ie61f= ed8758e44576939a8bb0a04bc95245a3ce18
Signed-off-by: Frank Lichtenheld &l= t;frank@...2641...>
---
M .github/workflows/build.yaml
D contri= b/vcpkg-ports/pkcs11-helper/CONTROL
A contrib/vcpkg-ports/pkcs11-helper/= Fix-build-with-disable-shared.patch
R contrib/vcpkg-ports/pkcs11-helper/= config-w32-vc.h.in-indicate-OpenSSL.patch
R contrib/vcpkg-ports/pkcs11-h= elper/nmake-compatibility-with-vcpkg-nmake.patch
M contrib/vcpkg-ports/p= kcs11-helper/pkcs11-helper-001-RFC7512.patch
M contrib/vcpkg-ports/pkcs1= 1-helper/pkcs11-helper-002-dynamic_loader_flags.patch
M contrib/vcpkg-po= rts/pkcs11-helper/portfile.cmake
A contrib/vcpkg-ports/pkcs11-helper/vcp= kg.json
A contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
A contrib/vcpkg= -triplets/x86-mingw-ovpn.cmake
11 files changed, 104 insertions(+), 13 d= eletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/=
changes/11/311/1
diff --git a/.github/workflows/build.yaml b/.githu=
b/workflows/build.yaml
index 4766efd..8a80c67 100644=
--- a/.github/workflows/build.yaml
+++ b/.github/= workflows/build.yaml
@@ -441,6 +441,7 @@
= uses: lukka/run-vcpkg@...2637...
with:
vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6= 485efc63010'
+ = vcpkgJsonGlob: '**/openvpn/vcpkg.json'
= appendedCacheKey: '${{matrix.triplet}}'

- name: Run MSBuild consuming vcpkg.json
diff --git a/contrib/vcpkg-ports/pkcs11-helper/CONTROL b/contrib/vcpkg-po= rts/pkcs11-helper/CONTROL

deleted file mode 100644index 1ead697..0000000
--- a/contrib/vcpkg-ports/pk= cs11-helper/CONTROL
+++ /dev/null
@@ -1,4 += 0,0 @@
-Source: pkcs11-= helper
-Version: 1.29-1=
-Homepage: https://git= hub.com/OpenSC/pkcs11-helper
-Description: pkcs11-helper is a library that simplifies the interact= ion with PKCS#11 providers for end-user applications.
diff = --git a/contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.pat= ch b/contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch<= /span>
new file mode 100644
index 0000000..16fa704=
--- /dev/null
+++ b/contrib/vcpkg-ports/pk= cs11-helper/Fix-build-with-disable-shared.patch
@@ -0,0 +1,= 48 @@
+From 7171396a1= 51a2edb3474c7a321b7ae4ff7e171fc Mon Sep 17 00:00:00 2001
+From: Frank Lichtenheld <frank@...1665...= 641...>
+Date: Wed= , 29 Mar 2023 12:44:44 +0200
+Subject: [PATCH] Allow the build to succeed if configured with
+ --disable-shared
+
+Do not try to install a file that does not e= xist.
+
+Signed-off-by: Frank Lichtenheld = <frank@...2641...>

+---
+ configure.= ac | 1 +
+ lib/Mak= efile.am | 2 ++
+ 2 f= iles changed, 3 insertions(+)
+
+upstream = PR: https://github.com/OpenSC/pkcs11-helper/pull/62
+
+diff --git a/configure.ac b/configure.ac
+index a7e9760..f154ae3 100644+--- a/configure.ac
= ++++ b/configure.ac
+@@ -581,6 +581,7 @@ AC_SUBST([LIBPKCS11_HELPER_LT_AGE])
+ AC_SUBST([LIBPKCS11_HELPER_LT_OL= DEST])

+ AC_SUBST([WI= N_LIBPREFIX])
+ AC_SU= BST([PKCS11H_FEATURES])
++AM_CONDITIONAL([ENABLE_SHARED], [test "${enable_shared}" =3D= "yes" ])
+= AM_CONDITIONAL([WIN32], [test "${WIN32}" =3D "yes"])
+ AM_CONDITIONAL([CYGW= IN], [test "${CYGWIN}" =3D "yes"])
+ AM_CONDITIONAL([ENABLE_DOC], [test &quo= t;${enable_doc}" =3D "yes"])
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index 31b928f..3cba32f 1= 00644
+--- a/lib/Make= file.am
++++ b/lib/Makefile.am
+@@ -128,10 +128,12 @@ if ENABLE_PKCS11H_TOKEN
+ endif
+

+ if WIN32
++if ENABLE_SHARED
+ mylibdir=3D$(libdir)
+ mylib_DATA=3D.libs/@WIN_LIBPREFIX@...2727...@LIBPKCS11_HELPER_= LT_OLDEST@...2728...
= + .libs/@WIN_LIBPREFIX@...2727...@LIBPKCS11_HELPER_LT_OLDEST@...2728...: li= bpkcs11-helper.la
+ e= ndif
++endif+
+ RCCOMPILE =3D $(RC) $(DEFS) $(DEFAULT_INCLUDE= S) $(INCLUDES) \
+ $= (AM_CPPFLAGS) $(CPPFLAGS)
+--
+2.34.1
+
diff -= -git a/contrib/vcpkg-ports/pkcs11-helper/0002-config-w32-vc.h.in-indicate-O= penSSL.patch b/contrib/vcpkg-ports/pkcs11-helper/config-w32-vc.h.in-indicat= e-OpenSSL.patch
similarity index 100%
renam= e from contrib/vcpkg-ports/pkcs11-helper/0002-config-w32-vc.h.in-indicate-O= penSSL.patch
rename to contrib/vcpkg-ports/pkcs11-helper/co= nfig-w32-vc.h.in-indicate-OpenSSL.patch
diff --git a/contri= b/vcpkg-ports/pkcs11-helper/0001-nmake-compatibility-with-vcpkg-nmake.patch= b/contrib/vcpkg-ports/pkcs11-helper/nmake-compatibility-with-vcpkg-nmake.p= atch
similarity index 100%
rename from cont= rib/vcpkg-ports/pkcs11-helper/0001-nmake-compatibility-with-vcpkg-nmake.pat= ch
rename to contrib/vcpkg-ports/pkcs11-helper/nmake-compat= ibility-with-vcpkg-nmake.patch
diff --git a/contrib/vcpkg-p= orts/pkcs11-helper/pkcs11-helper-001-RFC7512.patch b/contrib/vcpkg-ports/pk= cs11-helper/pkcs11-helper-001-RFC7512.patch
index 84fba08..= 56e3486 100644
--- a/contrib/vcpkg-ports/pkcs11-helper/pkcs= 11-helper-001-RFC7512.patch
+++ b/contrib/vcpkg-ports/pkcs1= 1-helper/pkcs11-helper-001-RFC7512.patch
@@ -1,3 +1,5 @@
+upstream PR: https://g= ithub.com/OpenSC/pkcs11-helper/pull/4
+
commit 90590b02085edc3830bdfe0942a46c4e= 7bf3f1ab (HEAD -> master)
Author: David Woodhouse <D= avid.Woodhouse@...753...>
Date: Thu Apr 30 14:58:24 2= 015 +0100
diff --git a/contrib/vcpkg-ports/pkcs11-helper/pk= cs11-helper-002-dynamic_loader_flags.patch b/contrib/vcpkg-ports/pkcs11-hel= per/pkcs11-helper-002-dynamic_loader_flags.patch
index 325d= ea8..6d67458 100644
--- a/contrib/vcpkg-ports/pkcs11-helper= /pkcs11-helper-002-dynamic_loader_flags.patch
+++ b/contrib= /vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch
@@ -11,6 +11,8 @@
lib/pkcs11h-core.c = | 13 +++++++++++--
3 files changed, 23 ins= ertions(+), 3 deletions(-)

+upstream PR: https://github.com/OpenSC/pkcs11-help= er/pull/59
+ diff --git a/include/pkcs11-helper-1.0/pkcs11h-core.h b/include/pk= cs11-helper-1.0/pkcs11h-core.h
index 9028c277..56f87718 10= 0644
--- a/include/pkcs11-helper-1.0/pkcs11h-core.h=
diff --git a/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake b/c= ontrib/vcpkg-ports/pkcs11-helper/portfile.cmake
index 1c6ce= da..47919bc 100644
--- a/contrib/vcpkg-ports/pkcs11-helper/= portfile.cmake
+++ b/contrib/vcpkg-ports/pkcs11-helper/port= file.cmake
@@ -11,26 +11,45 @@
ARCHIVE= ${ARCHIVE}
REF ${VERSION}
PATCHE= S
- 0001-nmake-c= ompatibility-with-vcpkg-nmake.patch
- 0002-config-w32-vc.h.in-indicate-OpenSSL.patch=
+ nmake-compatibilit= y-with-vcpkg-nmake.patch
+ config-w32-vc.h.in-indicate-OpenSSL.patch
+ Fix-build-with-disable-shared.pa= tch
pkcs11-helper-001-RFC7512.patch
pkcs11-helper-002-dynamic_loader_flags.patch

)<= /span>

-vcpk= g_build_nmake(
+if(VC= PKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
+ vcpkg_build_nmake(
= SOURCE_PATH ${SOURCE_PATH}
PROJECT_SUBPATH lib=
PROJECT_NAME Makefile.w32-vc
OPTIONS
OPENSSL=3D1
OPENSSL_HOME=3D= ${CURRENT_PACKAGES_DIR}/../openssl_${TARGET_TRIPLET}
-)
+ )

-file(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINA= TION ${CURRENT_PACKAGES_DIR}/include/)
-file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-r= el/lib/pkcs11-helper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
-file(INSTALL ${CURRENT_BUIL= DTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/pkcs11-helper.dll.lib DESTINATION ${C= URRENT_PACKAGES_DIR}/debug/lib)
+ file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/= lib/pkcs11-helper.dll.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)+ file(INSTALL ${CURRENT_BUI= LDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/pkcs11-helper.dll.lib DESTINATION ${= CURRENT_PACKAGES_DIR}/debug/lib)

-file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGE= T_TRIPLET}-rel/lib/libpkcs11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DI= R}/bin)
-file(INSTALL $= {CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/libpkcs11-helper-1.dll D= ESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
+ file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET= _TRIPLET}-rel/lib/libpkcs11-helper-1.dll DESTINATION ${CURRENT_PACKAGES_DIR= }/bin)
+ file(INSTAL= L ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/libpkcs11-helper-1.dl= l DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
+
+ file(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATI= ON ${CURRENT_PACKAGES_DIR}/include/)
+
+el= se()
+ find_program(= man_to_html man2html REQUIRED)
+
+ vcpkg_= configure_make(
+ = SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS --disable-crypto-engine-gnutls --disable-crypto-engine-n= ss
+ --disable-cry= pto-engine-polarssl --disable-crypto-engine-mbedtls
+ )
+ vcpkg_install_make()
+ vcpkg_fixup_pkgconfig()
+
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share&q= uot;)
+endif()=
+
+vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_= DIR}/share/${PORT} RENAME copyright)
diff --git a/contrib/v= cpkg-ports/pkcs11-helper/vcpkg.json b/contrib/vcpkg-ports/pkcs11-helper/vcp= kg.json
new file mode 100644
index 0000000.= .12f918b
--- /dev/null
+++ b/contrib/vcpkg-= ports/pkcs11-helper/vcpkg.json
@@ -0,0 +1,7 @@
+{

+ "name": "pkcs11-helper",
+ "version&quo= t;: "1.29.0",
+ "description": "pkcs11-helper is a library that simp= lifies the interaction with PKCS#11 providers for end-user applications.&qu= ot;,
+ "homep= age": "https://github.com/OpenSC/pkcs11-helper",
<= span style=3D"color: hsl(120, 100%, 40%);">+ "license": "= BSD-3-Clause OR GPL-2.0-only"

+}
diff --git a/contrib/vcpkg-triplets/x64-mi= ngw-ovpn.cmake b/contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
new file mode 100644

index 0000000..3676cdb
--- /dev/null

+++ b/contrib/vcpkg-triplets/x64-mingw-ovp= n.cmake
@@ -0,0 +1,8 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)+set(VCPKG_LIBRARY_LINKAGE sta= tic)
+set(VCPKG_ENV_P= ASSTHROUGH PATH)
+
+set(VCPKG_CMAKE_SYSTEM= _NAME MinGW)
+=
+set(VCPKG_MAKE_BUILD_TRIPL= ET --host=3Dx86_64-w64-mingw32)
diff --git a/contrib/vcpkg-= triplets/x86-mingw-ovpn.cmake b/contrib/vcpkg-triplets/x86-mingw-ovpn.cmake=
new file mode 100644
index 0000000..9e65f6= 7
--- /dev/null
+++ b/contrib/vcpkg-triplet= s/x86-mingw-ovpn.cmake
@@ -0,0 +1,8 @@
+set(VCPKG_TARGET_ARCHITECTURE x86)
+set(VCPKG_CRT_LINKAGE dyn= amic)
+set(VCPKG_LIBR= ARY_LINKAGE static)
+= set(VCPKG_ENV_PASSTHROUGH PATH)
+
+set(VCP= KG_CMAKE_SYSTEM_NAME MinGW)
+
+set(VCPKG_M= AKE_BUILD_TRIPLET --host=3Di686-w64-mingw32)

To view, visit change 311. To unsubscribe, or for help writing mail filter= s, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: Ie61fed8758e44576939a8bb0a04= bc95245a3ce18
Gerrit-Change-Number: 311
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newchange
--6iX74gBrAmY=--