[gnutls-devel] GnuTLS | tests: Find p11-kit module directory via pkg-config. (!1913)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sat Dec 28 06:48:25 CET 2024
Maxim Cournoyer commented on a discussion on tests/p11-kit-load.sh: https://gitlab.com/gnutls/gnutls/-/merge_requests/1913#note_2275893904
> PIN=1234
> PUK=1234
>
> -for lib in ${libdir} ${libdir}/pkcs11 /usr/lib64/pkcs11/ /usr/lib/pkcs11/ /usr/lib/x86_64-linux-gnu/pkcs11/;do
> +P11_MODULE_PATH=$(${PKG_CONFIG} p11-kit-1 --variable=p11_module_path)
> +
> +for lib in "${P11_MODULE_PATH}" ${libdir} ${libdir}/pkcs11 /usr/lib64/pkcs11/ /usr/lib/pkcs11/ /usr/lib/x86_64-linux-gnu/pkcs11/;do
I'm not sure if there's a system where libdir could contain spaces or other whitespaces; perhaps Windows? I guess it should be quoted to guard against unforeseen cases which may be useful to someone.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1913#note_2275893904
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20241228/519456c8/attachment.html>
More information about the Gnutls-devel
mailing list