[pkg-GD-devel] Bug#314376: libgd2-noxpm dependency

Guillem Jover guillem at debian.org
Sun Oct 16 08:22:48 UTC 2011


On Wed, 2005-06-15 at 19:45:35 -0700, Steve Langasek wrote:
> reassign 314376 libgd2-xpm
> thanks
> 
> > The bug is a matter of changing package dependencies. You want it fixed
> > by messing with upstream code: You claim libgd2-xpm linking against
> > libx11 is unneeded. I disagree. Please proove it.
> 
> Any idiot who can work objdump or nm can demonstrate this to be the case.  I
> shouldn't have to *prove* such things to a library package's own maintainer
> in order for it to be duly considered as a bug.

So, while theoretically it's true that libgd2-xpm should not be linked
directly to libX11 (configure.ac could be modified, but then pkg-config
could not be used), in effect it does not matter much for php5-gd, as
the end result is the same as long as it keeps linking against libgd2-xpm
instead of libgd2-noxpm:

,---
$ cat /usr/lib/pkgconfig/xpm.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Xpm
Description: X Pixmap Library
Version: 3.5.9
Requires: x11
Requires.private: x11
Cflags: -I${includedir}
Libs: -L${libdir} -lXpm

$ grep Display /usr/include/X11/xpm.h
    Display*                    /* display */,
    Display*                    /* display */,
    FUNC(XpmCreatePixmapFromData, int, (Display *display,
    FUNC(XpmCreateDataFromPixmap, int, (Display *display,
    FUNC(XpmReadFileToPixmap, int, (Display *display,
    FUNC(XpmWriteFileFromPixmap, int, (Display *display,
    FUNC(XpmCreateImageFromData, int, (Display *display,
    FUNC(XpmCreateDataFromImage, int, (Display *display,
    FUNC(XpmReadFileToImage, int, (Display *display,
    FUNC(XpmWriteFileFromImage, int, (Display *display,
    FUNC(XpmCreateImageFromBuffer, int, (Display *display,
    FUNC(XpmCreatePixmapFromBuffer, int, (Display *display,
    FUNC(XpmCreateBufferFromImage, int, (Display *display,
    FUNC(XpmCreateBufferFromPixmap, int, (Display *display,
    FUNC(XpmCreatePixmapFromXpmImage, int, (Display *display,
    FUNC(XpmCreateImageFromXpmImage, int, (Display *display,
    FUNC(XpmCreateXpmImageFromImage, int, (Display *display,
    FUNC(XpmCreateXpmImageFromPixmap, int, (Display *display,

$ objdump -T /usr/lib/libXpm.so|grep 'X[^p]'
0000000000000000      DF *UND*  0000000000000000              XQueryColors
0000000000000000      DF *UND*  0000000000000000              XGrabServer
0000000000000000      DF *UND*  0000000000000000              XCreateImage
0000000000000000      DF *UND*  0000000000000000              XFreeColors
0000000000000000      DF *UND*  0000000000000000              XDefaultVisual
0000000000000000      DF *UND*  0000000000000000              XGetGeometry
0000000000000000      DF *UND*  0000000000000000              XFreeGC
0000000000000000      DF *UND*  0000000000000000              XUngrabServer
0000000000000000      DF *UND*  0000000000000000              XDefaultScreen
0000000000000000      DF *UND*  0000000000000000              XCreateGC
0000000000000000      DF *UND*  0000000000000000              XDefaultColormap
0000000000000000      DF *UND*  0000000000000000              XPutImage
0000000000000000      DF *UND*  0000000000000000              XParseColor
0000000000000000      DF *UND*  0000000000000000              XGetImage
0000000000000000      DF *UND*  0000000000000000              XAllocColor
0000000000000000      DF *UND*  0000000000000000              XDefaultDepth
0000000000000000      DF *UND*  0000000000000000              XCreatePixmap

$ objdump -T /usr/lib/x86_64-linux-gnu/libX11.so|grep XGrabServer
000000000002dbf0 g    DF .text  0000000000000081  Base        XGrabServer
`---

regards,
guillem





More information about the pkg-GD-devel mailing list