Bug#754657: piuparts fail in unstable

Fabien Spindler Fabien.Spindler at inria.fr
Tue Jul 15 17:46:51 UTC 2014


Thomas,

I have attached a patch that fixes this issue.

Moreover debian/libvisp2.9.install need to be changed with 
"usr/share/visp-2.9.0/data/"
And also debian/libvisp-dev.install to add the line 
"usr/lib/*/visp/data/" since we introduce patch 
0003-Install-OGRE-config-files-in-arch-specific-directory.patch

Best regards
Fabien

Le 13/07/14 10:19, Thomas Moulard a écrit :
> Source: libvisp2.9
> Version: 2.9.0-2
> Severity: important
>
> piuparts check[1] fails on libvisp2.9_2.9.0-2 due to the fact the package
> provides this file:
>
> /usr/share/visp/data/wireframe-simulator/circles2.bnd
>
> Previous packages such as libvisp2.8 are also providing this file
> hence triggering a conflict.
>
> >From the log:
>
>    Preparing to unpack .../libvisp2.9_2.9.0-2_amd64.deb ...
>    Unpacking libvisp2.9:amd64 (2.9.0-2) ...
>    dpkg: error processing archive /var/cache/apt/archives/libvisp2.9_2.9.0-2_amd64.deb (--unpack):
>     trying to overwrite '/usr/share/visp/data/wireframe-simulator/circles2.bnd', which is also in package libvisp2.8:amd64 2.8.0-5.1
>    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
>    Preparing to unpack .../multiarch-support_2.19-5_amd64.deb ...
>    Unpacking multiarch-support (2.19-5) over (2.19-4) ...
>    Errors were encountered while processing:
>     /var/cache/apt/archives/libvisp2.9_2.9.0-2_amd64.deb
>    E: Sub-process /usr/bin/dpkg returned an error code (1)
> 2m29.1s ERROR: Command failed (status=100): ['chroot', '/srv/piuparts.debian.org/tmp/tmpk7TUWx', 'apt-get', '-yf', 'dist-upgrade']
>
>   [snip]
>   
>    Preparing to unpack .../libvisp2.9_2.9.0-2_amd64.deb ...
>    Unpacking libvisp2.9:amd64 (2.9.0-2) ...
>    dpkg: error processing archive /var/cache/apt/archives/libvisp2.9_2.9.0-2_amd64.deb (--unpack):
>     trying to overwrite '/usr/share/visp/data/wireframe-simulator/circles2.bnd', which is also in package libvisp2.8:amd64 2.8.0-5.1
>    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
>    Preparing to unpack .../multiarch-support_2.19-5_amd64.deb ...
>    Unpacking multiarch-support (2.19-5) over (2.19-4) ...
>    Errors were encountered while processing:
>     /var/cache/apt/archives/libvisp2.9_2.9.0-2_amd64.deb
>    E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> [1] https://piuparts.debian.org/testing2sid/fail/libvisp-dev_2.9.0-2.log

-------------- next part --------------
>From a8c72393de55f416f198cfafeef256c6cd272562 Mon Sep 17 00:00:00 2001
From: Fabien Spindler <Fabien.Spindler at inria.fr>
Date: Tue, 15 Jul 2014 19:31:15 +0200
Subject: [PATCH 6/6] Fix to allow installation of different versions of
 libvisp debian package

---
 CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6ee2b2..7f88b59 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -928,14 +928,14 @@ IF(USE_OGRE)
     if(UNIX)
       install(FILES
         ${VISP_BINARY_DIR}/install/resources.cfg
-        DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp/data/ogre-simulator
+        DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp-${VISP_VERSION}/data/ogre-simulator
         PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
         COMPONENT libraries
       )
       if(OGRE_MEDIA_NOT_AVAILABLE)
         install(DIRECTORY
           data/ogre-simulator/media
-          DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp/data/ogre-simulator
+          DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp-${VISP_VERSION}/data/ogre-simulator
           FILE_PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
           COMPONENT libraries
         )
@@ -2157,7 +2157,7 @@ IF(UNIX)
   foreach(SCENE ${WIREFRAME_SCENES})
     INSTALL(FILES 
       "${VISP_SOURCE_DIR}/src/simulator/wireframe-simulator/scene/${SCENE}"
-      DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp/data/wireframe-simulator
+      DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp-${VISP_VERSION}/data/wireframe-simulator
       PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
       COMPONENT libraries
     )
@@ -2165,7 +2165,7 @@ IF(UNIX)
   foreach(SCENE ${ROBOT_ARMS_SCENES})
     INSTALL(FILES 
       "${VISP_SOURCE_DIR}/src/robot/simulator-robot/arms/${SCENE}"
-      DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp/data/robot-simulator
+      DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/visp-${VISP_VERSION}/data/robot-simulator
       PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
       COMPONENT libraries
     )
-- 
2.0.0



More information about the debian-science-maintainers mailing list