Building GnuPG packages and PKG_CHECK_MODULES

NIIBE Yutaka gniibe at fsij.org
Tue Mar 3 03:04:27 CET 2026


Hello, Sachin T,
(also sent to GnuPG development mailing list)

Thank you for your patches last year.

While maintaining the GnuPG packages, I found an issue in libgpg-error.

For GnuPG, we have kept the dependency smaller as possible.  This is
because GnuPG is an important package in an OS, in general, and smaller
dependency allows easy adoption in earlier phase of OS bootstrapping.

But now, (because of the change of z/OS support), for the maintainers,
it requires PKG_CHECK_MODULES macro from pkg-config.  I'm afraid it's a
bit larger change.  pkg-config is common these days, but not that
essential.


Last year, for z/OS support of libgpg-error, we added
EXTRA_LIBS_FOR_BUILD in libgpg-error/configure.ac.  IIUC, this is needed
for z/OS to link zoslib to the executable (this case, it's mkheader
command).

For libgcrypt, you asked similar.  I noticed that this would be
problematic (might result patches for many packages as well), and
suggested another approach of preparing a wrapper script for
CC_FOR_BUILD and use the script to build packages.

I wonder if the approach works well for your projects.  If it works
well, is it possible to consider removal of EXTRA_LIBS_FOR_BUILD in
libgpg-error/configure.ac ?

Thank you in advance for your time,
-- 



More information about the Gnupg-devel mailing list