From ale.schenberg at yandex.com Mon May 22 02:07:06 2023 From: ale.schenberg at yandex.com (alexandre schenberg) Date: Sun, 21 May 2023 23:07:06 -0300 Subject: Gtk's detection problem with pkg-config Message-ID: <21211684721226@lf3b5kaxwk4dv7kz.sas.yp-c.yandex.net> Hi. While trying to build an old gimp version, I found a bunch of problems with Gimp's configure gtk detection code. One of them is related to pkg-config. This line: " if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args;" should evaluate to true. However, by some mysterious way, is not. But why? I checked the value of its variables: $PKG_CONFIG is equal to /usr/bin/pkg-config $min_gtk_version is equal to 2.12.5 $pkg_config_args is equal to gtk+-2.0 gthread-2.0 The first two are ok and the third seems ok at first glance I am passing Gtk's pkgconfig config with: PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Gtk+-2.24.20/lib/pkgconfig/: with is also okay. So I would deeply appreciate if someone has any suggestions about the reason this if clause is failing to evaluate as true From ametzler at bebt.de Mon May 22 16:19:15 2023 From: ametzler at bebt.de (Andreas Metzler) Date: Mon, 22 May 2023 18:19:15 +0200 Subject: Gtk's detection problem with pkg-config In-Reply-To: <21211684721226@lf3b5kaxwk4dv7kz.sas.yp-c.yandex.net> References: <21211684721226@lf3b5kaxwk4dv7kz.sas.yp-c.yandex.net> Message-ID: On 2023-05-22 alexandre schenberg wrote: > Hi. While trying to build an old gimp version, I found a bunch of problems with Gimp's configure gtk detection code. > One of them is related to pkg-config. This line: " if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args;" > should evaluate to true. However, by some mysterious way, is not. But why? I checked the value of its variables: > $PKG_CONFIG is equal to /usr/bin/pkg-config > $min_gtk_version is equal to 2.12.5 > $pkg_config_args is equal to gtk+-2.0 gthread-2.0 > The first two are ok and the third seems ok at first glance > I am passing Gtk's pkgconfig config with: > PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Gtk+-2.24.20/lib/pkgconfig/: > with is also okay. > So I would deeply appreciate if someone has any suggestions about the > reason this if clause is failing to evaluate as true Did you test that /usr/bin/pkg-config --atleast-version 2.12.5 gtk+-2.0 gthread-2.0 does not succeed? Do you have gtk+-2.0.pc and gthread-2.0.pc in PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux/Gtk+-2.24.20/lib/pkgconfig/ ? cu Andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'