[Debian-med-packaging] Bug#958999: igraph: the library and PC metadata report wrong version

Jerome Benoit calculus at rezozer.net
Mon Apr 27 22:05:46 BST 2020


Source: igraph
Version: 0.8.1+ds-3
Severity: normal
Tags: patch

Dear Maintainer,

it appears that the version tuple encoded in the library
and in the pkg-config metadata is wrong. This can be a
development issue. The provided patch alters the upstream
script that generates on the fly the version tuple.
This patch generates a version tuple based on the verion
of the debian package.
Cheers,
Jerome

-- System Information:
Debian Release: Buster*
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-8-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
-------------- next part --------------
--- a/tools/getversion.sh
+++ b/tools/getversion.sh
@@ -1,13 +1,4 @@
 #! /bin/bash
-
-thistag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
-
-if [ -z "${thistag}" ]; then
-    # taghash=$(git rev-list --tags --max-count=1)
-    # tag=$(git describe --tags "$taghash")
-    next_version=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cat NEXT_VERSION )
-    current=$(git rev-parse --short HEAD)
-    echo "${next_version}-pre+${current}"
-else
-    echo "${thistag}"
-fi
+version_upstream=$(dpkg-parsechangelog -S Version | sed -e 's/+[^+]*$//')
+echo "${version_upstream}"
+exit 0
-------------- next part --------------
--- a/tools/getversion.sh
+++ b/tools/getversion.sh
@@ -1,13 +1,4 @@
 #! /bin/bash
-
-thistag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
-
-if [ -z "${thistag}" ]; then
-    # taghash=$(git rev-list --tags --max-count=1)
-    # tag=$(git describe --tags "$taghash")
-    next_version=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cat NEXT_VERSION )
-    current=$(git rev-parse --short HEAD)
-    echo "${next_version}-pre+${current}"
-else
-    echo "${thistag}"
-fi
+version_upstream=$(dpkg-parsechangelog -S Version | sed -e 's/+[^+]*$//')
+echo "${version_upstream}"
+exit 0


More information about the Debian-med-packaging mailing list