I am uploading a NMU to DELAYED/10 in order to fix this.
Please find the debdiff attached.
diff -Nru setcd-1.5/debian/changelog setcd-1.5/debian/changelog
--- setcd-1.5/debian/changelog  2024-06-01 13:00:32.000000000 +0000
+++ setcd-1.5/debian/changelog  2024-06-01 12:56:28.000000000 +0000
@@ -1,3 +1,10 @@
+setcd (1.5-6.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Convert to source format 3.0. (closes: #1067542)
+
+ -- Bastian Germann <[email protected]>  Sat, 01 Jun 2024 12:56:28 +0000
+
 setcd (1.5-6.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru setcd-1.5/debian/patches/debian.patch 
setcd-1.5/debian/patches/debian.patch
--- setcd-1.5/debian/patches/debian.patch       1970-01-01 00:00:00.000000000 
+0000
+++ setcd-1.5/debian/patches/debian.patch       2024-06-01 12:56:28.000000000 
+0000
@@ -0,0 +1,128 @@
+--- setcd-1.5.orig/setcd.1
++++ setcd-1.5/setcd.1
+@@ -22,7 +22,8 @@ is a program that allows you to control
+ cdrom device.  There are a number of ways you can control the
+ behaviour of your cdrom drive: should it try to close the tray upon
+ mounting a cdrom when your happened to have left the tray open, or
+-should it eject the tray upon unmounting the cdrom? Should it lock the
++should it eject the tray (or caddy)
++upon unmounting the cdrom? Should it lock the
+ door when some process uses the cdrom or not? Should the kernel try to
+ ensure that there actually is a cd in the drive, and that it is of the
+ right type (i.e., a data cd in case of a mount, or an audio cd in case
+@@ -171,13 +172,11 @@ times real-time audio playback. The spec
+ .I 0
+ is interpreted as auto-selection: data cd's are read at maximum
+ head-rate, while audio cd's are played at normal speed.  There are a
+-few reasons for having the speed to be selectable. Badly pressed
+-cdroms may benefit from less-than-maximum head rate. Modern cdrom
+-drives can obtain very high head rates (up to 16 times audio speed is
+-common), but these drives tend to make an annoyingly loud noise. A
+-lower speed may reduce this. Finally, although the audio low-pass
+-filters probably aren't designed for it, more than real-time playback
+-of audio might be used for high-speed copying of audio tracks.
++few reasons for having the speed to be selectable.  Badly pressed
++cdroms may benefit from less-than-maximum head rate.  Modern cdrom
++drives can obtain very high head rates, 
++but these drives tend to make an annoyingly loud noise. A
++lower speed may reduce this. 
+ 
+ .SH HISTORY
+ Traditionally, up to the 2.0 Linux kernel line, the behaviour of the
+@@ -197,13 +196,13 @@ the behaviour of Linux cdrom drives is t
+ The new cdrom interface level was actually inspired after writing a
+ volume daemon that automatically mounts a cdrom at the location 
+ .RI /cdrom/ volume
+-upon insertion of the disc. I then found out that there was a need for
++upon insertion of the disc.  I then found out that there was a need for
+ finding out the status of the drive without trying to read data, and
+ that the uniformity of cdrom drivers was a mess. The volume daemon has
+ not been finished yet, but progress has been made in convincing the
+ Linux cdrom driver community to comply to the proposed standard. 
+ 
+-.SH DIGNOSTICS
++.SH DIAGNOSTICS
+ Setting or clearing an option will result in a message indicating the
+ new status of that option. Operations not supported by the underlying
+ hardware, e.g., disc selection, will result in an error
+@@ -261,7 +260,7 @@ Write texinfo documentation.
+ 
+ .SH AUTHOR
+ .B Setcd
+-is written by David A. van Leeuwen <[email protected]>, the author of
++is written by David A. van Leeuwen <[email protected]>, the author of
+ the earlier mentioned new cdrom interface and the cm206 cdrom driver.
+ 
+ .SH "SEE ALSO"
+--- setcd-1.5.orig/setcd.c
++++ setcd-1.5/setcd.c
+@@ -1,5 +1,6 @@
+ /* Setcd.c: Set various flags to control the behaviour of your cdrom device.
+    (c) 1997 David A. van Leeuwen
++   (c) 2004 Thomas Fritzsche <[email protected]>
+ 
+    $Id: setcd.c,v 1.4 1999/08/24 19:07:34 david Exp $
+ 
+@@ -23,8 +24,9 @@
+ #include <fcntl.h>
+ #include <ctype.h>            /* tolower */
+ #include <unistd.h>           /* lseek, read */
+-#include <string.h>           /* strncmp */
++#include <string.h>           /* strncmp, memset */
+ #include <sys/ioctl.h>                /* ioctl */
++#include <limits.h>           /* INT_MAX */
+ #include <linux/cdrom.h>
+ #ifndef CDC_CLOSE_TRAY                /* moved into cdrom.h... */
+ #include <linux/ucdrom.h>
+@@ -248,7 +250,50 @@ int main(int ac, char ** av)
+         if (set || clear || status)
+              print_options(flags, set | clear | ~0 * status);
+         if (speed>=0) {
+-             if (ioctl(fd, CDROM_SELECT_SPEED, speed)<0) {
++             // patch to use SET STREAMING command
++             struct cdrom_generic_command cgc;
++             struct request_sense sense;
++             unsigned char buffer[28];
++             unsigned long rw_size;
++             memset(&cgc, 0, sizeof(cgc));
++             memset(&sense, 0, sizeof(sense));
++             memset(&buffer, 0, sizeof(buffer));
++             /* SET STREAMING command */ 
++             cgc.cmd[0] = 0xb6;
++             /* 28 byte parameter list length */
++             cgc.cmd[10] = 28;
++             cgc.sense = &sense;
++             cgc.buffer = buffer;
++             cgc.buflen = sizeof(buffer);
++             cgc.data_direction = CGC_DATA_WRITE;
++             cgc.quiet = 1;
++             if(speed == 0) {
++                  /* set Restore Drive Defaults */  
++                  buffer[0] = 4;
++             }
++             buffer[8] = 0xff;
++             buffer[9] = 0xff;
++             buffer[10] = 0xff;
++             buffer[11] = 0xff;
++             rw_size = 177 * speed;
++             /* read size */
++             buffer[12] = (rw_size >> 24) & 0xff;
++             buffer[13] = (rw_size >> 16) & 0xff;
++             buffer[14] = (rw_size >>  8) & 0xff;
++             buffer[15] = rw_size & 0xff;
++             /* read time 1 sec. */
++             buffer[18] = 0x03;
++             buffer[19] = 0xE8;
++             /* write size */
++             buffer[20] = (rw_size >> 24) & 0xff;
++             buffer[21] = (rw_size >> 16) & 0xff;
++             buffer[22] = (rw_size >>  8) & 0xff;
++             buffer[23] = rw_size & 0xff;
++             /* write time 1 sec. */
++             buffer[26] = 0x03;
++             buffer[27] = 0xE8;
++             if ((ioctl(fd, CDROM_SEND_PACKET, &cgc) != 0)
++                       && (ioctl(fd, CDROM_SELECT_SPEED, speed) < 0)) {
+                   perror("can't set speed");
+                   exit(-6);
+              } else {
diff -Nru setcd-1.5/debian/patches/series setcd-1.5/debian/patches/series
--- setcd-1.5/debian/patches/series     1970-01-01 00:00:00.000000000 +0000
+++ setcd-1.5/debian/patches/series     2024-06-01 12:56:28.000000000 +0000
@@ -0,0 +1 @@
+debian.patch
diff -Nru setcd-1.5/debian/source/format setcd-1.5/debian/source/format
--- setcd-1.5/debian/source/format      2024-06-01 13:00:32.000000000 +0000
+++ setcd-1.5/debian/source/format      2024-06-01 12:56:19.000000000 +0000
@@ -1 +1 @@
-1.0
+3.0 (quilt)
diff -Nru setcd-1.5/setcd.1 setcd-1.5/setcd.1
--- setcd-1.5/setcd.1   2024-06-01 13:00:32.000000000 +0000
+++ setcd-1.5/setcd.1   1999-08-24 19:19:35.000000000 +0000
@@ -22,8 +22,7 @@
 cdrom device.  There are a number of ways you can control the
 behaviour of your cdrom drive: should it try to close the tray upon
 mounting a cdrom when your happened to have left the tray open, or
-should it eject the tray (or caddy)
-upon unmounting the cdrom? Should it lock the
+should it eject the tray upon unmounting the cdrom? Should it lock the
 door when some process uses the cdrom or not? Should the kernel try to
 ensure that there actually is a cd in the drive, and that it is of the
 right type (i.e., a data cd in case of a mount, or an audio cd in case
@@ -172,11 +171,13 @@
 .I 0
 is interpreted as auto-selection: data cd's are read at maximum
 head-rate, while audio cd's are played at normal speed.  There are a
-few reasons for having the speed to be selectable.  Badly pressed
-cdroms may benefit from less-than-maximum head rate.  Modern cdrom
-drives can obtain very high head rates, 
-but these drives tend to make an annoyingly loud noise. A
-lower speed may reduce this. 
+few reasons for having the speed to be selectable. Badly pressed
+cdroms may benefit from less-than-maximum head rate. Modern cdrom
+drives can obtain very high head rates (up to 16 times audio speed is
+common), but these drives tend to make an annoyingly loud noise. A
+lower speed may reduce this. Finally, although the audio low-pass
+filters probably aren't designed for it, more than real-time playback
+of audio might be used for high-speed copying of audio tracks.
 
 .SH HISTORY
 Traditionally, up to the 2.0 Linux kernel line, the behaviour of the
@@ -196,13 +197,13 @@
 The new cdrom interface level was actually inspired after writing a
 volume daemon that automatically mounts a cdrom at the location 
 .RI /cdrom/ volume
-upon insertion of the disc.  I then found out that there was a need for
+upon insertion of the disc. I then found out that there was a need for
 finding out the status of the drive without trying to read data, and
 that the uniformity of cdrom drivers was a mess. The volume daemon has
 not been finished yet, but progress has been made in convincing the
 Linux cdrom driver community to comply to the proposed standard. 
 
-.SH DIAGNOSTICS
+.SH DIGNOSTICS
 Setting or clearing an option will result in a message indicating the
 new status of that option. Operations not supported by the underlying
 hardware, e.g., disc selection, will result in an error
@@ -260,7 +261,7 @@
 
 .SH AUTHOR
 .B Setcd
-is written by David A. van Leeuwen <[email protected]>, the author of
+is written by David A. van Leeuwen <[email protected]>, the author of
 the earlier mentioned new cdrom interface and the cm206 cdrom driver.
 
 .SH "SEE ALSO"
diff -Nru setcd-1.5/setcd.c setcd-1.5/setcd.c
--- setcd-1.5/setcd.c   2024-06-01 13:00:32.000000000 +0000
+++ setcd-1.5/setcd.c   1999-08-24 19:19:35.000000000 +0000
@@ -1,6 +1,5 @@
 /* Setcd.c: Set various flags to control the behaviour of your cdrom device.
    (c) 1997 David A. van Leeuwen
-   (c) 2004 Thomas Fritzsche <[email protected]>
 
    $Id: setcd.c,v 1.4 1999/08/24 19:07:34 david Exp $
 
@@ -24,9 +23,8 @@
 #include <fcntl.h>
 #include <ctype.h>             /* tolower */
 #include <unistd.h>            /* lseek, read */
-#include <string.h>            /* strncmp, memset */
+#include <string.h>            /* strncmp */
 #include <sys/ioctl.h>         /* ioctl */
-#include <limits.h>            /* INT_MAX */
 #include <linux/cdrom.h>
 #ifndef CDC_CLOSE_TRAY         /* moved into cdrom.h... */
 #include <linux/ucdrom.h>
@@ -250,50 +248,7 @@
          if (set || clear || status)
               print_options(flags, set | clear | ~0 * status);
          if (speed>=0) {
-              // patch to use SET STREAMING command
-              struct cdrom_generic_command cgc;
-              struct request_sense sense;
-              unsigned char buffer[28];
-              unsigned long rw_size;
-              memset(&cgc, 0, sizeof(cgc));
-              memset(&sense, 0, sizeof(sense));
-              memset(&buffer, 0, sizeof(buffer));
-              /* SET STREAMING command */ 
-              cgc.cmd[0] = 0xb6;
-              /* 28 byte parameter list length */
-              cgc.cmd[10] = 28;
-              cgc.sense = &sense;
-              cgc.buffer = buffer;
-              cgc.buflen = sizeof(buffer);
-              cgc.data_direction = CGC_DATA_WRITE;
-              cgc.quiet = 1;
-              if(speed == 0) {
-                   /* set Restore Drive Defaults */  
-                   buffer[0] = 4;
-              }
-              buffer[8] = 0xff;
-              buffer[9] = 0xff;
-              buffer[10] = 0xff;
-              buffer[11] = 0xff;
-              rw_size = 177 * speed;
-              /* read size */
-              buffer[12] = (rw_size >> 24) & 0xff;
-              buffer[13] = (rw_size >> 16) & 0xff;
-              buffer[14] = (rw_size >>  8) & 0xff;
-              buffer[15] = rw_size & 0xff;
-              /* read time 1 sec. */
-              buffer[18] = 0x03;
-              buffer[19] = 0xE8;
-              /* write size */
-              buffer[20] = (rw_size >> 24) & 0xff;
-              buffer[21] = (rw_size >> 16) & 0xff;
-              buffer[22] = (rw_size >>  8) & 0xff;
-              buffer[23] = rw_size & 0xff;
-              /* write time 1 sec. */
-              buffer[26] = 0x03;
-              buffer[27] = 0xE8;
-              if ((ioctl(fd, CDROM_SEND_PACKET, &cgc) != 0)
-                        && (ioctl(fd, CDROM_SELECT_SPEED, speed) < 0)) {
+              if (ioctl(fd, CDROM_SELECT_SPEED, speed)<0) {
                    perror("can't set speed");
                    exit(-6);
               } else {

Reply via email to