Package: chuck
Version: 1.2.0.8.dfsg-1.2
Severity: normal
Tags: patch
Hi,
during Ubuntu's rebuild test, chuck failed to build with gcc-4.4/newer eglibc
[1]. The reason is that the string functions changed the signature for c++.
Attached is a simple patch to fix the problem.
Cheers,
Stefan.
[1]:
<https://edge.launchpad.net/ubuntu/+archive/test-rebuild-20090909/+build/1212073/+files/buildlog_ubuntu-karmic-amd64.chuck_1.2.0.8.dfsg-1.2_FAILEDTOBUILD.txt.gz>
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-10-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- chuck-1.2.0.8.dfsg.orig/src/ugen_xxx.cpp
+++ chuck-1.2.0.8.dfsg/src/ugen_xxx.cpp
@@ -2577,7 +2577,7 @@
// open it
SF_INFO info;
info.format = 0;
- char * format = strrchr( filename, '.');
+ const char * format = strrchr( filename, '.');
if( format && strcmp( format, ".raw" ) == 0 )
{
fprintf( stderr, "[chuck](via SndBuf) %s :: type is '.raw'...\n assuming 16 bit signed mono (PCM)\n", filename );