commit:     bedb7aadc38a02614cf77daa3cf8ca22de6cc7ba
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed Dec 10 13:38:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 12 02:01:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bedb7aad

net-analyzer/wireshark: fix the pkcs11 patch

While upstreaming our pkcs11 flag patch I was alerted to:

CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line
    /tmp/wireshark/CMakeLists.txt:1590 (if)
  closes on the line
    /tmp/wireshark/CMakeLists.txt:1601 (endif)
  with mis-matching arguments.

and indeed: the ENABLE_PKCS11 block is not closed correctly.

Closes: https://bugs.gentoo.org/967060
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/44977
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/wireshark/files/4.6.2-gnutls-pkcs11.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/wireshark/files/4.6.2-gnutls-pkcs11.patch 
b/net-analyzer/wireshark/files/4.6.2-gnutls-pkcs11.patch
index dd01014f2570..262907e42e48 100644
--- a/net-analyzer/wireshark/files/4.6.2-gnutls-pkcs11.patch
+++ b/net-analyzer/wireshark/files/4.6.2-gnutls-pkcs11.patch
@@ -28,7 +28,7 @@ diff -rup wireshark-4.6.2/CMakeLists.txt 
wireshark-4.6.2-pkcs11/CMakeLists.txt
 +              set(CMAKE_REQUIRED_LIBRARIES ${GNUTLS_LIBRARIES})
 +              check_symbol_exists(gnutls_pkcs11_obj_list_import_url4 
gnutls/pkcs11.h HAVE_GNUTLS_PKCS11)
 +              cmake_pop_check_state()
-+      endif (PKCS11)
++      endif (ENABLE_PKCS11)
  endif()
  
  if (QT_FOUND)

Reply via email to