[Debian-med-packaging] Bug#893589: opensurgsim: Fix for build failure with boost 1.65

Steve Langasek steve.langasek at canonical.com
Tue Mar 20 07:02:19 UTC 2018


Package: opensurgsim
Version: 0.7.0-6
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch

Dear Paul,

In Ubuntu bionic, opensurgsim has been failing to build because we now have
boost 1.65 as default, and therefore one of the source files doesn't compile
because it relied on indirect inclusion of <iostream>.

This build failure does not currently affect Debian, but will once the boost
1.65 migration begins there.

I have uploaded the attached patch to Ubuntu, fixing the build failure. 
Please consider applying it in Debian as well.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru opensurgsim-0.7.0/debian/patches/boost-1.65-compat.patch opensurgsim-0.7.0/debian/patches/boost-1.65-compat.patch
--- opensurgsim-0.7.0/debian/patches/boost-1.65-compat.patch	1969-12-31 16:00:00.000000000 -0800
+++ opensurgsim-0.7.0/debian/patches/boost-1.65-compat.patch	2018-03-19 21:20:00.000000000 -0700
@@ -0,0 +1,27 @@
+Description: make code compatible with boost 1.65.
+ The code previously worked by virtue of certain standard headers (iostream)
+ being indirectly included via boost.  In boost 1.65 these headers are not
+ included for us, so include them directly.
+Author: Steve Langasek <steve.langasek at ubuntu.com>
+Last-Updated: 2018-03-19
+
+Index: opensurgsim-0.7.0/SurgSim/Blocks/DebugDumpBehavior.cpp
+===================================================================
+--- opensurgsim-0.7.0.orig/SurgSim/Blocks/DebugDumpBehavior.cpp
++++ opensurgsim-0.7.0/SurgSim/Blocks/DebugDumpBehavior.cpp
+@@ -13,6 +13,8 @@
+ // See the License for the specific language governing permissions and
+ // limitations under the License.
+ 
++#include <iostream>
++
+ #include "SurgSim/Blocks/DebugDumpBehavior.h"
+ 
+ #include "SurgSim/DataStructures/DataGroup.h"
+@@ -163,4 +165,4 @@
+ }
+ 
+ }
+-}
+\ No newline at end of file
++}
diff -Nru opensurgsim-0.7.0/debian/patches/series opensurgsim-0.7.0/debian/patches/series
--- opensurgsim-0.7.0/debian/patches/series	2017-12-07 04:53:35.000000000 -0800
+++ opensurgsim-0.7.0/debian/patches/series	2018-03-19 21:18:14.000000000 -0700
@@ -6,3 +6,4 @@
 disable-thread-pool-on-armel.patch
 Assert-death-only-if-supported.patch
 ignore-failing-tests.patch
+boost-1.65-compat.patch


More information about the Debian-med-packaging mailing list