[med-svn] [dcmtkpp] 01/01: Fix build with Boost 1.56

Julien Lamy lamy-guest at moszumanska.debian.org
Fri Oct 9 09:41:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

lamy-guest pushed a commit to branch master
in repository dcmtkpp.

commit 12c6bfb603acfa248ad6246c144abfec98dc4d7c
Author: Julien Lamy <lamy at unistra.fr>
Date:   Fri Oct 9 11:39:20 2015 +0200

    Fix build with Boost 1.56
---
 debian/patches/fix-tests-boost1.56.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/fix-tests-boost1.56.patch b/debian/patches/fix-tests-boost1.56.patch
new file mode 100644
index 0000000..ef38982
--- /dev/null
+++ b/debian/patches/fix-tests-boost1.56.patch
@@ -0,0 +1,26 @@
+Subject: Fix unit tests due to change in the API of Boost 1.56
+Origin: https://github.com/lamyj/dcmtkpp/commit/ff05c0a391d4d1a3b28b61146b8065cbb41985b4
+--- a/tests/code/xml_converter.cpp
++++ b/tests/code/xml_converter.cpp
+@@ -3,8 +3,6 @@
+ 
+ #include "dcmtkpp/xml_converter.h"
+ 
+-#include <boost/property_tree/xml_parser.hpp>
+-
+ void check_attributes(boost::property_tree::ptree const & xml,
+                       std::string const & tag,
+                       std::string const & vr,
+@@ -896,11 +894,6 @@ BOOST_AUTO_TEST_CASE(AsDataSetDataSets)
+         boost::property_tree::ptree dataset_xml;
+         dataset_xml.add_child("NativeDicomModel", nativedicommodel);
+ 
+-        std::stringstream xmldataset;
+-        boost::property_tree::xml_writer_settings<char> settings(' ', 4);
+-        boost::property_tree::write_xml(xmldataset, dataset_xml, settings);
+-
+-        std::cout << xmldataset.str() << std::endl;
+         dcmtkpp::DataSet const data_set = dcmtkpp::as_dataset(dataset_xml);
+         BOOST_REQUIRE_EQUAL(data_set.size(), 1);
+         BOOST_REQUIRE(data_set.has("00101002"));
+
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..9ddbfa5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-tests-boost1.56.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/dcmtkpp.git



More information about the debian-med-commit mailing list