Remaining character in /usr/bin/gdlib-config

Bug #1687322 reported by Laurent
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgd2 (Ubuntu)
Triaged
Medium
Matthias Klose

Bug Description

Hello,

My system is "Ubuntu 16.04.2 LTS" (grep DISTRIB_DESCRIPTION /etc/lsb-release).

I installed libgd-dev:
  $ dpkg -l | grep libgd-dev
  > libgd-dev:amd64 2.1.1-4ubuntu0.16.04.6

I run:
  $ /usr/bin/gdlib-config --all
  > GD library 2.1.1@
  > [...]

You can see a '@' character located after the version "2.1.1".

This is the BUG: this character should not be here.

I went to:
  http://packages.ubuntu.com/xenial/libgd-dev
I downloaded:
  libgd2_2.1.1-4ubuntu0.16.04.6.debian.tar.xz

It contains the following file:
  patches/gdlib-config-uses-pkgconfig.patch
This file contains:
  - echo "GD library @VERSION@"
  [...]
  + echo "GD library $($0 --version)@"

As you can see, there is a remaining '@', which is a remain of "@VERSION@".
This ending '@' must be deleted.

A trivial patch is attached. It is untested.

IMPORTANT
=========
This BUG impacts libgd-perl whose GD-2.53/Makefile.PL contains a
test on version and expects only integers (not the '@'). See
debian/patches/020150323~58eceb8.patch in libgd-perl_2.53-2.1.debian.tar.xz
which uses "/^2\.(\d+)\.(\d+)$/", which fails because the last fragment
is not an integer (\d).

So, after fixing /usr/bin/gdlib-config, the package libgd-perl HAVE TO BE
regenerated (recompiled). Could you also do this please?

Tags: patch xenial
Revision history for this message
Laurent (laurent35263) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch-to-remove-the-at.txt" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in libgd2 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: xenial
Changed in libgd2 (Ubuntu):
assignee: nobody → Matthias Klose (doko)
Revision history for this message
Laurent (laurent35263) wrote :

Hello,
Is there is something I need to do before my patch of May is applied?
Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.