The code that fails is
LIBOSG_SHARE=`dpkg --get-selections|awk '{print $1}'|grep
libopenscenegraph[0-9]`
LIBOSG_VERSION=`dpkg -l $LIBOSG_SHARE |grep $LIBOSG_SHARE |sed 's/-/ /'
|awk '{print $3}'`
TMP1=`echo $LIBOSG_VERSION|awk -F '.' '{print $1}'`
TMP2=`echo $LIBOSG_VERSION|awk -F '.' '{print $2}'`
TMP3=`echo $LIBOSG_VERSION|awk -F '.' '{print $3}'`
TMP3=$((TMP3+1))
LIBOSG_VERSIONPLUS=$TMP1.$TMP2.$TMP3
echo $LIBOSG_VERSION
dh_gencontrol -- -Vlibosg-share="$LIBOSG_SHARE"
-Vlibosg-static="libopenscenegraph-dev (>=$LIBOSG_VERSION),
libopenscenegraph-dev (<< $LIBOSG_VERSIONPLUS)"
This seems to be trying to create a >= relation on the current
libopenscenegraph "upstream version" and a << relation on the "next"
libopenscenegraph "upstream version" assuming that libosg "upstream
versions" follow the pattern x.y.z where x y and z are integers.
However the current libosg "upstream version" is 3.2.0~rc1 . This means
that the code ends up trying to add 1 to "0~rc1" and fails.
I made two changes to this code in my patch.
1: I added code to strip stuff after the ~ before adding 1
2: I added a ~ to the generated "next version". This ensures that if the
next upstream version has release candidates that they are properly
caught by the << dependency relationship.
Note that this assumes that release candidates are sufficiently
compatible with the corresponding final versions. If they are not then a
stricter dependency check may be needed.
Debdiff attatched, no intent to NMU.
diff -Nru libcitygml-0.14+svn128/debian/changelog
libcitygml-0.14+svn128/debian/changelog
--- libcitygml-0.14+svn128/debian/changelog 2013-02-01 16:23:03.000000000
+0000
+++ libcitygml-0.14+svn128/debian/changelog 2013-09-27 17:13:01.000000000
+0000
@@ -1,3 +1,10 @@
+libcitygml (0.14+svn128-1+3p0p1+4+rpi1) jessie-staging; urgency=low
+
+ * Make code in debian/gencontrol handle releasecandidate version of
+ openscenegraph correctly. (Closes: #719396)
+
+ -- Peter Michael Green <plugw...@raspbian.org> Fri, 27 Sep 2013 17:11:40
+0000
+
libcitygml (0.14+svn128-1+3p0p1+4) unstable; urgency=low
[Sebastian Ramacher]
diff -Nru libcitygml-0.14+svn128/debian/gencontrol
libcitygml-0.14+svn128/debian/gencontrol
--- libcitygml-0.14+svn128/debian/gencontrol 2012-06-12 17:21:06.000000000
+0000
+++ libcitygml-0.14+svn128/debian/gencontrol 2013-09-27 17:11:17.000000000
+0000
@@ -3,7 +3,8 @@
TMP1=`echo $LIBOSG_VERSION|awk -F '.' '{print $1}'`
TMP2=`echo $LIBOSG_VERSION|awk -F '.' '{print $2}'`
TMP3=`echo $LIBOSG_VERSION|awk -F '.' '{print $3}'`
+TMP3=`echo $TMP3|awk -F '~' '{print $1}'`
TMP3=$((TMP3+1))
-LIBOSG_VERSIONPLUS=$TMP1.$TMP2.$TMP3
+LIBOSG_VERSIONPLUS=$TMP1.$TMP2.$TMP3~
echo $LIBOSG_VERSION
dh_gencontrol -- -Vlibosg-share="$LIBOSG_SHARE"
-Vlibosg-static="libopenscenegraph-dev (>=$LIBOSG_VERSION),
libopenscenegraph-dev (<< $LIBOSG_VERSIONPLUS)"