Package: silgraphite2.0
Version: 102svn-1
Severity: important
Tags: patch
There was an error while trying to autobuild your package:
> Automatic build of silgraphite2.0_102svn-1 on debian01 by sbuild/s390 79
[...]
> if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> -I.. -I../include -I../src/generic -I../src/font -I../src/segment
> -I/usr/include/freetype2 -O2 -DNDEBUG -MT SegmentPainter.lo -MD -MP -MF
> ".deps/SegmentPainter.Tpo" -c -o SegmentPainter.lo `test -f
> '../src/painter/SegmentPainter.cpp' || echo
> './'`../src/painter/SegmentPainter.cpp; \
> then mv -f ".deps/SegmentPainter.Tpo" ".deps/SegmentPainter.Plo"; else
> rm -f ".deps/SegmentPainter.Tpo"; exit 1; fi
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../src/generic -I../src/font
> -I../src/segment -I/usr/include/freetype2 -O2 -DNDEBUG -MT SegmentPainter.lo
> -MD -MP -MF .deps/SegmentPainter.Tpo -c ../src/painter/SegmentPainter.cpp
> -fPIC -DPIC -o .libs/SegmentPainter.o
> .../src/painter/SegmentPainter.cpp: In member function 'virtual size_t
> gr::SegmentPainter::getUnderlinePlacement(int, int, bool, size_t, float*,
> float*, float*)':
> .../src/painter/SegmentPainter.cpp:925: error: no matching function for call
> to 'min(size_t&, unsigned int)'
> make[3]: *** [SegmentPainter.lo] Error 1
> make[3]: Leaving directory
> `/build/buildd/silgraphite2.0-102svn/build-tree/silgraphite-2.0.0/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/build/buildd/silgraphite2.0-102svn/build-tree/silgraphite-2.0.0'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/build/buildd/silgraphite2.0-102svn/build-tree/silgraphite-2.0.0'
> make: *** [debian/stamp-makefile-build] Error 2
> ******************************************************************************
> Build finished at 20051229-1157
> FAILED [dpkg-buildpackage died]
The attached patch fixes the bug.
Bastian
diff -urN test/silgraphite2.0-102svn/debian/changelog
silgraphite2.0-102svn/debian/changelog
--- test/silgraphite2.0-102svn/debian/changelog 2005-12-12 09:40:07.000000000
+0000
+++ silgraphite2.0-102svn/debian/changelog 2005-12-29 12:16:03.000000000
+0000
@@ -1,3 +1,10 @@
+silgraphite2.0 (102svn-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Don't assume size_t is unsigned.
+
+ -- Bastian Blank <[EMAIL PROTECTED]> Thu, 29 Dec 2005 12:15:48 +0000
+
silgraphite2.0 (102svn-1) unstable; urgency=low
* update to current svn
diff -urN test/silgraphite2.0-102svn/debian/patches/size_t.patch
silgraphite2.0-102svn/debian/patches/size_t.patch
--- test/silgraphite2.0-102svn/debian/patches/size_t.patch 1970-01-01
00:00:00.000000000 +0000
+++ silgraphite2.0-102svn/debian/patches/size_t.patch 2005-12-29
12:11:06.000000000 +0000
@@ -0,0 +1,12 @@
+diff -ur silgraphite-2.0.0.orig/src/painter/SegmentPainter.cpp
silgraphite-2.0.0/src/painter/SegmentPainter.cpp
+--- silgraphite-2.0.0.orig/src/painter/SegmentPainter.cpp 2005-11-30
17:31:55.000000000 +0000
++++ silgraphite-2.0.0/src/painter/SegmentPainter.cpp 2005-12-29
12:05:20.000000000 +0000
+@@ -922,7 +922,7 @@
+
+ // Put the results in the output buffers.
+ size_t cxdRet = vlsdNoOverlaps.size();
+- for (ils = 0; ils < min(cxdRet, unsigned(cxdMax)); ils++)
++ for (ils = 0; ils < min(cxdRet, size_t(cxdMax)); ils++)
+ {
+ prgxdLefts[ils] = vlsdNoOverlaps[ils].left;
+ prgxdRights[ils] = vlsdNoOverlaps[ils].right;
diff -urN test/silgraphite2.0-102svn/debian/rules
silgraphite2.0-102svn/debian/rules
--- test/silgraphite2.0-102svn/debian/rules 2005-12-12 13:25:07.000000000
+0000
+++ silgraphite2.0-102svn/debian/rules 2005-12-29 12:04:21.000000000 +0000
@@ -3,7 +3,7 @@
DEB_TAR_SRCDIR := silgraphite-2.0.0
include /usr/share/cdbs/1/rules/tarball.mk
-
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
DEB_CONFIGURE_EXTRA_FLAGS := --enable-final