1--- misc/silgraphite-2.3.1/engine/src/segment/SegmentAux.cpp	2008-08-21 16:24:32.000000000 +0200
2+++ misc/build/silgraphite-2.3.1/engine/src/segment/SegmentAux.cpp	2011-02-21 13:22:23.159834368 +0100
3@@ -247,7 +247,9 @@
4 GlyphSetIterator::reference GlyphSetIterator::operator*() const
5 {
6 	assert(m_pseg != 0);
7-	assert(m_vit != std::vector<int>::const_iterator());
8+        // #i116227# the check below is well meant but breaks itself when using stlport with debug facilities
9+        // a valid iterator cannot be compared to an empty one in that case
10+	// assert(m_vit != std::vector<int>::const_iterator());
11 														// in the case of a non-contiguous list
12 	return m_pseg->m_prgginf[(*m_vit) - m_pseg->m_isloutGinf0];
13 }
14--- misc/silgraphite-2.3.1/engine/configure	2021-06-19 15:17:20.741894267 +0200
15+++ misc/build/silgraphite-2.3.1/engine/configure	2021-06-19 15:18:16.359429854 +0200
16@@ -16877,7 +16877,7 @@
17 # (note: the flags here are gcc-specific and may fail with other compilers)
18 build_flags=""
19 if test "$enable_debug" = yes; then
20-  build_flags="$build_flags -O0 -g -Wall -Wno-unknown-pragmas -Wparentheses -Werror"
21+  build_flags="$build_flags -O0 -g -Wall -Wno-unknown-pragmas -Wparentheses"
22 elif test "$enable_strict" = yes; then
23   build_flags="$build_flags -DNDEBUG -Wall -Wno-unknown-pragmas -Wparentheses -Werror"
24 else
25