Your message dated Thu, 12 Oct 2017 12:43:38 +0100
with message-id <[email protected]>
and subject line Re: Bug#652363: pkg-config and /usr/share/aclocal/pkg.m4 are
error-prone
has caused the Debian Bug report #652363,
regarding pkg-config and /usr/share/aclocal/pkg.m4 are error-prone
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
652363: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652363
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpng-dev
Version: 1.5.6-1
With libpng-dev from experimental installed, the d-conf package (and
probably many other gtk-using packages) will FTBFS with something
like:
make[3]: Leaving directory
`/home/consoleuser/src/dconf-editor/d-conf-0.10.0/docs'
Making all in editor
make[3]: Entering directory
`/home/consoleuser/src/dconf-editor/d-conf-0.10.0/editor'
\
# source='dconf-editor.c' object='dconf-editor.o' libtool=no
gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libxml2
-I../common -I../client -DPKGDATADIR=\"/usr/share/dconf-editor\" -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -Wall -Wno-error -c dconf-editor.c
dconf-editor.c:8:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
make[3]: *** [dconf-editor.o] Error 1
make[3]: Leaving directory
`/home/consoleuser/src/dconf-editor/d-conf-0.10.0/editor'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/consoleuser/src/dconf-editor/d-conf-0.10.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/consoleuser/src/dconf-editor/d-conf-0.10.0'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
2 consoleuser@stylus:~/src/dconf-editor/d-conf-0.10.0$ dpkg -S gtk.h
libgtk-3-dev: /usr/include/gtk-3.0/gtk/gtk.h
0 consoleuser@stylus:~/src/dconf-editor/d-conf-0.10.0$
During configuration, the package sets gtk_CFLAGS to the empty string.
Note the difference between the pkg-config --cflags output with
libpng12-dev installed:
0 consoleuser@stylus:/tmp$ pkg-config --cflags gtk+-3.0
-DGSEAL_ENABLE -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairo
0 consoleuser@stylus:/tmp$
and with libpng-dev (from 1.5.6.1) installed:
0 consoleuser@stylus:/tmp$ pkg-config --cflags gtk+-3.0
Package libpng12 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng12.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng12', required by 'GdkPixbuf', not found
1 consoleuser@stylus:/tmp$
arguably, d-conf's ./configure script should also be failing if
pkg-config --cflags gtk+-3.0 returns a non-zero error code (feel free
to clone this bug and reassign the clone to d-conf if you see fit).
libgdk-pixbuf2.0-dev seems to be the only package i have installed on
this machine who mentions libpng12 (via Requires.private) in its
pkg-config file, though libcairo2-dev refers to the bare libpng in
cairo.pc's Requires.private, and in cairo-png.pc's Requires section.
Maybe if Cairo can use the bare libpng here then it's save to use it
in gdkpixbuf as well? or if gdkpixbuf is doing the right thing, maybe
cairo's pkg-config files are too lax, potentially leading to a nasty
multi-library linkage during the transition?
I don't know enough about pkg-config or the inner workings of these
tools to say; feel free to explain and reassign if you think this bug
could be re-assigned to another package.
Thanks for your work maintaining libpng in debian! I hope we can make the
transition to 1.5 soon.
Regards,
--dkg
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-rc4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- End Message ---
--- Begin Message ---
Version: 0.26-1
Control: forwarded -1 https://bugs.freedesktop.org/show_bug.cgi?id=36039
On Fri, 16 Dec 2011 at 15:06:38 -0500, Daniel Kahn Gillmor wrote:
> the failure i had attempting to build d-conf that led me to file #652001
> appears to be complicated by the fact that the pkg-config autoconf
> snippet (ultimately provided, i believe, by /usr/share/aclocal/pkg.m4)
> didn't properly test for failure of
>
> pkg-config --cflags gtk+-3.0
>
> when it was assembling CFLAGS.
>
> this is a somewhat unusual case, because with libpng-dev installed, the
> above command was failing, even though the corresponding --libs command
> was *not* failing.
This failure mode appears to have been fixed in 0.26 upstream.
If pkg.m4 is error-prone in other ways, please open more specific
bug reports for them :-)
Regards,
smcv
--- End Message ---