Package: mp3burn Version: 0.4.1-3 Tags: patch Followup-For: Bug #450865
mp3burn queries the system architecture to determine whether it need to pass the -swab option to cdrecord. Unfortunately, it does so using /bin/arch, which is not present in Lenny and sid; this results in mp3burn never adding the -swap option (unless it is explicitly specified), leading to byte-swapped CDs on little-endian architectures. Modifying mp3burn to call uname -m instead of arch fixes the problem. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages mp3burn depends on: ii file 4.25-1 Determines file type using "magic" ii libmp3-info-perl 1.23-1 Perl MP3::Info - Manipulate / fetc ii libogg-vorbis-header-perl 0.03-3+b1 perl interface to Ogg Vorbis infor ii libstring-shellquote-perl 1.03-1 quote strings for passing through ii mpg123 1.4.3-3 MPEG layer 1/2/3 audio player ii mpg321 [mpg123] 0.2.10.4 mpg123 clone that doesn't use floa ii perl 5.10.0-13 Larry Wall's Practical Extraction ii vorbis-tools 1.2.0-5 several Ogg Vorbis tools ii wodim 9:1.1.8-1+b1 command line CD/DVD writing tool mp3burn recommends no packages. Versions of packages mp3burn suggests: ii flac 1.2.1-1.2 Free Lossless Audio Codec - comman pn libaudio-flac-perl <none> (no description available) -- no debconf information
diff -ur mp3burn-0.4.1-orig/mp3burn mp3burn-0.4.1/mp3burn --- mp3burn-0.4.1-orig/mp3burn 2008-09-11 12:19:01.000000000 -0400 +++ mp3burn-0.4.1/mp3burn 2008-09-11 12:24:52.017315511 -0400 @@ -348,7 +348,7 @@ if (!($cdrecord_opts =~ /.*-swab.*/)) { # assert: swab wasn't set # check to see if it's needed - chop ($arch = `/bin/arch`); + chop ($arch = `/bin/uname -m`); if ($DEBUG) { print "arch=$arch\n"; } if ($arch =~ /i[3456]86/ || $arch =~ /x86_64/ || $arch =~ /ppc/ ) { # ia32 - we need to swab