Skip to contentSkip to conversation

Cleanup the pkcs11-helper vcpkg port

PATCH In review Frank Lichtenheld 3 participants 11 messages Mar 31, 2023 – May 8, 2023

lore
Share & tools
lore
#0 lore raw

cover Cleanup the pkcs11-helper vcpkg port

The biggest change is that this allows to build this port with mingw, not just MSVC
(which will become important with my CMake patch that will include mingw vcpkg builds)

Some smaller cleanups as well.

Was reviewed by Lev in Gerrit at
https://gerrit.openvpn.net/q/topic:pkcs11-helper-vcpkg-mingw

Frank Lichtenheld (3):
vcpkg-ports/pkcs11-helper: Make compatible with mingw build vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

 .github/workflows/build.yaml                  |  1 +
 ...to-succeed-if-configured-with-disabl.patch | 48 +++++++++++++++++++
 contrib/vcpkg-ports/pkcs11-helper/CONTROL     |  4 --
 .../pkcs11-helper-001-RFC7512.patch           |  2 +
 ...cs11-helper-002-dynamic_loader_flags.patch |  2 +
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  | 33 ++++++++++---
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json  |  7 +++
 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake   |  8 ++++
 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake   |  8 ++++
 9 files changed, 102 insertions(+), 11 deletions(-)
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/CONTROL
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
 create mode 100644 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
 create mode 100644 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 vcpkg-ports/pkcs11-helper: Make compatible with mingw build

Annoyingly this requires custom vcpkg triplets because the mingw toolchain definition and the vcpkg_configure_make function use incompatible default triplets (-pc-mingw32 vs -w64-mingw32).

Change-Id I4e671938220e9bfd798f91819f34b6f8ceaa45f5
---
 ...to-succeed-if-configured-with-disabl.patch | 46 +++++++++++++++++++
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  | 33 ++++++++++---
 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake   |  8 ++++
 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake   |  8 ++++
 4 files changed, 88 insertions(+), 7 deletions(-)
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch
 create mode 100644 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
 create mode 100644 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake
contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch new file +46 -0
new file mode 100644
index 00000000..102be4ec
@@ -0,0 +1,46 @@
+From 7171396a151a2edb3474c7a321b7ae4ff7e171fc Mon Sep 17 00:00:00 2001
+From: Frank Lichtenheld <[email protected]...>
+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 <[email protected]...>
+---
+ configure.ac    | 1 +
+ lib/Makefile.am | 2 ++
+ 2 files changed, 3 insertions(+)
+
+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}" = "yes" ])
+ AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
+ AM_CONDITIONAL([CYGWIN], [test "${CYGWIN}" = "yes"])
+ AM_CONDITIONAL([ENABLE_DOC], [test "${enable_doc}" = "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=$(libdir)
+ mylib_DATA=.libs/@[email protected]...@[email protected]...
+ .libs/@[email protected]...@[email protected]...:	libpkcs11-helper.la
+ endif
++endif
+ 
+ RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ 	$(AM_CPPFLAGS) $(CPPFLAGS)
+-- 
+2.34.1
+
contrib/vcpkg-ports/pkcs11-helper/portfile.cmake +26 -7
index 1c6cedac..67e9a2bf 100644
@@ -13,24 +13,43 @@ vcpkg_extract_source_archive_ex(
     PATCHES
         0001-nmake-compatibility-with-vcpkg-nmake.patch
         0002-config-w32-vc.h.in-indicate-OpenSSL.patch
+        0001-Allow-the-build-to-succeed-if-configured-with-disabl.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=1
         OPENSSL_HOME=${CURRENT_PACKAGES_DIR}/../openssl_${TARGET_TRIPLET}
-)
+  )
+
+  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 ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURRENT_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(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
-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(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+endif()
 
-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)
+vcpkg_copy_pdbs()
 
 file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
contrib/vcpkg-triplets/x64-mingw-ovpn.cmake new file +8 -0
new file mode 100644
index 00000000..3676cdb0
@@ -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=x86_64-w64-mingw32)
contrib/vcpkg-triplets/x86-mingw-ovpn.cmake new file +8 -0
new file mode 100644
index 00000000..9e65f67f
@@ -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=i686-w64-mingw32)
Signature · 1 line
2.34.1
Acked-by on v1 1/3
#2 lore raw

