libcitygml failed to build on the raspbian autobuilders in the following way.

dpkg-deb: building package `openscenegraph-plugin-citygml-shared' in 
`../openscenegraph-plugin-citygml-shared_0.14+svn134-2+3p2p1_armhf.deb'.
        dpkg-deb --build debian/openscenegraph-plugin-citygml-static ..
dpkg-deb: error: parsing file 
'debian/openscenegraph-plugin-citygml-static/DEBIAN/control' near line 7 
package 'openscenegraph-plugin-citygml-static':
'Depends' field, reference to 'libopenscenegraph-dev': error in version: 
version string is empty
dh_builddeb: dpkg-deb --build debian/openscenegraph-plugin-citygml-static .. 
returned exit code 2
make: *** [binary-arch] Error 1
debian/rules:10: recipe for target 'binary-arch' failed

Strangely when I tried to reproduce it manually in a test chroot it failed in a different way. It seems that osgPlugins-3.2.1 ended up in debian/tmp/usr/lib/arm-linux-gnueabihf rather than debian/tmp/usr/lib . I added a hack to debian/rules to move it back to the place the packaging expected it.

I then ran into an error about an invalid number from debian/gencontrol. Further investigation showed that it couldn't cope with dpkg --get-selections returning libopenscenegraph100:armhf. Again a quick hack was added.

I have not tested this in debian but I don't think we have changed anything relavent to this in raspbian so I doubt the undelying issues are raspbian specific.

I strongly suspect this is related to the recent multiarching of openscenegraph.

A very hacky patch I whipped up to get a transition to go through in raspbian is attatched, the patch is definately not suitable for inclusion in debian in it's current form but I included it to give indications of what places need attention.
diff -Nru libcitygml-0.14+svn134/debian/changelog 
libcitygml-0.14+svn134/debian/changelog
--- libcitygml-0.14+svn134/debian/changelog     2014-02-01 07:03:45.000000000 
+0000
+++ libcitygml-0.14+svn134/debian/changelog     2014-10-16 00:36:02.000000000 
+0000
@@ -1,3 +1,15 @@
+libcitygml (0.14+svn134-1+3p2p0+rpi1) jessie-staging; urgency=medium
+
+  * Various hacks to get things building, note that these will need
+    considerable reworking if they are to be used outside raspbian.
+  * Sometimes osgPlugins-3.2.1 ends up under 
+    debian/tmp/usr/lib/arm-linux-gnueabihf instead of debian/tmp/usr/lib/
+    move it back if needed.
+  * Hack up script so that things work if dpkg lists libopenscenegraph
+    with a :armhf on the end of the name.
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Thu, 16 Oct 2014 00:19:06 
+0000
+
 libcitygml (0.14+svn134-1+3p2p0) unstable; urgency=low
 
   * Team upload.
diff -Nru libcitygml-0.14+svn134/debian/gencontrol 
libcitygml-0.14+svn134/debian/gencontrol
--- libcitygml-0.14+svn134/debian/gencontrol    2014-02-01 07:03:45.000000000 
+0000
+++ libcitygml-0.14+svn134/debian/gencontrol    2014-10-16 00:36:43.000000000 
+0000
@@ -1,8 +1,11 @@
-LIBOSG_SHARE=`dpkg --get-selections | grep "libopenscenegraph[0-9]*\s*install" 
| awk '{print $1}'`
+LIBOSG_SHARE=`dpkg --get-selections | sed s/:armhf// | grep 
"libopenscenegraph[0-9]*\s*install" | awk '{print $1}'`
 LIBOSG_VERSION=`dpkg -l $LIBOSG_SHARE | grep "^ii\s*$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}' | sed 's/~.*$//'`
+echo fuck
+echo $LIBOSG_VERSION
+echo $TMP3
 TMP3=$((TMP3+1))
 LIBOSG_VERSIONPLUS=$TMP1.$TMP2.$TMP3~
 echo $LIBOSG_VERSION
diff -Nru libcitygml-0.14+svn134/debian/rules 
libcitygml-0.14+svn134/debian/rules
--- libcitygml-0.14+svn134/debian/rules 2014-02-01 07:03:45.000000000 +0000
+++ libcitygml-0.14+svn134/debian/rules 2014-10-16 00:18:55.000000000 +0000
@@ -22,3 +22,8 @@
 override_dh_auto_configure:
        dh_auto_configure -- \
                -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+override_dh_install:
+       -mv debian/tmp/usr/lib/arm-linux-gnueabihf/osgPlugins-3.2.1/ 
debian/tmp/usr/lib/
+       dh_install
+
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to