After updating libgpg-error from 1.51 to 1.52 in pkgsrc, we had to fix many packages by adding -DGPGRT_ENABLE_ES_MACROS to their CFLAGS. The list so far:
libgcrypt 1.11.0
libxslt 1.1.42
libksba 1.6.7
gpgme 1.24.2
gmime 3.2.15
pinentry 1.3.1
libsecret 0.20.5
libgnome-keyring 3.12.0
Otherwise we would see errors like this:
In file included from /scratch/security/libsecret/work/.buildlink/include/gcrypt.h:31, from ../egg/egg-hkdf.c:29: /scratch/security/libsecret/work/.buildlink/include/gpg-error.h:1728:33: error: unknown type name 'estream_t' 1728 | estream_t stream, unsigned int flags); | ^~~~~~~~~ /scratch/security/libsecret/work/.buildlink/include/gpg-error.h:1731:51: error: unknown type name 'estream_t' 1731 | gpg_err_code_t gpgrt_nvc_write (gpgrt_nvc_t cont, estream_t stream); | ^~~~~~~~~
I didn't see this mentioned in the release notes, and I think it should have been mentioned, but I guess it's just a bug?