Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1231939 > unrolled thread
| Started by | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| First post | 2025-02-06 00:50 +0100 |
| Last post | 2025-02-06 02:30 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1095260: libgpg-error-dev: can't find gpgme.pc when PKG_CONFIG_PATH is set Vincent Lefevre <vincent@vinc17.net> - 2025-02-06 00:50 +0100
Bug#1095260: libgpg-error-dev: can't find gpgme.pc when PKG_CONFIG_PATH is set Vincent Lefevre <vincent@vinc17.net> - 2025-02-06 01:20 +0100
Bug#1095260: [pkg-gnupg-maint] Bug#1095260: libgpg-error-dev: can't find gpgme.pc when PKG_CONFIG_PATH is set NIIBE Yutaka <gniibe@fsij.org> - 2025-02-06 02:30 +0100
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2025-02-06 00:50 +0100 |
| Subject | Bug#1095260: libgpg-error-dev: can't find gpgme.pc when PKG_CONFIG_PATH is set |
| Message-ID | <KcXjz-eHsr-1@gated-at.bofh.it> |
Package: libgpg-error-dev Version: 1.51-3 Severity: important When the PKG_CONFIG_PATH environment variable is set, "gpgrt-config --modversion gpgme" fails: cventin:~> echo $PKG_CONFIG_PATH /home/vlefevre/opt/tcc/lib/pkgconfig cventin:~> gpgrt-config --modversion gpgme Can't find gpgme.pc cventin:~[1]> No problems with pkg-config: cventin:~> pkg-config --path gpgme /usr/lib/x86_64-linux-gnu/pkgconfig/gpgme.pc The cause is PKG_CONFIG_PATH, because if I unset it, gpgrt-config works fine: cventin:~> env -u PKG_CONFIG_PATH gpgrt-config --modversion gpgme 1.24.1 (The consequence was I got Mutt built without GPGME support on this machine.) -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.11.10-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libgpg-error-dev depends on: ii libgpg-error0 1.51-3 libgpg-error-dev recommends no packages. libgpg-error-dev suggests no packages. -- no debconf information -- Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
[toc] | [next] | [standalone]
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2025-02-06 01:20 +0100 |
| Message-ID | <KcXMB-eHSp-1@gated-at.bofh.it> |
| In reply to | #1231939 |
Control: tags -1 upstream
On 2025-02-06 00:38:29 +0100, Vincent Lefevre wrote:
> When the PKG_CONFIG_PATH environment variable is set,
> "gpgrt-config --modversion gpgme" fails:
>
> cventin:~> echo $PKG_CONFIG_PATH
> /home/vlefevre/opt/tcc/lib/pkgconfig
> cventin:~> gpgrt-config --modversion gpgme
> Can't find gpgme.pc
> cventin:~[1]>
This is an upstream bug:
if [ -z "$PKG_CONFIG_LIBDIR" ]; then
if [ -z "$PKG_CONFIG_PATH" ]; then
# It used to fail as:
#
# echo "Please use --libdir=LIBDIR option or set PKG_CONFIG_LIBDIR" 1>&2
# echo "Or set PKG_CONFIG_PATH" 1>&2
#
# Now, we try a fallback.
determine_gpgrt_libdir
PKG_CONFIG_PATH="${gpgrt_libdir}/pkgconfig"
fi
else
# PKG_CONFIG_LIBDIR is available here
# Modify PKG_CONFIG_PATH, prepending PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH"
fi
I suppose that if $PKG_CONFIG_LIBDIR is empty, ${gpgrt_libdir}/pkgconfig
should be prepended whether $PKG_CONFIG_PATH is empty or not. Something
like
if [ -z "$PKG_CONFIG_LIBDIR" ]; then
determine_gpgrt_libdir
PKG_CONFIG_PATH="${gpgrt_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH"
else
# PKG_CONFIG_LIBDIR is available here
# Modify PKG_CONFIG_PATH, prepending PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH"
fi
(not tested).
If this is not sufficient, the case where $PKG_CONFIG_PATH is unset
is probably buggy too.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
[toc] | [prev] | [next] | [standalone]
| From | NIIBE Yutaka <gniibe@fsij.org> |
|---|---|
| Date | 2025-02-06 02:30 +0100 |
| Subject | Bug#1095260: [pkg-gnupg-maint] Bug#1095260: libgpg-error-dev: can't find gpgme.pc when PKG_CONFIG_PATH is set |
| Message-ID | <KcYSl-eItD-3@gated-at.bofh.it> |
| In reply to | #1231939 |
Vincent Lefevre <vincent@vinc17.net> wrote: > When the PKG_CONFIG_PATH environment variable is set, > "gpgrt-config --modversion gpgme" fails: Thank you for your report. I confirmed the issue, identified a bug, and fixed in upstream as the commit of: dbf1e0dc47229384d59cb19084de39a855e5c871 I think that problem has now gone in master. 1.52 will be released with the fix. --
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web