diff --git a/openigtlink-fix_test17.patch b/openigtlink-fix_test17.patch new file mode 100644 index 0000000..5785dc9 --- /dev/null +++ b/openigtlink-fix_test17.patch @@ -0,0 +1,22 @@ +diff --git a/Testing/igtlPolyDataMessageTest.cxx b/Testing/igtlPolyDataMessageTest.cxx +index 8d962e9..7612411 100644 +--- a/Testing/igtlPolyDataMessageTest.cxx ++++ b/Testing/igtlPolyDataMessageTest.cxx +@@ -113,12 +113,14 @@ TEST(PolyDataMessageTest, Unpack) + polygonUnpacked->GetCell(i, polygon); + EXPECT_THAT(polygon, ::testing::ElementsAreArray(polyArray[i])); + } +- igtl_float32 attributeValue[1]; ++ igtl_float32 attributeValue[8]; + for (int i = 0; i<8; i++) + { +- attrUnpacked->GetNthData(i, attributeValue); +- EXPECT_EQ(attributeValue[0], attribute[i]); ++ igtl_float32 value[1]; ++ attrUnpacked->GetNthData(i, value); ++ attributeValue[i] = *value; + } ++ EXPECT_TRUE(ArrayFloatComparison(attributeValue, attribute,8,ABS_ERROR)); + } + + diff --git a/openigtlink.spec b/openigtlink.spec index b2b5c4a..77b8ea8 100644 --- a/openigtlink.spec +++ b/openigtlink.spec @@ -3,7 +3,7 @@ Name: openigtlink Version: 2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Implementation of the OpenIGTLink network communication protocol License: BSD @@ -13,11 +13,12 @@ Source0: https://github.com/openigtlink/OpenIGTLink/archive/v%{version}.tar.gz#/ # upstream bug #120 Patch0: openigtlink-remove_broken_code.patch +# patch from upsream +Patch1: openigtlink-fix_test17.patch + BuildRequires: gcc-c++ BuildRequires: cmake -# bug #1427300 -ExcludeArch: ppc64 %description OpenIGTLink is a network communication protocol specifically designed and @@ -96,6 +97,9 @@ popd %changelog +* Sat Mar 04 2017 Dmitry Mikhirev 2.0-1 +- Fix test failure on ppc64 and re-enable build on ppc64 #1427300 + * Wed Feb 22 2017 Dmitry Mikhirev 2.0-1 - Update to 2.0 release - Fix FTBFS #1424021