Package: mp3blaster
Version: 1:3.2.3-3.1
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
*** /tmp/tmpQkDhDu
In Ubuntu, we've applied the attached patch to achieve the following:
* 08_fix_ftbfs_const_char.patch: Fix a FTBFS when converting from
'const char*' to 'char*' (LP: #452231)
We thought you might be interested in doing the same.
-- 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: amd64 (x86_64)
Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- mp3blaster-3.2.3.orig/debian/patches/08_fix_ftbfs_const_char.patch
+++ mp3blaster-3.2.3/debian/patches/08_fix_ftbfs_const_char.patch
@@ -0,0 +1,16 @@
+#
+# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mp3blaster/+bug/452231
+# Description: Fix a FTBFS when converting from 'const char*' to 'char*'.
+#
+diff -Nur -x '*.orig' -x '*~' mp3blaster/src/global.cc mp3blaster.new/src/global.cc
+--- mp3blaster/src/global.cc 2009-10-15 17:03:20.124589776 +0200
++++ mp3blaster.new/src/global.cc 2009-10-15 17:04:27.830949852 +0200
+@@ -379,7 +379,7 @@
+ is_sid(const char *filename)
+ {
+ #ifdef HAVE_SIDPLAYER
+- char *ext = strrchr(filename, '.');
++ const char *ext = strrchr(filename, '.');
+ if (ext) {
+ if (!strcasecmp(ext, ".psid")) return 1;
+ if (!strcasecmp(ext, ".sid")) return 1;