Bug#888929: libetonyek FTBFS with libglm-dev 0.9.9~a2-1

2018-02-01 Thread Rene Engelhard
Hi,

On Wed, Jan 31, 2018 at 11:24:47AM +0200, Adrian Bunk wrote:
> ...
> In file included from /usr/include/glm/gtx/quaternion.hpp:20:0,
>  from /usr/include/glm/gtx/io.hpp:24,
>  from IWORKTransformationTest.cpp:13:
> /usr/include/glm/gtx/norm.hpp:21:3: error: #error "GLM: GLM_GTX_norm is an 
> experimental extension and may change in the future. Use #define 
> GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
>  # error "GLM: GLM_GTX_norm is an experimental extension and may change in 
> the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you 
> really want to use it."
>^

The straightforward fix is

$ cat debian/patches/GLM_ENABLE_EXPERIMENTAL.diff 
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index f71ee6d..5d054c9 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -14,6 +14,7 @@ test_CPPFLAGS = \
$(CPPUNIT_CFLAGS) \
$(XML_CFLAGS) \
$(GLM_CFLAGS) \
+   -DGLM_ENABLE_EXPERIMENTAL \
$(MDDS_CFLAGS) \
$(LANGTAG_LIBS) \
$(DEBUG_CXXFLAGS)

but that causes

FAIL: test
===
   libetonyek 0.1.7: src/test/test-suite.log
===

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test
==

test::IWAFieldTest::testEmpty : OK
test::IWAFieldTest::testParse : OK
test::IWAFieldTest::testParsePacked : OK
test::IWAFieldTest::testOptional : OK
test::IWAFieldTest::testRepeated : OK
test::IWAMessageTest::testSimple : OK
test::IWAMessageTest::testNestedMessage : OK
test::IWAMessageTest::testMessageSimpleAccess : OK
test::IWAMessageTest::testMissingFields : OK
test::IWAMessageTest::testRepeated : OK
test::IWAMessageTest::testPacked : OK
test::IWAMessageTest::testInvalidInput : OK
test::IWAMessageTest::testNestedMessageWithTrailingData : OK
test::IWAMessageTest::testEmptyMessage : OK
test::IWAMessageTest::testEmptyString : OK
test::IWAReaderTest::testString : OK
test::IWAReaderTest::testBytes : OK
test::IWASnappyStreamTest::testBlock : OK
test::IWASnappyStreamTest::testInvalid : OK
test::IWASnappyStreamTest::testFull : OK
test::IWORKChainedTokenizerTest::testNormal : OK
test::IWORKChainedTokenizerTest::testQualified : OK
test::IWORKFormulaTest::testNumbers : OK
test::IWORKFormulaTest::testStrings : OK
test::IWORKFormulaTest::testCellReferences : OK
test::IWORKFormulaTest::testOperators : OK
test::IWORKFormulaTest::testFunctions : OK
test::IWORKFormulaTest::testExpressions : OK
test::IWORKFormulaTest::testInvalid : OK
test::IWORKPathTest::testConstruction : OK
test::IWORKPathTest::testConversion : OK
test::IWORKPropertyMapTest::testLookup : OK
test::IWORKPropertyMapTest::testLookupWithParent : OK
test::IWORKShapeTest::testMakePolygonPath : OK
test::IWORKShapeTest::testMakeRoundedRectanglePath : OK
test::IWORKShapeTest::testMakeArrowPath : OK
test::IWORKShapeTest::testMakeDoubleArrowPath : OK
test::IWORKShapeTest::testMakeStarPath : OK
test::IWORKShapeTest::testMakeConnectionPath : OK
test::IWORKShapeTest::testMakeCalloutPath : OK
test::IWORKShapeTest::testMakeQuoteBubblePath : OK
test::IWORKStyleTest::testLink : OK
test::IWORKStyleTest::testFlatten : OK
test::IWORKStyleTest::testLookup : OK
test::IWORKStyleStackTest::testLookup : OK
test::IWORKTokenizerBaseTest::testNormal : OK
test::IWORKTokenizerBaseTest::testQualified : OK
test::IWORKTransformationTest::testConstruction : OK
test::IWORKTransformationTest::testConstructionIdentity : assertion
test::IWORKTransformationTest::testConstructionFromGeometry : assertion
test::IWORKTransformationTest::testIdentities : OK
test::IWORKTransformationTest::testInverseOperations : assertion
test::LibetonyekUtilsTest::testReadSVar : OK
test::LibetonyekUtilsTest::testReadUVar : OK
test::IWORKLanguageManagerTest::testTagToProps : OK
test::IWORKLanguageManagerTest::testLanguageToProps : OK
IWORKTransformationTest.cpp:112:Assertion
Test name: test::IWORKTransformationTest::testConstructionIdentity
equality assertion failed
- Expected: 
[[0.000,0.000,0.000]
 [0.000,0.000,0.000]
 [0.000,0.000,0.000]]
- Actual  : 
[[1.000,0.000,0.000]
 [0.000,1.000,0.000]
 [0.000,0.000,1.000]]

IWORKTransformationTest.cpp:136:Assertion
Test name: test::IWORKTransformationTest::testConstructionFromGeometry
equality assertion failed
- Expected: 
[[1.000,0.000,0.000]
 [0.000,1.000,0.000]
 [0.000,0.000,1.000]]
- Actual  : 
[[0.000,0.000,0.000]
 [0.000,0.000,0.000]
 [0.000,0.000,0.000]]

IWORKTransformationTest.cpp:226:Assertion
Test name: test::IWORKTransformationTest::testInverseOperations
equality assertion failed
- Expected: 
[[2.000,0.000,0.000]
 [4.000,2.000,0.000]
 [1.000,0.000,2.000]]
- Actual  : 
[[1.000,0.000,

Bug#888929: libetonyek FTBFS with libglm-dev 0.9.9~a2-1

2018-01-31 Thread Adrian Bunk
Source: libetonyek
Version: 0.1.7-2
Severity: serious

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/libetonyek.html

...
In file included from /usr/include/glm/gtx/quaternion.hpp:20:0,
 from /usr/include/glm/gtx/io.hpp:24,
 from IWORKTransformationTest.cpp:13:
/usr/include/glm/gtx/norm.hpp:21:3: error: #error "GLM: GLM_GTX_norm is an 
experimental extension and may change in the future. Use #define 
GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
 # error "GLM: GLM_GTX_norm is an experimental extension and may change in the 
future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really 
want to use it."
   ^