Skip to contentSkip to conversation

vcpkg-ports/pkcs11-helper: bump to version 1.30

PATCH In review Marc Becker 3 participants 3 messages Dec 4, 2023 – Dec 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vcpkg-ports/pkcs11-helper: bump to version 1.30

update metadata references for pkcs11-helper v1.30 remove local patches incorporated in new upstream

---
 .../Fix-build-with-disable-shared.patch       |  48 --------
 ...cs11-helper-002-dynamic_loader_flags.patch | 104 ------------------
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  |   6 +-
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json  |   2 +-
 4 files changed, 3 insertions(+), 157 deletions(-)
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch
contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch deleted +0 -48
deleted file mode 100644
index 16fa7042..00000000
@@ -1,48 +0,0 @@
-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(+)
-
-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}" = "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/pkcs11-helper-002-dynamic_loader_flags.patch deleted +0 -104

104 lines not on this page · raw message

contrib/vcpkg-ports/pkcs11-helper/portfile.cmake +2 -4
index f8da979e..db9a5ab8 100644
@@ -1,9 +1,9 @@
-set(VERSION 1.29.0)
+set(VERSION 1.30.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 c530f5a4b5826a02bfe787a1293a7595d5a0d6348daa16675bd10c6d6734b1f24a3cc73b5b89433cf1edf8815f8b7298fdfd1ed686f096bb5edfb425e9430eb2
+    SHA512 19fba76e41210cc17f9efa4501d0214d4a5c777ab7b2671888fd280b150bae4a6b190c7f47fb783015f9aa40d409fd6087264e531d6f28d0bed4293dcbf8bdd5
 )
 
 vcpkg_extract_source_archive_ex(
@@ -13,9 +13,7 @@ vcpkg_extract_source_archive_ex(
     PATCHES
         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
 )
 
 if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
contrib/vcpkg-ports/pkcs11-helper/vcpkg.json +1 -1
index 12f918b7..521f7547 100644
@@ -1,6 +1,6 @@
 {
     "name": "pkcs11-helper",
-    "version": "1.29.0",
+    "version": "1.30.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.43.0.windows.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Marc Becker via Openvpn-devel

update metadata references for pkcs11-helper v1.30 remove local patches incorporated in new upstream

---
 .../Fix-build-with-disable-shared.patch       |  48 --------
 ...cs11-helper-002-dynamic_loader_flags.patch | 104 ------------------
 .../vcpkg-ports/pkcs11-helper/portfile.cmake  |   6 +-
 contrib/vcpkg-ports/pkcs11-helper/vcpkg.json  |   2 +-
 4 files changed, 3 insertions(+), 157 deletions(-)
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/Fix-build-with-disable-shared.patch
 delete mode 100644 contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-002-dynamic_loader_flags.patch

Changes look reasonable. Build succeeds.

Signature · 1 line
  Frank Lichtenheld
#2 lore raw
In reply to Marc Becker

Your patch has been applied to the master and release/2.6 branch (less local patches and up-to-date build requirements).

Test built 2.6 with GHA

I was wondering why there is no "Makefile.in" change to un-bundle these two patches to "make dist" - but that's because we just bundle everything in contrib/ without explicitly listing files. "make dist" still works.

commit a78b0e45dff3a0f0332de47c55aadd76c5919370 (master) commit 77b2e940fd3980f9dbfa62f84fb135ea2f1effaf (release/2.6)

Author: Marc Becker
Date:   Mon Dec 4 16:33:45 2023 +0100
     vcpkg-ports/pkcs11-helper: bump to version 1.30

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

--
kind regards,

Gert Doering