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



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to