Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: use pkg-config with newer gpgme and gpg-error #2789

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

lucab
Copy link
Member

@lucab lucab commented Nov 24, 2022

This tweaks autoconf logic in order to use pkg-config for gpgme and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and gpg-error started shipping a .pc file. Thus on recent distributions it is possible to directly use pkg-config for both. On older environments, the legacy logic is kept in place.

@dbnicholson
Copy link
Member

I didn't look closely, but I agree with this in principle. There's at least one open issue about this. I can take a closer look after the US holiday if no one gets to it earlier.

@lucab
Copy link
Member Author

lucab commented Nov 24, 2022

This is meant to fix the recent CI failure on Debian testing, which I think is due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023601.

@cgwalters
Copy link
Member

One nit from maint.mk which I'm honestly tempted to drop given how nit-picky it is:

[2022-11-28T16:55:09.982Z] maint.mk: use "test C1 && test C2", not "test C1 -a C2"; use "test C1 || test C2", not "test C1 -o C2"

This tweaks autoconf logic in order to use pkg-config for gpgme
and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and
gpg-error started shipping a .pc file. Thus on recent distributions
it is possible to directly use pkg-config for both. On older
environments, the legacy logic is kept in place.
This silences a warning when building the project with `--with-gpme=no`.
@cgwalters cgwalters merged commit 1fb9404 into ostreedev:main Nov 29, 2022
@lucab lucab deleted the ups/autoconf-gpg-libs branch November 29, 2022 14:23
raspbian-autopush pushed a commit to raspbian-packages/ostree that referenced this pull request Dec 13, 2022
This tweaks autoconf logic in order to use pkg-config for gpgme
and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and
gpg-error started shipping a .pc file. Thus on recent distributions
it is possible to directly use pkg-config for both. On older
environments, the legacy logic is kept in place.

Forwarded: ostreedev/ostree#2789

Gbp-Pq: Name configure-use-pkg-config-with-newer-gpgme-and-gpg-error.patch
raspbian-autopush pushed a commit to raspbian-packages/ostree that referenced this pull request Dec 13, 2022
This tweaks autoconf logic in order to use pkg-config for gpgme
and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and
gpg-error started shipping a .pc file. Thus on recent distributions
it is possible to directly use pkg-config for both. On older
environments, the legacy logic is kept in place.

Forwarded: ostreedev/ostree#2789

Gbp-Pq: Name configure-use-pkg-config-with-newer-gpgme-and-gpg-error.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants