Package: kobodeluxe Version: 0.5.1-4 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * Add 05_const-char.patch to fix FTBFS due to invalid pointer conversion (LP: #461373). We thought you might be interested in doing the same. The build fails with the following error: if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -MT window.o -MD -MP -MF ".deps/window.Tpo" \ -c -o window.o `test -f 'window.cpp' || echo './'`window.cpp; \ then mv -f ".deps/window.Tpo" ".deps/window.Po"; \ else rm -f ".deps/window.Tpo"; exit 1; \ fi window.cpp: In member function 'void window_t::center_token_fxp(int, int, const char*, signed char)': window.cpp:401: error: invalid conversion from 'const char*' to 'char*' make[3]: *** [window.o] Error 1 http://launchpadlibrarian.net/31955416/buildlog_ubuntu-karmic-i386.kobodeluxe_0.5.1-4_FAILEDTOBUILD.txt.gz -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic') Architecture: i386 (i686) Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u kobodeluxe-0.5.1/debian/patches/series kobodeluxe-0.5.1/debian/patches/series --- kobodeluxe-0.5.1/debian/patches/series +++ kobodeluxe-0.5.1/debian/patches/series @@ -4,0 +5 @@ +05_const-char.patch only in patch2: unchanged: --- kobodeluxe-0.5.1.orig/debian/patches/05_const-char.patch +++ kobodeluxe-0.5.1/debian/patches/05_const-char.patch @@ -0,0 +1,14 @@ +Fixes FTBFS with eglibc 2.10 due to invalid pointer conversion. +Index: kobodeluxe-0.5.1/graphics/window.cpp +=================================================================== +--- kobodeluxe-0.5.1.orig/graphics/window.cpp 2009-10-26 22:06:59.000000000 +0300 ++++ kobodeluxe-0.5.1/graphics/window.cpp 2009-10-26 22:06:59.000000000 +0300 +@@ -398,7 +398,7 @@ + */ + if(token) + { +- char *tok = strchr(txt, token); ++ const char *tok = strchr(txt, token); + if(tok) + tokpos = tok-txt; + else