Package: pinball
Version: 0.3.1-7
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch

In Ubuntu, we've applied the attached patch to achieve the following:

  * base/Config.cpp: fix FTBFS due to invalid const char * conversion 
    (LP: #444802).

We thought you might be interested in doing the same. 

The build fails with the following error:

i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../addon  -I/usr/include/SDL 
-D_GNU_SOURCE=1 -D_REENTRANT  -g -O2 -O2 -c Config.cpp
Config.cpp: In member function 'void Config::setPaths(const char*)':
Config.cpp:422: error: invalid conversion from 'const char*' to 'char*'

http://launchpadlibrarian.net/32161785/buildlog_ubuntu-karmic-i386.pinball_0.3.1-7ubuntu2_FAILEDTOBUILD.txt.gz

-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 
'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-15-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 pinball-0.3.1/base/Config.cpp pinball-0.3.1/base/Config.cpp
--- pinball-0.3.1/base/Config.cpp
+++ pinball-0.3.1/base/Config.cpp
@@ -416,7 +416,7 @@
   m_sDataDir = string(EM_DATADIR) + "/";
   m_sExeDir = "./";
   if ( *( m_sDataDir.c_str() ) != '/' ) {
-    char* ptr=0; 
+    const char* ptr=0; 
     char* ptrw = 0;
     //cout<<"relative to exe file"<<endl;
     ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32 

Reply via email to