[pkg-GD-devel] Bug#790137: libgd2-xpm-dev: Incorrect version number in gd.h

Vincent Bruijn vebruijn at gmail.com
Sat Jun 27 13:44:11 UTC 2015


Package: libgd2-xpm-dev
Version: 2.1.0-5
Severity: normal

Dear Maintainer,


Creating a nodejs package relying on libgd2-xpm-dev lead me to look into the details of /usr/include/gd.h. I noticed that in that file, /usr/include/gd.h, the version naming contradicts. GD_VERSION_STRING says "2.1.1-dev" while in the lines above it, GD_RELEASE_VERSION is 0, which would assume that GD_VERSION_STRING would be "2.1.0-dev".
I noticed this because I wanted to distinguish between libgd2 versions in my package node-gd, but that I kept getting errors because some functions appeared not to be available. I've decided to rely on the combination of GD_MAJOR_VERSION, GD_MINOR_VERSION and GD_RELEASE_VERSION instead of relying on GD_VERSION_STRING. Also, gdlib-config outputs GD_VERSIONS_STRING, so it's actually lying about its version and hence about its capabilities.


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libgd2-xpm-dev depends on:
ii  libgd-dev  2.1.0-5

libgd2-xpm-dev recommends no packages.

libgd2-xpm-dev suggests no packages.

-- no debconf information



More information about the pkg-GD-devel mailing list