Re: [Openvpn-devel] [PATCH 1/3] vcpkg-ports/pkcs11-helper: Make compatible with mingw build

Reviewed in Gerrit.

pe 31. maalisk. 2023 klo 18.43 Frank Lichtenheld
([email protected]...) kirjoitti:

Quoted 162 lines

Annoyingly this requires custom vcpkg triplets because the mingw toolchain definition and the vcpkg_configure_make function use incompatible default triplets (-pc-mingw32 vs -w64-mingw32).

Change-Id I4e671938220e9bfd798f91819f34b6f8ceaa45f5
---
 ...to-succeed-if-configured-with-disabl.patch | 46 +++++++++++++++++++
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  | 33 ++++++++++---
 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake   |  8 ++++
 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake   |  8 ++++
 4 files changed, 88 insertions(+), 7 deletions(-)
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch
 create mode 100644 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
 create mode 100644 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake
contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch new file +46 -0
new file mode 100644
index 00000000..102be4ec
@@ -0,0 +1,46 @@
+From 7171396a151a2edb3474c7a321b7ae4ff7e171fc Mon Sep 17 00:00:00 2001
+From: Frank Lichtenheld <[email protected]...>
+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 <[email protected]...>
+---
+ configure.ac    | 1 +
+ lib/Makefile.am | 2 ++
+ 2 files changed, 3 insertions(+)
+
+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}" = "yes" ])
+ AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
+ AM_CONDITIONAL([CYGWIN], [test "${CYGWIN}" = "yes"])
+ AM_CONDITIONAL([ENABLE_DOC], [test "${enable_doc}" = "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=$(libdir)
+ mylib_DATA=.libs/@[email protected]...@[email protected]...
+ .libs/@[email protected]...@[email protected]...:      libpkcs11-helper.la
+ endif
++endif
+
+ RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS)
+--
+2.34.1
+
contrib/vcpkg-ports/pkcs11-helper/portfile.cmake +26 -7
index 1c6cedac..67e9a2bf 100644
@@ -13,24 +13,43 @@ vcpkg_extract_source_archive_ex(
     PATCHES
         0001-nmake-compatibility-with-vcpkg-nmake.patch
         0002-config-w32-vc.h.in-indicate-OpenSSL.patch
+        0001-Allow-the-build-to-succeed-if-configured-with-disabl.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=1
         OPENSSL_HOME=${CURRENT_PACKAGES_DIR}/../openssl_${TARGET_TRIPLET}
-)
+  )
+
+  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 ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURRENT_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(INSTALL ${SOURCE_PATH}/include/pkcs11-helper-1.0 DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
-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(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+endif()
 
-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)
+vcpkg_copy_pdbs()
 
 file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
contrib/vcpkg-triplets/x64-mingw-ovpn.cmake new file +8 -0
new file mode 100644
index 00000000..3676cdb0
@@ -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=x86_64-w64-mingw32)
contrib/vcpkg-triplets/x86-mingw-ovpn.cmake new file +8 -1
new file mode 100644
index 00000000..9e65f67f
@@ -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=i686-w64-mingw32)
--

2.34.1

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Signature · 1 line
-Lev
#3 lore raw

[Openvpn-devel] [PATCH applied] Re: vcpkg-ports/pkcs11-helper: Make compatible with mingw build

In reply to Frank Lichtenheld

I have only tested this by subjecting to a MinGW and a GHA build (to make sure I did not break the whitespace-broken patches on merge). Green!

Your patch has been applied to the master branch.

commit 17746e53f65249b42017256056c5415099df288d

Author: Frank Lichtenheld
Date:   Fri Mar 31 17:42:12 2023 +0200
     vcpkg-ports/pkcs11-helper: Make compatible with mingw build

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Lev Stipakov <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26572.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#4 lore raw

PATCH 2/3 vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json

In reply to Frank Lichtenheld

To be in line with current vcpkg packaging policies.

Change-Id Ifad0965a2b724b0b278783ba9c0ad5a82274445d
---
 .github/workflows/build.yaml                 | 1 +
 contrib/vcpkg-ports/pkcs11-helper/CONTROL    | 4 ----
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json | 7 +++++++
 3 files changed, 8 insertions(+), 4 deletions(-)
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/CONTROL
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
.github/workflows/build.yaml +1 -0
index 0f352dcd..0c16d379 100644
@@ -445,6 +445,7 @@ jobs:
         uses: lukka/[email protected]...
         with:
           vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6485efc63010'
