Bug#756476: Bug#747804: spotlighter: FTBFS: error: Test for GTK3+ failed
Yavor Doganov
yavor at gnu.org
Tue Aug 5 22:49:05 UTC 2014
tags 756476 + patch
thanks
On Wed, Jul 30, 2014 at 10:37:12AM +0200, Emilio Pozuelo Monfort wrote:
> On 30/07/14 10:10, YunQiang Su wrote:
> > I think this problem is caused by libgtk-3-dev.
> > File /usr/share/aclocal/gtk-3.0.m4, it doesn't work,
>
> /usr/share/aclocal/gtk-3.0.m4 uses pkg-config to determine the
> necessary CFLAGS, e.g. -I/usr/include/gtk-3.0.
>
> Can you explain how gtk-3.0.m4 is not working?
The problem is due to changed behavior of pkg-config, most probably
occurred in version 0.28. "pkg-config --atleast-version N libA libB"
now checks if both libraries are >= N (which will always return false
for gtk+-3.0 if the last macro argument is used because the
gthread-2.0 version is 2.40.x). Then the test in the AC_TRY_RUN macro
is doomed to fail because the no_gtk variable is set to "yes" and as a
consequence GTK_CFLAGS/GTK_LIBS/gtk_config_*_version are undefined.
Trivial patch attached. I can't reproduce this with pkg-config/0.26-1
on wheezy which makes me think that this is new behavior as of 0.28.
I am not sure it was intended though, seems unnatural/incorrect to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AM_PATH_GTK_3_0.patch
Type: text/x-diff
Size: 298 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20140806/05e604fd/attachment.patch>
More information about the pkg-gnome-maintainers
mailing list