[PATCH Libgpg-error] gpg-error.m4: support pkg-config

Alon Bar-Lev alon.barlev at gmail.com
Wed Oct 31 01:57:40 CET 2018


On Wed, Oct 31, 2018 at 1:30 AM NIIBE Yutaka <gniibe at fsij.org> wrote:
>
> Alon Bar-Lev <alon.barlev at gmail.com> wrote:
> > I will appreciate if we can keep this thread alive to help us improve
> > the usability of the build system.
>
> Not directly related to your purpose of introducing pkg-config, but
> since it is strongly related, let me explain my work these days.
>
> FWIW, I pushed my effort to offer .pc files by GnuPG libraries (npth,
> libgpg-error, libgcrypt, libassuan, libksba, and ntbtls), and
> to enable gpgrt-config handle .pc file.
>
> Now, GnuPG master can be cross built with no SYSROOT nor --with-*-prefix
> (given libraries of master installed), for major cases like Debian
> multiarch (e.g., i686-linux-gnu on x86_64-linux-gnu), for Windows, and
> possibly for Gentoo/Fedora/Arch -style multilib.  I mean, just configure
> with --host=* (and --libdir=*) option.
>
> My focus for this change is for GnuPG build.  There is no change for
> GnuPG requirements.
>
> From my viewpoint, it will be a kind of side effect when those libraries
> can be used by pkg-config.

Hi,

Thanks for the description.

However, this is not answering the concern raised in this thread, nor
this pkg-config support will be usable for the main consumer of gnupg
packages which are the gnupg project.

The build is broken as I described, exposing pkg-config to other
packages will not solve the issues of the gnupg component.

Please go over the last message and see that even if you want to use
config scripts these scripts should be prefixed by $HOST, should be
installed outside of $SYSROOT and be found by AC_TOOL_*.

I would like to understand why a simple mode of gnupg packages to
leverage the work you are doing of exposing pkg-config file should not
be applied. The patch I've created is a trivial patch that is enabled
only when user explicitly enable pkg-config support, this will solve
all the current issues of the build system without having to fix them
for these users who care (downstream maintainers, cross-compile
developers).

This thread is about modifying the build so that it will have an
option to use pkg-config instead of config scripts if downstream
maintainer chooses to.

Regards,
Alon



More information about the Gnupg-devel mailing list