+          vcpkgJsonGlob: '**/openvpn/vcpkg.json'
           appendedCacheKey: '${{matrix.triplet}}'
 
       - name: Run MSBuild consuming vcpkg.json
contrib/vcpkg-ports/pkcs11-helper/CONTROL deleted +0 -4
deleted file mode 100644
index 1ead697e..00000000
@@ -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 with PKCS#11 providers for end-user applications.
contrib/vcpkg-ports/pkcs11-helper/vcpkg.json new file +7 -0
new file mode 100644
index 00000000..12f918b7
@@ -0,0 +1,7 @@
+{
+    "name": "pkcs11-helper",
+    "version": "1.29.0",
+    "description": "pkcs11-helper is a library that simplifies the interaction with PKCS#11 providers for end-user applications.",
+    "homepage": "https://github.com/OpenSC/pkcs11-helper",
+    "license": "BSD-3-Clause OR GPL-2.0-only"
+}
Signature · 1 line
2.34.1
Acked-by on v1 2/3
#5 lore raw

Re: [Openvpn-devel] [PATCH 2/3] vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json

Reviewed in Gerrit.

pe 31. maalisk. 2023 klo 18.43 Frank Lichtenheld
([email protected]...) kirjoitti:

Quoted 57 lines

To be in line with current vcpkg packaging policies.

Change-Id Ifad0965a2b724b0b278783ba9c0ad5a82274445d
---
 .github/workflows/build.yaml                 | 1 +
 contrib/vcpkg-ports/pkcs11-helper/CONTROL    | 4 ----
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json | 7 +++++++
 3 files changed, 8 insertions(+), 4 deletions(-)
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/CONTROL
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
.github/workflows/build.yaml +1 -0
index 0f352dcd..0c16d379 100644
@@ -445,6 +445,7 @@ jobs:
         uses: lukka/[email protected]...
         with:
           vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6485efc63010'
+          vcpkgJsonGlob: '**/openvpn/vcpkg.json'
           appendedCacheKey: '${{matrix.triplet}}'
 
       - name: Run MSBuild consuming vcpkg.json
contrib/vcpkg-ports/pkcs11-helper/CONTROL deleted +0 -4
deleted file mode 100644
index 1ead697e..00000000
@@ -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 with PKCS#11 providers for end-user applications.
contrib/vcpkg-ports/pkcs11-helper/vcpkg.json new file +7 -1
new file mode 100644
index 00000000..12f918b7
@@ -0,0 +1,7 @@
+{
+    "name": "pkcs11-helper",
+    "version": "1.29.0",
+    "description": "pkcs11-helper is a library that simplifies the interaction with PKCS#11 providers for end-user applications.",
+    "homepage": "https://github.com/OpenSC/pkcs11-helper",
+    "license": "BSD-3-Clause OR GPL-2.0-only"
+}
--

2.34.1

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Signature · 1 line
-Lev
#6 lore raw

[Openvpn-devel] [PATCH applied] Re: vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json

In reply to Frank Lichtenheld

I have no idea what this does, but if Lev says it's The Way...

It doesn't contain code changes, and I have verified that it doesn't break MinGW or GH building, so fine with me.

Your patch has been applied to the master branch.

commit a2160d3e42a1eff59aee3d984fd3354907f4379f

Author: Frank Lichtenheld
Date:   Fri Mar 31 17:42:13 2023 +0200
     vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Lev Stipakov <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26571.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#7 lore raw

PATCH 3/3 vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

In reply to Frank Lichtenheld

So it is easier to check the merge status.

Change-Id Ia1f8a8d26d4752a7dda1a20521c59ded06bc7c52
---
 ...1-Allow-the-build-to-succeed-if-configured-with-disabl.patch | 2 ++
 .../vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch   | 2 ++
 .../pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch  | 2 ++
 3 files changed, 6 insertions(+)
contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch +2 -0
index 102be4ec..16fa7042 100644
@@ -12,6 +12,8 @@ Signed-off-by: Frank Lichtenheld <[email protected]...>
  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
contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch +2 -0
index 84fba080..56e3486e 100644
@@ -1,3 +1,5 @@
+upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/4
+
 commit 90590b02085edc3830bdfe0942a46c4e7bf3f1ab (HEAD -> master)
 Author: David Woodhouse <[email protected]...>
 Date:   Thu Apr 30 14:58:24 2015 +0100
contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch +2 -0
index 325dea8b..6d674581 100644
@@ -11,6 +11,8 @@ set original values as defaults, use verbatim (user-supplied) value
  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-helper-1.0/pkcs11h-core.h
 index 9028c277..56f87718 100644
 --- a/include/pkcs11-helper-1.0/pkcs11h-core.h
Signature · 1 line
2.34.1
Acked-by on v1 3/3
#8 lore raw

Re: [Openvpn-devel] [PATCH 3/3] vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

Reviewed in Gerrit.

pe 31. maalisk. 2023 klo 18.43 Frank Lichtenheld
([email protected]...) kirjoitti:

Quoted 56 lines

So it is easier to check the merge status.

Change-Id Ia1f8a8d26d4752a7dda1a20521c59ded06bc7c52
---
 ...1-Allow-the-build-to-succeed-if-configured-with-disabl.patch | 2 ++
 .../vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch   | 2 ++
 .../pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch  | 2 ++
 3 files changed, 6 insertions(+)
contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch +2 -0
index 102be4ec..16fa7042 100644
@@ -12,6 +12,8 @@ Signed-off-by: Frank Lichtenheld <[email protected]...>
  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
contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch +2 -0
index 84fba080..56e3486e 100644
@@ -1,3 +1,5 @@
+upstream PR: https://github.com/OpenSC/pkcs11-helper/pull/4
+
 commit 90590b02085edc3830bdfe0942a46c4e7bf3f1ab (HEAD -> master)
 Author: David Woodhouse <[email protected]...>
 Date:   Thu Apr 30 14:58:24 2015 +0100
contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch +2 -1
index 325dea8b..6d674581 100644
@@ -11,6 +11,8 @@ set original values as defaults, use verbatim (user-supplied) value
  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-helper-1.0/pkcs11h-core.h
 index 9028c277..56f87718 100644
 --- a/include/pkcs11-helper-1.0/pkcs11h-core.h
--

2.34.1

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Signature · 1 line
-Lev
#9 lore raw

[Openvpn-devel] [PATCH applied] Re: vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

In reply to Frank Lichtenheld

Looks reasonable and does not break any builds... :-)

Your patch has been applied to the master branch.

commit 9577ffe92f033d8452cff0a3dbdfdc943655c5b8

Author: Frank Lichtenheld
Date:   Fri Mar 31 17:42:14 2023 +0200
     vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Lev Stipakov <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26569.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

Acked-by on the v1 series
#10 lore raw
In reply to Frank Lichtenheld

Reviewed in Gerrit.

pe 31. maalisk. 2023 klo 18.43 Frank Lichtenheld
([email protected]...) kirjoitti:

Quoted 41 lines

The biggest change is that this allows to build this port with mingw, not just MSVC
(which will become important with my CMake patch that will include mingw vcpkg builds)

Some smaller cleanups as well.

Was reviewed by Lev in Gerrit at
https://gerrit.openvpn.net/q/topic:pkcs11-helper-vcpkg-mingw

Frank Lichtenheld (3):
vcpkg-ports/pkcs11-helper: Make compatible with mingw build vcpkg-ports/pkcs11-helper: Convert CONTROL to vcpkg.json vcpkg-ports/pkcs11-helper: reference upstream PRs in patches

 .github/workflows/build.yaml                  |  1 +
 ...to-succeed-if-configured-with-disabl.patch | 48 +++++++++++++++++++
 contrib/vcpkg-ports/pkcs11-helper/CONTROL     |  4 --
 .../pkcs11-helper-001-RFC7512.patch           |  2 +
 ...cs11-helper-002-dynamic_loader_flags.patch |  2 +
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  | 33 ++++++++++---
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json  |  7 +++
 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake   |  8 ++++
 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake   |  8 ++++
 9 files changed, 102 insertions(+), 11 deletions(-)
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/0001-Allow-the-build-to-succeed-if-configured-with-disabl.patch
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/CONTROL
 create mode 100644 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json
 create mode 100644 contrib/vcpkg-triplets/x64-mingw-ovpn.cmake
 create mode 100644 contrib/vcpkg-triplets/x86-mingw-ovpn.cmake

--
2.34.1

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Signature · 1 line
-Lev