From: Gunnar Wolf <gwolf@debian.org>
Origin: vendor
Last-Update: 2009-12-27
Forwarded: not-needed
Description: Call wodim instead of cdrecord for CD burning
 Debian does not package Schilly's cdrecord, but Wodim. This patch
 substitutes all cdrecord references for Wodim ones.
 . 
 Does not need to be forwarded upstream, as it is debian-specific
Index: mp3roaster/mp3roaster
===================================================================
--- mp3roaster.orig/mp3roaster	2009-12-27 21:34:24.000000000 -0600
+++ mp3roaster/mp3roaster	2009-12-27 21:35:19.000000000 -0600
@@ -385,7 +385,7 @@
 # fetch_atip_time
 #
 # This function fetches the ATIP of the CD/RW Disc.
-# We use the cdrecord application to get this infos.
+# We use the wodim application to get this infos.
 #
 # We return the ATIP time in seconds.
 #
@@ -399,12 +399,12 @@
 
     if (!$config_cdr_dev) {
 
-        my $r_message = "You must specify the CDR/W drive id in the configuration file or with\n   the option --drive x.y.z. Execute: % cdrecord \-scanbus for further details.";
+        my $r_message = "You must specify the CDR/W drive id in the configuration file or with\n   the option --drive x.y.z. Execute: % wodim \-scanbus for further details.";
         die print_error($sub, $r_message);
     }
 
-    # open file and use "cdrecord -atip" to fetch ATIP info
-    open(CDINFO,"cdrecord -atip dev=".$config_cdr_dev." 2>&1 |");
+    # open file and use "wodim -atip" to fetch ATIP info
+    open(CDINFO,"wodim -atip dev=".$config_cdr_dev." 2>&1 |");
 
         while (<CDINFO>) {
 
@@ -1031,7 +1031,7 @@
 # burn
 #
 # This function burns all wav files to a CD/RW disc
-# using the cdrecord application, if cdrecord returns
+# using the wodim application, if wodim returns
 # an error code we print out an error message and die,
 # else we go back to main without any return value.
 #
@@ -1071,12 +1071,12 @@
     }
 
     # Let's burn folks -- Finally!
-    $cmd = "cdrecord $cdrecord_options $burn_wav_list >/dev/null 2>&1";
+    $cmd = "wodim $cdrecord_options $burn_wav_list >/dev/null 2>&1";
     $rc = system($cmd);
 
     if ($rc) {
 
-        die print_error($sub, "the burn process was not successful,\n   cdrecord error code $rc.");
+        die print_error($sub, "the burn process was not successful,\n   wodim error code $rc.");
     }
 }
 
@@ -1317,7 +1317,7 @@
 =head1 ENVIRONMENT
 
 MP3Roaster should run on all Unix like operating systems which have Perl and
-cdrecord installed. It has been developed on Debian GNU/Linux.
+wodim installed. It has been developed on Debian GNU/Linux.
 
 =head1 OPTIONS
 
@@ -1460,7 +1460,7 @@
 
 =head1 SEE ALSO
 
-cdrecord.
+wodim.
 
 =head1 AUTHOR
 
