Package: sooperlooper
Version: 1.0.8c-3.1
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:

  * 03_const-char.patch: fix FTBFS due to invalid const char * 
    conversions (LP: #444786).

We thought you might be interested in doing the same. 

The build fails with the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I.     -D_REENTRANT -O2 -fomit-frame-pointer 
-ffast-math -fstrength-reduce -pipe -Wall -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE 
-I/build/buildd/sooperlooper-1.0.8c/build-tree/sooperlooper-1.0.8c/libs/pbd 
-I/build/buildd/sooperlooper-1.0.8c/build-tree/sooperlooper-1.0.8c/libs/midi++ 
-I/usr/include/libxml2   -I/usr/lib/sigc++-1.2/include 
-I/usr/include/sigc++-1.2   -c -o basename.o basename.cc
basename.cc: In function 'char* PBD::basename(const char*)':
basename.cc:11: error: invalid conversion from 'const char*' to 'char*

http://launchpadlibrarian.net/32336596/buildlog_ubuntu-karmic-i386.sooperlooper_1.0.8c-3.1ubuntu1_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
--- sooperlooper-1.0.8c.orig/debian/patches/03_const-char.patch
+++ sooperlooper-1.0.8c/debian/patches/03_const-char.patch
@@ -0,0 +1,36 @@
+diff -Nur -x '*.orig' -x '*~' sooperlooper-1.0.8c/build-tree/sooperlooper-1.0.8c/libs/midi++/midi.cc sooperlooper-1.0.8c.new/build-tree/sooperlooper-1.0.8c/libs/midi++/midi.cc
+--- sooperlooper-1.0.8c/libs/midi++/midi.cc	2009-10-06 22:28:00.000000000 +0400
++++ sooperlooper-1.0.8c/libs/midi++/midi.cc	2009-10-06 22:28:29.000000000 +0400
+@@ -159,7 +159,7 @@
+ MIDI::decode_controller_name (const char *name)
+ 
+ {
+-	char *lparen;
++	const char *lparen;
+ 	size_t len;
+ 
+ 	if ((lparen = strrchr (name, '(')) != 0) {
+diff -Nur -x '*.orig' -x '*~' sooperlooper-1.0.8c/build-tree/sooperlooper-1.0.8c/libs/pbd/basename.cc sooperlooper-1.0.8c.new/build-tree/sooperlooper-1.0.8c/libs/pbd/basename.cc
+--- sooperlooper-1.0.8c/libs/pbd/basename.cc	2004-11-07 00:08:00.000000000 +0300
++++ sooperlooper-1.0.8c/libs/pbd/basename.cc	2009-10-06 22:28:00.000000000 +0400
+@@ -6,7 +6,7 @@
+ PBD::basename (const char *path)
+ 
+ {
+-	char *slash;
++	const char *slash;
+ 
+ 	if ((slash = strrchr (path, '/')) == 0) {
+ 		return strdup (path);
+diff -Nur -x '*.orig' -x '*~' sooperlooper-1.0.8c/build-tree/sooperlooper-1.0.8c/libs/pbd/dirname.cc sooperlooper-1.0.8c.new/build-tree/sooperlooper-1.0.8c/libs/pbd/dirname.cc
+--- sooperlooper-1.0.8c/libs/pbd/dirname.cc	2009-10-06 22:28:00.000000000 +0400
++++ sooperlooper-1.0.8c/libs/pbd/dirname.cc	2009-10-06 22:28:00.000000000 +0400
+@@ -9,7 +9,7 @@
+ PBD::dirname (const char *path)
+ 
+ {
+-	char *slash;
++	const char *slash;
+ 	size_t len;
+ 	char *ret;
+ 	

Reply via email to