Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1026781: pkgconf: breaks adequate missing-pkgconfig-dependency check due to behaviour change in: pkg-config --exists --print-errors

55 views
Skip to first unread message

Andrej Shadura

unread,
Jan 22, 2023, 5:40:04 AM1/22/23
to
On Wed, 21 Dec 2022 14:24:53 +0800 Paul Wise <pa...@debian.org> wrote:
> Package: pkgconf
> Severity: serious
>
> When a pkg doesn't have its dependencies satisfied, pkgconf --cflags
> etc all print an error message and return a failure exit code.

Here’s a reproducer:

$ docker run -it debian:unstable /bin/bash
root@4f9e1cf385db:/# apt update > /dev/null

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.

root@4f9e1cf385db:/# apt install -y --no-install-recommends libmpv-dev >
/dev/null

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.

debconf: delaying package configuration, since apt-utils is not installed
root@4f9e1cf385db:/# apt install -y --no-install-recommends pkgconf >
/dev/null

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.

root@4f9e1cf385db:/# pkg-config --exists --print-errors mpv ; echo $?

0
root@4f9e1cf385db:/# pkg-config --cflags mpv ; echo $?
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/fribidi -I/usr/include/x86_64-linux-gnu
-I/usr/include/libxml2 -I/usr/include/lua5.2 -I/usr/include/SDL2
-I/usr/include/uchardet -I/usr/include/pipewire-0.3
-I/usr/include/spa-0.2 -D_REENTRANT -I/usr/include/libdrm
-I/usr/include/sixel -I/usr/include/spirv_cross

0
root@4f9e1cf385db:/# rm /usr/share/pkgconfig/wayland-protocols.pc
root@4f9e1cf385db:/# pkg-config --exists --print-errors mpv ; echo $?

0
root@4f9e1cf385db:/# pkg-config --cflags mpv ; echo $?
Package wayland-protocols was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-protocols.pc'
to the PKG_CONFIG_PATH environment variable
Package 'wayland-protocols', required by 'mpv', not found

1
root@4f9e1cf385db:/#

--
--
Cheers,
Andrej
0 new messages