cdrkit package is retired on branch c10s for BAKERY-412
This commit is contained in:
parent
3ab8c1e98f
commit
e820a7e36d
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
cdrkit-1.1.10.tar.gz
|
||||
/cdrkit-1.1.11.tar.gz
|
@ -1,11 +0,0 @@
|
||||
diff -up cdrkit-1.1.10/genisoimage/genisoimage.c.build-fix cdrkit-1.1.10/genisoimage/genisoimage.c
|
||||
--- cdrkit-1.1.10/genisoimage/genisoimage.c.build-fix 2010-01-20 11:05:05.000000000 +0100
|
||||
+++ cdrkit-1.1.10/genisoimage/genisoimage.c 2010-01-20 11:21:16.144098749 +0100
|
||||
@@ -47,6 +47,7 @@
|
||||
|
||||
#include <mconfig.h>
|
||||
#include "genisoimage.h"
|
||||
+#include "checksum.h"
|
||||
#include "iso9660.h"
|
||||
#include <errno.h>
|
||||
#include <timedefs.h>
|
@ -1,9 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/CMakeLists.txt.cmakewarn cdrkit-1.1.11/CMakeLists.txt
|
||||
--- cdrkit-1.1.11/CMakeLists.txt.cmakewarn 2012-07-31 13:11:10.075500531 +0200
|
||||
+++ cdrkit-1.1.11/CMakeLists.txt 2012-07-31 13:11:41.069108287 +0200
|
||||
@@ -1,3 +1,5 @@
|
||||
+cmake_minimum_required(VERSION 2.8)
|
||||
+cmake_policy(SET CMP0015 OLD)
|
||||
PROJECT (cdrkit C)
|
||||
SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
|
||||
|
@ -1,30 +0,0 @@
|
||||
diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c
|
||||
--- wrk/libusal/scsi-linux-sg.c.wrk 2015-05-29 13:30:41.088896572 +0200
|
||||
+++ wrk/libusal/scsi-linux-sg.c 2015-05-29 13:38:25.776303388 +0200
|
||||
@@ -509,7 +509,9 @@ usalo_open(SCSI *usalp, char *device)
|
||||
/* scan and maybe keep one open, sg_setup decides */
|
||||
#define HDX 0
|
||||
#define SCD 1
|
||||
-#define SG 2
|
||||
+/* second scd option included because of Fedora naming convention /dev/srN */
|
||||
+#define SCD2 2
|
||||
+#define SG 3
|
||||
int h;
|
||||
/*
|
||||
retry_scan_open:
|
||||
@@ -533,6 +535,15 @@ retry_scan_open:
|
||||
first=0;
|
||||
last=255;
|
||||
break;
|
||||
+ }
|
||||
+ case(SCD2):
|
||||
+ {
|
||||
+ if(!check_linux_26())
|
||||
+ continue;
|
||||
+ pattern="/dev/sr%d";
|
||||
+ first=0;
|
||||
+ last=255;
|
||||
+ break;
|
||||
}
|
||||
case(SG):
|
||||
{
|
@ -1,70 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/wodim/wodim.1.dvdman cdrkit-1.1.11/wodim/wodim.1
|
||||
--- cdrkit-1.1.11/wodim/wodim.1.dvdman 2011-06-08 14:49:00.073093571 +0200
|
||||
+++ cdrkit-1.1.11/wodim/wodim.1 2011-06-08 14:50:59.707093540 +0200
|
||||
@@ -835,49 +835,33 @@ newer ones) still implement the Sony pro
|
||||
not yet become a problem to use this driver for all Sony drives. If you find
|
||||
a newer Sony drive that does not work with this driver, please report.
|
||||
.TP
|
||||
-.B mmc_dvd
|
||||
+.B mmc_mdvd
|
||||
The generic SCSI-3/mmc-2 DVD-R/DVD-RW driver is auto-selected whenever
|
||||
.B wodim
|
||||
finds a MMC-2 or MMC-3 compliant drive that supports to write DVDs and
|
||||
an appropriate medium is loaded.
|
||||
-There is no Track At Once mode for DVD writers.
|
||||
-.TP
|
||||
-.B mmc_dvdplus
|
||||
-The generic SCSI-3/mmc-3 DVD+R/DVD+RW driver is auto-selected whenever
|
||||
-one of the DVD+ media types that are incompatible to each other is found.
|
||||
-It checks media and then
|
||||
-branches to the driver that matches the current medium.
|
||||
-.TP
|
||||
-.B mmc_dvdplusr
|
||||
-The generic SCSI-3/mmc-3 DVD+R driver is auto-selected whenever
|
||||
-a DVD+R medium is found in an appropriate writer.
|
||||
Note that for unknown reason, the DVD-Plus alliance does not
|
||||
-like that there is a simulation mode for DVD+R media.
|
||||
-The author of
|
||||
-.B wodim
|
||||
-tries to convince manufacturers to implement a simulation mode for DVD+R
|
||||
-and implement support.
|
||||
-DVD+R only supports one write mode that is somewhere between Track At Once
|
||||
-and Packet writing; this mode is selected in
|
||||
+like that there is a simulation mode for DVD+R and DVD+RW media nor a way
|
||||
+to erase DVD+RW media.
|
||||
+DVD+R and DVD+RW only supports one write mode that is somewhere between
|
||||
+Track At Once and Packet writing; this mode is selected in
|
||||
.B wodim
|
||||
via a the
|
||||
.BR \-dao / \-sao
|
||||
option.
|
||||
-.TP
|
||||
-.B mmc_dvdplusrw
|
||||
-The generic SCSI-3/mmc-3 DVD+RW driver is auto-selected whenever
|
||||
-a DVD+RW medium is found in an appropriate writer.
|
||||
-As DVD+RW media needs to be formatted before its first use, wodim
|
||||
-auto-detects this media state and performs a format before it starts
|
||||
-to write.
|
||||
-Note that for unknown reason, the DVD-Plus alliance does not
|
||||
-like that there is a simulation mode nor a way to erase DVD+RW media.
|
||||
-DVD+RW only supports one write mode that is close to
|
||||
-Packet writing; this mode is selected in
|
||||
+As DVD+RW media needs to be formatted before its first use,
|
||||
.B wodim
|
||||
-via a the
|
||||
-.BR \-dao / \-sao
|
||||
-option.
|
||||
+auto-detects this media state and performs a format before it starts
|
||||
+to write.
|
||||
+.sp
|
||||
+Note: If you have any problems during burning DVDs using
|
||||
+.BR wodim ,
|
||||
+please consider
|
||||
+.B growisofs
|
||||
+from package
|
||||
+.BR dvd+rw-tools ,
|
||||
+which often works better
|
||||
+in these cases.
|
||||
.TP
|
||||
.B cw_7501
|
||||
The driver for Matsushita/Panasonic CW-7501 is auto-selected when
|
@ -1,129 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/wodim/drv_mmc.c.format cdrkit-1.1.11/wodim/drv_mmc.c
|
||||
--- cdrkit-1.1.11/wodim/drv_mmc.c.format 2011-05-18 16:49:14.591822130 +0200
|
||||
+++ cdrkit-1.1.11/wodim/drv_mmc.c 2011-05-18 16:49:14.596822130 +0200
|
||||
@@ -1507,6 +1507,11 @@ getdisktype_mdvd(SCSI *usalp, cdr_t *dp)
|
||||
dstat_t *dsp = dp->cdr_dstat;
|
||||
|
||||
struct track_info track_info;
|
||||
+
|
||||
+ extern char *buf;
|
||||
+ struct disk_info *dip;
|
||||
+ int profile;
|
||||
+
|
||||
if(lverbose)
|
||||
printf("HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.\n");
|
||||
/* if(getdisktype_mmc(usalp, dp)<0)
|
||||
@@ -1521,6 +1526,18 @@ getdisktype_mdvd(SCSI *usalp, cdr_t *dp)
|
||||
dsp->ds_disktype&= ~DT_CD;
|
||||
dsp->ds_disktype|= DT_DVD;
|
||||
|
||||
+ profile = get_curprofile(usalp);
|
||||
+ if (profile == 0x1A) {
|
||||
+ dip = (struct disk_info *)buf;
|
||||
+ if (get_diskinfo(usalp, dip) < 0)
|
||||
+ return (-1);
|
||||
+ if (dip->disk_status == DS_EMPTY) { /* Unformatted */
|
||||
+ dsp->ds_flags |= DSF_NEED_FORMAT;
|
||||
+ if(lverbose)
|
||||
+ printf("The medium is empty, it will be auto formatted.\n");
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
return (ret);
|
||||
|
||||
}
|
||||
diff -up cdrkit-1.1.11/wodim/scsi_cdr.c.format cdrkit-1.1.11/wodim/scsi_cdr.c
|
||||
--- cdrkit-1.1.11/wodim/scsi_cdr.c.format 2011-05-18 16:49:14.601822130 +0200
|
||||
+++ cdrkit-1.1.11/wodim/scsi_cdr.c 2011-05-18 16:49:14.600822130 +0200
|
||||
@@ -1328,7 +1328,7 @@ scsi_format(SCSI *usalp, caddr_t addr, i
|
||||
}
|
||||
sleep(10);
|
||||
printf("\rFormating in progress: 100.00 %% done. \n");
|
||||
- if (pid) exit (0);
|
||||
+ if (pid > 0) exit (0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
diff -up cdrkit-1.1.11/wodim/wodim.c.format cdrkit-1.1.11/wodim/wodim.c
|
||||
--- cdrkit-1.1.11/wodim/wodim.c.format 2011-05-18 16:49:14.584822130 +0200
|
||||
+++ cdrkit-1.1.11/wodim/wodim.c 2011-05-18 17:21:59.510821630 +0200
|
||||
@@ -946,6 +946,40 @@ int main(int argc, char *argv[])
|
||||
print_toc(usalp, dp);
|
||||
comexit(0);
|
||||
}
|
||||
+
|
||||
+ if ((flags & F_FORMAT) || (dp->cdr_dstat->ds_flags & DSF_NEED_FORMAT)) {
|
||||
+ printf("wodim: media format asked\n");
|
||||
+ /*
|
||||
+ * Do not abort if OPC failes. Just give it a chance
|
||||
+ * for better laser power calibration than without OPC.
|
||||
+ *
|
||||
+ * Ricoh drives return with a vendor unique sense code.
|
||||
+ * This is most likely because they refuse to do OPC
|
||||
+ * on a non blank media.
|
||||
+ */
|
||||
+ usalp->silent++;
|
||||
+ do_opc(usalp, dp, flags);
|
||||
+ usalp->silent--;
|
||||
+ wait_unit_ready(usalp, 120);
|
||||
+ if (gettimeofday(&starttime, (struct timezone *)0) < 0)
|
||||
+ errmsg("Cannot get start time\n");
|
||||
+
|
||||
+ if ((*dp->cdr_format)(usalp, dp, formattype) < 0) {
|
||||
+ errmsgno(EX_BAD, "Cannot format disk, aborting.\n");
|
||||
+ comexit(EX_BAD);
|
||||
+ }
|
||||
+ if (gettimeofday(&fixtime, (struct timezone *)0) < 0)
|
||||
+ errmsg("Cannot get format time\n");
|
||||
+ if (lverbose)
|
||||
+ prtimediff("Formatting time: ", &starttime, &fixtime);
|
||||
+
|
||||
+ if (!wait_unit_ready(usalp, 240) || tracks == 0) {
|
||||
+ comexit(0);
|
||||
+ }
|
||||
+ if (gettimeofday(&starttime, (struct timezone *)0) < 0)
|
||||
+ errmsg("Cannot get start time\n");
|
||||
+ }
|
||||
+
|
||||
#ifdef XXX
|
||||
if ((*dp->cdr_check_session)() < 0) {
|
||||
comexit(EX_BAD);
|
||||
@@ -1230,38 +1264,6 @@ int main(int argc, char *argv[])
|
||||
comexit(0);
|
||||
}
|
||||
}
|
||||
- if (flags & F_FORMAT) {
|
||||
- printf("wodim: media format asked\n");
|
||||
- /*
|
||||
- * Do not abort if OPC failes. Just give it a chance
|
||||
- * for better laser power calibration than without OPC.
|
||||
- *
|
||||
- * Ricoh drives return with a vendor unique sense code.
|
||||
- * This is most likely because they refuse to do OPC
|
||||
- * on a non blank media.
|
||||
- */
|
||||
- usalp->silent++;
|
||||
- do_opc(usalp, dp, flags);
|
||||
- usalp->silent--;
|
||||
- wait_unit_ready(usalp, 120);
|
||||
- if (gettimeofday(&starttime, (struct timezone *)0) < 0)
|
||||
- errmsg("Cannot get start time\n");
|
||||
-
|
||||
- if ((*dp->cdr_format)(usalp, dp, formattype) < 0) {
|
||||
- errmsgno(EX_BAD, "Cannot format disk, aborting.\n");
|
||||
- comexit(EX_BAD);
|
||||
- }
|
||||
- if (gettimeofday(&fixtime, (struct timezone *)0) < 0)
|
||||
- errmsg("Cannot get format time\n");
|
||||
- if (lverbose)
|
||||
- prtimediff("Formatting time: ", &starttime, &fixtime);
|
||||
-
|
||||
- if (!wait_unit_ready(usalp, 240) || tracks == 0) {
|
||||
- comexit(0);
|
||||
- }
|
||||
- if (gettimeofday(&starttime, (struct timezone *)0) < 0)
|
||||
- errmsg("Cannot get start time\n");
|
||||
- }
|
||||
/*
|
||||
* Reset start time so we will not see blanking time and
|
||||
* writing time counted together.
|
@ -1,12 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/genisoimage/genisoimage.h.me cdrkit-1.1.11/genisoimage/genisoimage.h
|
||||
--- cdrkit-1.1.11/genisoimage/genisoimage.h.me 2020-02-24 15:10:35.542998992 +0100
|
||||
+++ cdrkit-1.1.11/genisoimage/genisoimage.h 2020-02-24 15:10:50.011130450 +0100
|
||||
@@ -377,7 +377,7 @@ extern int use_fileversion;
|
||||
extern int split_SL_component;
|
||||
extern int split_SL_field;
|
||||
extern char *trans_tbl;
|
||||
-char *outfile;
|
||||
+extern char *outfile;
|
||||
|
||||
#define JMAX 64 /* maximum Joliet file name length (spec) */
|
||||
#define JLONGMAX 103 /* out of spec Joliet file name length */
|
@ -1,12 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/icedax/icedax.c.handler cdrkit-1.1.11/icedax/icedax.c
|
||||
--- cdrkit-1.1.11/icedax/icedax.c.handler 2011-06-02 16:37:02.446206285 +0200
|
||||
+++ cdrkit-1.1.11/icedax/icedax.c 2011-06-02 16:37:25.444206279 +0200
|
||||
@@ -1054,7 +1054,7 @@ static void exit_wrapper(int status)
|
||||
|
||||
if (child_pid != 0) {
|
||||
SCSI *usalp = get_scsi_p();
|
||||
- if (usalp->running) {
|
||||
+ if (usalp && usalp->running) {
|
||||
usalp->cb_fun = on_exitscsi;
|
||||
usalp->cb_arg = (void *) (uintptr_t) status;
|
||||
} else {
|
@ -1,201 +0,0 @@
|
||||
diff -up wrk/genisoimage/genisoimage.1.wrk wrk/genisoimage/genisoimage.1
|
||||
--- wrk/genisoimage/genisoimage.1.wrk 2017-01-04 15:58:13.697936687 +0100
|
||||
+++ wrk/genisoimage/genisoimage.1 2017-01-04 16:08:22.411801026 +0100
|
||||
@@ -115,7 +115,8 @@ is the path of the directory tree to be
|
||||
Multiple paths can be specified, and
|
||||
.B genisoimage
|
||||
will merge the files found in all of the specified path components to
|
||||
-form the filesystem image.
|
||||
+form the filesystem image. If an error is encountered while handling directory tree,
|
||||
+only error messages are produced and the process is aborted - incomplete image is not created.
|
||||
.PP
|
||||
If the option
|
||||
.B \-graft\-points
|
||||
@@ -180,6 +181,8 @@ in the
|
||||
file.
|
||||
.TP
|
||||
.BI \-A " application_id"
|
||||
+.TP
|
||||
+.BI \-appid " application_id"
|
||||
Specifies a text string that will be written into the volume header.
|
||||
This should describe the application that will be on the disc. There
|
||||
is space for 128 characters. Equivalent to
|
||||
@@ -365,6 +368,8 @@ the Sun disk label will overlay the firs
|
||||
boot image.
|
||||
.TP
|
||||
.BI \-b " eltorito_boot_image"
|
||||
+.TP
|
||||
+.BI \-eltorito\-boot " eltorito_boot_image"
|
||||
Specifies the path and filename of the boot image to be used when making
|
||||
an El Torito bootable CD for x86 PCs. The pathname must be relative to
|
||||
the source path specified to
|
||||
@@ -427,6 +432,8 @@ See the
|
||||
section for a description of this table.
|
||||
.TP
|
||||
.BI \-C " last_sess_start,next_sess_start"
|
||||
+.TP
|
||||
+.BI \-cdrecord\-params " last_sess_start,next_sess_start"
|
||||
This option is needed to create a CD Extra or the image of a second
|
||||
session or a higher-level session for a multisession disc.
|
||||
.B \-C
|
||||
@@ -452,6 +459,8 @@ session on a CD Extra. This is a multise
|
||||
in the first session and an ISO9660 filesystem in the second session.
|
||||
.TP
|
||||
.BI \-c " boot_catalog"
|
||||
+.TP
|
||||
+.BI \-eltorito\-catalog " boot_catalog"
|
||||
Specifies the path and filename of the boot catalog, which is required
|
||||
for an El Torito bootable CD. The pathname must be relative to the source
|
||||
path specified to
|
||||
@@ -488,6 +497,12 @@ For the parameter
|
||||
see the description of
|
||||
.BR \-M .
|
||||
.TP
|
||||
+.BI \-checksum_algorithm_iso " alg1,alg2,..."
|
||||
+Specify the checksum types desired for the output image.
|
||||
+.TP
|
||||
+.BI \-checksum_algorithm_template " alg1,alg2,..."
|
||||
+Specify the checksum types desired for the output jigdo template.
|
||||
+.TP
|
||||
.BI \-copyright " file"
|
||||
Specifies copyright information, typically a filename on the disc.
|
||||
There is space for 37 characters. Equivalent to
|
||||
@@ -497,12 +512,16 @@ in the
|
||||
file.
|
||||
.TP
|
||||
.B \-d
|
||||
+.TP
|
||||
+.B \-omit\-period
|
||||
Do not append a period to files that do not have one.
|
||||
.br
|
||||
This violates the ISO9660 standard, but it happens to work on many systems.
|
||||
Use with caution.
|
||||
.TP
|
||||
.B \-D
|
||||
+.TP
|
||||
+.B \-disable\-deep\-relocation
|
||||
Do not use deep directory relocation, and instead just pack them in the
|
||||
way we see them.
|
||||
.br
|
||||
@@ -510,6 +529,9 @@ If ISO9660:1999 has not been selected,
|
||||
this violates the ISO9660 standard, but it happens to work on many systems.
|
||||
Use with caution.
|
||||
.TP
|
||||
+.B \-debug
|
||||
+Set debug flag.
|
||||
+.TP
|
||||
.BI \-dir\-mode " mode"
|
||||
Overrides the mode of directories used to create the image to
|
||||
.IR mode ,
|
||||
@@ -535,7 +557,14 @@ another directory
|
||||
needs to include all needed files (filenames must be all caps) for a
|
||||
compliant DVD-Video filesystem.
|
||||
.TP
|
||||
+.BI \-e " efi_boot_file"
|
||||
+.TP
|
||||
+.BI \-efi\-boot " efi_boot_file"
|
||||
+Set EFI boot image name.
|
||||
+.TP
|
||||
.B \-f
|
||||
+.TP
|
||||
+.B \-follow\-links
|
||||
Follow symbolic links when generating the filesystem. When this option is not
|
||||
in use, symbolic links will be entered using Rock Ridge if enabled, otherwise
|
||||
they will be ignored.
|
||||
@@ -740,6 +769,8 @@ See the
|
||||
section below for more details.
|
||||
.TP
|
||||
.B \-l
|
||||
+.TP
|
||||
+.B \-full\-iso9660\-filenames
|
||||
Allow full 31-character filenames. Normally the ISO9660 filename will be in an
|
||||
8.3 format which is compatible with MS-DOS, even though the ISO9660 standard
|
||||
allows filenames of up to 31 characters. If you use this option, the disc may
|
||||
@@ -870,6 +901,8 @@ with
|
||||
.BR \-C .
|
||||
.TP
|
||||
.B \-N
|
||||
+.TP
|
||||
+.B \-omit\-version\-number
|
||||
Omit version numbers from ISO9660 filenames.
|
||||
.br
|
||||
This violates the ISO9660 standard, but no one really uses the
|
||||
@@ -967,6 +1000,8 @@ in the
|
||||
file.
|
||||
.TP
|
||||
.BI \-p " preparer_id"
|
||||
+.TP
|
||||
+.BI \-preparer " preparer_id"
|
||||
Specifies a text string that will be written into the volume header.
|
||||
This should describe the preparer of the CD-ROM, usually with a mailing
|
||||
address and phone number. There is space for 128 characters.
|
||||
@@ -1008,10 +1043,14 @@ This makes
|
||||
even less verbose. No progress output will be provided.
|
||||
.TP
|
||||
.B \-R
|
||||
+.TP
|
||||
+.B \-rock
|
||||
Generate SUSP and RR records using the Rock Ridge protocol to further describe
|
||||
the files on the ISO9660 filesystem.
|
||||
.TP
|
||||
.B \-r
|
||||
+.TP
|
||||
+.B \-rational\-rock
|
||||
This is like the \-R option, but file ownership and modes are set to
|
||||
more useful values. The uid and gid are set to zero, because they are
|
||||
usually only useful on the author's system, and not useful to the
|
||||
@@ -1092,6 +1131,11 @@ intentionally. Accessing several older v
|
||||
support by the operating system to choose which sessions are to be
|
||||
mounted.
|
||||
.TP
|
||||
+.BI \-s " sector type"
|
||||
+.TP
|
||||
+.BI \-sectype " sector type"
|
||||
+Set output sector type to e.g. data/xa1/raw.
|
||||
+ .TP
|
||||
.BI \-sort " sort_file"
|
||||
Sort file locations on the media. Sorting is controlled by a file that
|
||||
contains pairs of filenames and sorting offset weighting.
|
||||
@@ -1213,6 +1257,8 @@ in the
|
||||
file.
|
||||
.TP
|
||||
.B \-T
|
||||
+.TP
|
||||
+.B \-translation\-table
|
||||
Generate a file
|
||||
.I TRANS.TBL
|
||||
in each directory on the CD-ROM, which can be used
|
||||
@@ -1262,6 +1308,8 @@ to
|
||||
This option is the default on VMS.
|
||||
.TP
|
||||
.B \-U
|
||||
+.TP
|
||||
+.B \-untranslated\-filenames
|
||||
Allows "untranslated" filenames, completely violating the ISO9660 standards
|
||||
described above. Enables the following flags:
|
||||
.B \-d \-l \-N \-allow\-leading\-dots \-relaxed\-filenames
|
||||
@@ -1333,6 +1381,8 @@ must be specified before
|
||||
on each command line.
|
||||
.TP
|
||||
.B \-v
|
||||
+.TP
|
||||
+.B \-verbose
|
||||
Verbose execution. If given twice on the command line, extra debug information
|
||||
will be printed.
|
||||
.TP
|
||||
@@ -1341,7 +1391,15 @@ Identical to
|
||||
.B \-m
|
||||
.IR glob .
|
||||
.TP
|
||||
+.B \-XA
|
||||
+Generate XA directory attruibutes.
|
||||
+.TP
|
||||
+.B \-xa
|
||||
+Generate rationalized XA directory attruibutes.
|
||||
+.TP
|
||||
.B \-z
|
||||
+.TP
|
||||
+.B \-transparent\-compression
|
||||
Generate special
|
||||
.I RRIP
|
||||
records for transparently compressed files.
|
@ -1,37 +0,0 @@
|
||||
diff -up wrk/genisoimage/jte.c.wrk wrk/genisoimage/jte.c
|
||||
--- wrk/genisoimage/jte.c.wrk 2013-02-22 13:24:47.722196877 +0100
|
||||
+++ wrk/genisoimage/jte.c 2013-02-25 12:41:45.136653487 +0100
|
||||
@@ -280,7 +280,7 @@ extern int list_file_in_jigdo(char *file
|
||||
if (!jtemplate_out)
|
||||
return 0;
|
||||
|
||||
- memset(md5, 0, sizeof(md5));
|
||||
+ memset(md5, 0, 16);
|
||||
|
||||
/* Cheaper to check file size first */
|
||||
if (size < jte_min_size)
|
||||
diff -up wrk/genisoimage/md5.c.wrk wrk/genisoimage/md5.c
|
||||
--- wrk/genisoimage/md5.c.wrk 2013-02-22 13:15:18.210866321 +0100
|
||||
+++ wrk/genisoimage/md5.c 2013-02-22 13:15:29.979935133 +0100
|
||||
@@ -183,7 +183,7 @@ mk_MD5Final (unsigned char digest[16], s
|
||||
putu32(ctx->buf[1], digest + 4);
|
||||
putu32(ctx->buf[2], digest + 8);
|
||||
putu32(ctx->buf[3], digest + 12);
|
||||
- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
|
||||
+ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
|
||||
}
|
||||
|
||||
/* The four core functions - F1 is optimized somewhat */
|
||||
diff -up wrk/libedc/edcspeed.c.wrk wrk/libedc/edcspeed.c
|
||||
--- wrk/libedc/edcspeed.c.wrk 2013-02-22 10:45:33.353219110 +0100
|
||||
+++ wrk/libedc/edcspeed.c 2013-02-22 10:46:52.497686387 +0100
|
||||
@@ -35,7 +35,8 @@ static int encspeed()
|
||||
secs = 10;
|
||||
end = 75*1000000 * secs;
|
||||
|
||||
- memset(sect, 0, sizeof(sect));
|
||||
+ //faulty and unneccessary, immediately rewritten again
|
||||
+ //memset(sect, 0, sizeof(sect));
|
||||
for (i=0; i < 2352; ) {
|
||||
sect[i++] = 'J';
|
||||
sect[i++] = 'S';
|
@ -1,556 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/CMakeLists.txt.paranoiacdda cdrkit-1.1.11/CMakeLists.txt
|
||||
--- cdrkit-1.1.11/CMakeLists.txt.paranoiacdda 2012-07-31 14:27:15.166155309 +0200
|
||||
+++ cdrkit-1.1.11/CMakeLists.txt 2012-07-31 14:27:28.469613175 +0200
|
||||
@@ -1,3 +1,3 @@
|
||||
PROJECT (cdrkit C)
|
||||
-SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
|
||||
+SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
|
||||
|
||||
diff -up cdrkit-1.1.11/icedax/CMakeLists.txt.paranoiacdda cdrkit-1.1.11/icedax/CMakeLists.txt
|
||||
--- cdrkit-1.1.11/icedax/CMakeLists.txt.paranoiacdda 2012-07-31 14:27:15.228157411 +0200
|
||||
+++ cdrkit-1.1.11/icedax/CMakeLists.txt 2012-07-31 14:27:15.239157786 +0200
|
||||
@@ -1,8 +1,9 @@
|
||||
PROJECT (icedax C)
|
||||
-INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include)
|
||||
+INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include)
|
||||
include(../include/AddScgBits.cmake)
|
||||
include(../include/AddSchilyBits.cmake)
|
||||
include(../include/AddNetworkBits.cmake)
|
||||
+INCLUDE (CheckLibraryExists)
|
||||
|
||||
FIND_FILE (HAVE_SYS_SOUNDCARD_H sys/soundcard.h)
|
||||
IF(HAVE_SYS_SOUNDCARD_H)
|
||||
@@ -18,12 +19,20 @@ IF(HAVE_LIBOSSAUDIO)
|
||||
LIST(APPEND EXTRA_LIBS "ossaudio")
|
||||
ENDIF(HAVE_LIBOSSAUDIO)
|
||||
|
||||
-LIST(APPEND EXTRA_LIBS paranoia)
|
||||
+CHECK_INCLUDE_FILES(cdda/cdda_interface.h HAVE_CDDA_INTERFACE_H)
|
||||
+CHECK_LIBRARY_EXISTS (cdda_paranoia paranoia_init "" HAVE_LIBPARANOIA)
|
||||
+IF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
|
||||
+ LIST(APPEND EXTRA_LIBS cdda_paranoia cdda_interface)
|
||||
+ELSE(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
|
||||
+ MESSAGE(FATAL_ERROR "You need cdparanoia library installed")
|
||||
+ENDIF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA)
|
||||
+
|
||||
+LIST(APPEND EXTRA_LIBS)
|
||||
IF (WIN32)
|
||||
LIST(APPEND EXTRA_LIBS winmm)
|
||||
ENDIF (WIN32)
|
||||
|
||||
-LINK_DIRECTORIES(../librols ../libusal ../libparanoia)
|
||||
+LINK_DIRECTORIES(../librols ../libusal)
|
||||
ADD_EXECUTABLE (icedax aifc.c aiff.c base64.c icedax.c interface.c ioctl.c raw.c resample.c ringbuff.c scsi_cmds.c semshm.c setuid.c sha_func.c sndconfig.c sun.c toc.c wav.c)
|
||||
TARGET_LINK_LIBRARIES(icedax wodimstuff ${EXTRA_LIBS})
|
||||
SET_TARGET_PROPERTIES(icedax PROPERTIES SKIP_BUILD_RPATH TRUE)
|
||||
diff -up cdrkit-1.1.11/icedax/global.h.paranoiacdda cdrkit-1.1.11/icedax/global.h
|
||||
--- cdrkit-1.1.11/icedax/global.h.paranoiacdda 2012-07-31 14:27:15.232157548 +0200
|
||||
+++ cdrkit-1.1.11/icedax/global.h 2012-07-31 14:27:15.226157345 +0200
|
||||
@@ -17,7 +17,8 @@
|
||||
#include "md5.h"
|
||||
#endif
|
||||
#ifdef USE_PARANOIA
|
||||
-#include "cdda_paranoia.h"
|
||||
+#include <cdda/cdda_interface.h>
|
||||
+#include <cdda/cdda_paranoia.h>
|
||||
#endif
|
||||
|
||||
typedef struct index_list
|
||||
@@ -102,10 +103,10 @@ typedef struct global
|
||||
|
||||
struct paranoia_parms_t
|
||||
{
|
||||
- Ucbit disable_paranoia:1;
|
||||
- Ucbit disable_extra_paranoia:1;
|
||||
- Ucbit disable_scratch_detect:1;
|
||||
- Ucbit disable_scratch_repair:1;
|
||||
+ char disable_paranoia:1;
|
||||
+ char disable_extra_paranoia:1;
|
||||
+ char disable_scratch_detect:1;
|
||||
+ char disable_scratch_repair:1;
|
||||
int retries;
|
||||
int overlap;
|
||||
int mindynoverlap;
|
||||
diff -up cdrkit-1.1.11/icedax/icedax.c.paranoiacdda cdrkit-1.1.11/icedax/icedax.c
|
||||
--- cdrkit-1.1.11/icedax/icedax.c.paranoiacdda 2012-07-31 14:27:15.237157718 +0200
|
||||
+++ cdrkit-1.1.11/icedax/icedax.c 2012-07-31 14:27:15.238157752 +0200
|
||||
@@ -120,6 +120,10 @@
|
||||
#ifdef USE_LAME
|
||||
#include "mp3.h" /* mp3 file handling */
|
||||
#endif
|
||||
+#ifdef USE_PARANOIA
|
||||
+#include <cdda/cdda_interface.h>
|
||||
+#include <cdda/cdda_paranoia.h>
|
||||
+#endif
|
||||
#include "interface.h" /* low level cdrom interfacing */
|
||||
#include "icedax.h"
|
||||
#include "resample.h"
|
||||
@@ -128,9 +132,6 @@
|
||||
#include "ringbuff.h"
|
||||
#include "global.h"
|
||||
#include "exitcodes.h"
|
||||
-#ifdef USE_PARANOIA
|
||||
-#include "cdda_paranoia.h"
|
||||
-#endif
|
||||
#include "defaults.h"
|
||||
|
||||
static void RestrictPlaybackRate(long newrate);
|
||||
@@ -800,7 +801,7 @@ static void init_globals()
|
||||
global.useroverlap = -1; /* amount of overlapping sectors user override */
|
||||
global.need_hostorder = 0; /* processing needs samples in host endianess */
|
||||
global.in_lendian = -1; /* input endianess from SetupSCSI() */
|
||||
- global.outputendianess = NONE; /* user specified output endianess */
|
||||
+ global.outputendianess = NONE_EN; /* user specified output endianess */
|
||||
global.findminmax = 0; /* flag find extrem amplitudes */
|
||||
#ifdef HAVE_LIMITS_H
|
||||
global.maxamp[0] = INT_MIN; /* maximum amplitude */
|
||||
@@ -2418,7 +2419,7 @@ Rate Divider Rate Divider
|
||||
if (bulk == -1) bulk = 0;
|
||||
|
||||
global.need_big_endian = global.audio_out->need_big_endian;
|
||||
- if (global.outputendianess != NONE)
|
||||
+ if (global.outputendianess != NONE_EN)
|
||||
global.need_big_endian = global.outputendianess == BIG;
|
||||
|
||||
if (global.no_file) global.fname_base[0] = '\0';
|
||||
@@ -2602,7 +2603,7 @@ Rate Divider Rate Divider
|
||||
fputs( ", soundcard", stderr );
|
||||
#endif
|
||||
#if defined USE_PARANOIA
|
||||
- fputs( ", libparanoia", stderr );
|
||||
+ fputs( ", libcdda_paranoia", stderr );
|
||||
#endif
|
||||
fputs( " support\n", stderr );
|
||||
}
|
||||
@@ -2892,8 +2893,28 @@ Rate Divider Rate Divider
|
||||
#ifdef USE_PARANOIA
|
||||
if (global.paranoia_selected) {
|
||||
long paranoia_mode;
|
||||
+ cdrom_drive *tmpdrive;
|
||||
+ usal_close(get_scsi_p());
|
||||
|
||||
- global.cdp = paranoia_init(get_scsi_p(), global.nsectors);
|
||||
+ tmpdrive = cdda_identify(global.dev_name, 0, NULL);
|
||||
+ if (!tmpdrive)
|
||||
+ {
|
||||
+ fputs("Can't identify disc\n", stderr);
|
||||
+ return 1;
|
||||
+ }
|
||||
+
|
||||
+ if(global.nsectors)
|
||||
+ {
|
||||
+ tmpdrive->nsectors = global.nsectors;
|
||||
+ tmpdrive->bigbuff = global.nsectors * CD_FRAMESIZE_RAW;
|
||||
+ }
|
||||
+ if (cdda_open(tmpdrive) != 0)
|
||||
+ {
|
||||
+ fputs("Can't open disc\n", stderr);
|
||||
+ cdda_close(tmpdrive);
|
||||
+ return 1;
|
||||
+ }
|
||||
+ global.cdp = paranoia_init(tmpdrive);
|
||||
|
||||
if (global.paranoia_parms.overlap >= 0) {
|
||||
int overlap = global.paranoia_parms.overlap;
|
||||
@@ -2902,17 +2923,7 @@ Rate Divider Rate Divider
|
||||
overlap = global.nsectors - 1;
|
||||
paranoia_overlapset(global.cdp, overlap);
|
||||
}
|
||||
- /*
|
||||
- * Default to a minimum of dynamic overlapping == 0.5 sectors.
|
||||
- * If we don't do this, we get the default from libparanoia
|
||||
- * which is approx. 0.1.
|
||||
- */
|
||||
- if (global.paranoia_parms.mindynoverlap < 0)
|
||||
- paranoia_dynoverlapset(global.cdp, CD_FRAMEWORDS/2, -1);
|
||||
- paranoia_dynoverlapset(global.cdp,
|
||||
- global.paranoia_parms.mindynoverlap * CD_FRAMEWORDS,
|
||||
- global.paranoia_parms.maxdynoverlap * CD_FRAMEWORDS);
|
||||
-
|
||||
+
|
||||
paranoia_mode = PARANOIA_MODE_FULL ^ PARANOIA_MODE_NEVERSKIP;
|
||||
|
||||
if (global.paranoia_parms.disable_paranoia) {
|
||||
diff -up cdrkit-1.1.11/icedax/icedax.h.paranoiacdda cdrkit-1.1.11/icedax/icedax.h
|
||||
--- cdrkit-1.1.11/icedax/icedax.h.paranoiacdda 2012-07-31 14:27:15.216157005 +0200
|
||||
+++ cdrkit-1.1.11/icedax/icedax.h 2012-07-31 14:27:15.217157039 +0200
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
/* Endianess */
|
||||
#define GUESS (-2)
|
||||
-#define NONE (-1)
|
||||
+#define NONE_EN (-1)
|
||||
#define LITTLE 0
|
||||
#define BIG 1
|
||||
|
||||
diff -up cdrkit-1.1.11/icedax/interface.c.paranoiacdda cdrkit-1.1.11/icedax/interface.c
|
||||
--- cdrkit-1.1.11/icedax/interface.c.paranoiacdda 2012-07-31 14:27:15.235157650 +0200
|
||||
+++ cdrkit-1.1.11/icedax/interface.c 2012-07-31 14:27:15.232157548 +0200
|
||||
@@ -116,7 +116,7 @@ int (*Play_at)(SCSI *usalp, unsigned in
|
||||
int (*StopPlay)(SCSI *usalp);
|
||||
void (*trash_cache)(UINT4 *p, unsigned lSector, unsigned SectorBurstVal);
|
||||
|
||||
-#if defined USE_PARANOIA
|
||||
+#if 0 //defined USE_PARANOIA
|
||||
long cdda_read(void *d, void *buffer, long beginsector, long sectors);
|
||||
|
||||
long cdda_read(void *d, void *buffer, long beginsector, long sectors)
|
||||
diff -up cdrkit-1.1.11/icedax/toc.c.paranoiacdda cdrkit-1.1.11/icedax/toc.c
|
||||
--- cdrkit-1.1.11/icedax/toc.c.paranoiacdda 2012-07-31 14:27:15.225157311 +0200
|
||||
+++ cdrkit-1.1.11/icedax/toc.c 2012-07-31 14:27:15.230157480 +0200
|
||||
@@ -379,8 +379,7 @@ static void emit_cddb_form(char *fname_b
|
||||
static void emit_cdindex_form(char *fname_baseval);
|
||||
#endif
|
||||
|
||||
-
|
||||
-typedef struct TOC { /* structure of table of contents (cdrom) */
|
||||
+typedef struct TOC_t { /* structure of table of contents (cdrom) */
|
||||
unsigned char reserved1;
|
||||
unsigned char bFlags;
|
||||
unsigned char bTrack;
|
||||
@@ -391,8 +390,7 @@ typedef struct TOC { /* structure of tab
|
||||
int frms;
|
||||
unsigned char ISRC[16];
|
||||
int SCMS;
|
||||
-} TOC;
|
||||
-
|
||||
+} TOC_t;
|
||||
|
||||
/* Flags contains two fields:
|
||||
bits 7-4 (ADR)
|
||||
@@ -432,7 +430,7 @@ struct iterator {
|
||||
int index;
|
||||
int startindex;
|
||||
void (*reset)(struct iterator *this);
|
||||
- struct TOC *(*getNextTrack)(struct iterator *this);
|
||||
+ struct TOC_t *(*getNextTrack)(struct iterator *this);
|
||||
int (*hasNextTrack)(struct iterator *this);
|
||||
};
|
||||
|
||||
@@ -518,7 +516,7 @@ unsigned FixupTOC(unsigned no_tracks)
|
||||
InitIterator(&i, 1);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
if (IS__AUDIO(p)) count_audio_tracks++;
|
||||
}
|
||||
|
||||
@@ -733,7 +731,7 @@ static void emit_cddb_form(char *fname_b
|
||||
fprintf( cddb_form, "# Track frame offsets:\n#\n");
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
if (GETTRACK(p) == CDROM_LEADOUT) break;
|
||||
fprintf( cddb_form,
|
||||
"# %lu\n", 150 + Get_AudioStartSector(GETTRACK(p)));
|
||||
@@ -765,7 +763,7 @@ static void emit_cddb_form(char *fname_b
|
||||
|
||||
i.reset(&i);
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
int ii;
|
||||
|
||||
ii = GETTRACK(p);
|
||||
@@ -788,7 +786,7 @@ static void emit_cddb_form(char *fname_b
|
||||
|
||||
i.reset(&i);
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
int ii;
|
||||
|
||||
ii = GETTRACK(p);
|
||||
@@ -1495,7 +1493,7 @@ static int IsSingleArtist(void)
|
||||
InitIterator(&i, 1);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
int ii;
|
||||
|
||||
if (IS__DATA(p) || GETTRACK(p) == CDROM_LEADOUT) continue;
|
||||
@@ -1681,7 +1679,7 @@ static void emit_cdindex_form(char *fnam
|
||||
global.creator ? ascii2html(global.creator) : "");
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
int ii = GETTRACK(p);
|
||||
|
||||
if (ii == CDROM_LEADOUT) break;
|
||||
@@ -1703,7 +1701,7 @@ static void emit_cdindex_form(char *fnam
|
||||
fprintf( cdindex_form, " <MultipleArtistCD>\n");
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
int ii = GETTRACK(p);
|
||||
|
||||
if (ii == CDROM_LEADOUT) break;
|
||||
@@ -1942,9 +1940,9 @@ static void DisplayToc_with_gui(unsigned
|
||||
|
||||
if ((global.verbose & (SHOW_TOC | SHOW_STARTPOSITIONS | SHOW_SUMMARY | SHOW_TITLES)) != 0
|
||||
&& i.hasNextTrack(&i)) {
|
||||
- TOC *o = i.getNextTrack(&i);
|
||||
+ TOC_t *o = i.getNextTrack(&i);
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
int from;
|
||||
from = GETTRACK(o);
|
||||
|
||||
@@ -2072,9 +2070,9 @@ static void DisplayToc_no_gui(unsigned l
|
||||
count_audio_trks = 0;
|
||||
|
||||
if (i.hasNextTrack(&i)) {
|
||||
- TOC *o = i.getNextTrack(&i);
|
||||
+ TOC_t *o = i.getNextTrack(&i);
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
int from;
|
||||
from = GETTRACK(o);
|
||||
|
||||
@@ -2131,10 +2129,10 @@ static void DisplayToc_no_gui(unsigned l
|
||||
i.reset(&i);
|
||||
if ((global.verbose & SHOW_TOC) != 0 &&
|
||||
i.hasNextTrack(&i)) {
|
||||
- TOC *o = i.getNextTrack(&i);
|
||||
+ TOC_t *o = i.getNextTrack(&i);
|
||||
|
||||
for (; i.hasNextTrack(&i);) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
|
||||
if ( GETTRACK(o) <= MAXTRK ) {
|
||||
unsigned char brace1, brace2;
|
||||
@@ -2189,9 +2187,9 @@ static void DisplayToc_no_gui(unsigned l
|
||||
ii = 0;
|
||||
i.reset(&i);
|
||||
if (i.hasNextTrack(&i)) {
|
||||
- TOC *o = i.getNextTrack(&i);
|
||||
+ TOC_t *o = i.getNextTrack(&i);
|
||||
for ( ; i.hasNextTrack(&i);) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
fprintf ( stderr,
|
||||
" %2u.(%8u)",
|
||||
GETTRACK(o),
|
||||
@@ -2248,7 +2246,7 @@ static void DisplayToc_no_gui(unsigned l
|
||||
|
||||
i.reset(&i);
|
||||
for ( ; i.hasNextTrack(&i);) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
int jj = GETTRACK(p);
|
||||
|
||||
if ( global.tracktitle[jj] != NULL ) {
|
||||
@@ -2260,7 +2258,7 @@ static void DisplayToc_no_gui(unsigned l
|
||||
|
||||
i.reset(&i);
|
||||
for ( ; i.hasNextTrack(&i); ) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
int jj;
|
||||
|
||||
if (IS__DATA(p))
|
||||
@@ -2720,7 +2718,7 @@ void Read_MCN_ISRC(void)
|
||||
InitIterator(&i, 1);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
unsigned ii = GETTRACK(p);
|
||||
|
||||
if (ii == CDROM_LEADOUT) break;
|
||||
@@ -3155,7 +3153,7 @@ unsigned ScanIndices(unsigned track, uns
|
||||
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- struct TOC *p = i.getNextTrack(&i);
|
||||
+ struct TOC_t *p = i.getNextTrack(&i);
|
||||
unsigned ii = GETTRACK(p);
|
||||
|
||||
if ( ii < starttrack || IS__DATA(p) )
|
||||
@@ -3322,7 +3320,7 @@ unsigned char *Get_MCN(void)
|
||||
}
|
||||
|
||||
|
||||
-static TOC g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */
|
||||
+static TOC_t g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */
|
||||
|
||||
/*#define IS_AUDIO(i) (!(g_toc[i].bFlags & 0x40))*/
|
||||
|
||||
@@ -3397,10 +3395,10 @@ static int patch_cd_extra(unsigned track
|
||||
|
||||
static int restrict_tracks_illleadout(void)
|
||||
{
|
||||
- struct TOC *o = &g_toc[cdtracks+1];
|
||||
+ struct TOC_t *o = &g_toc[cdtracks+1];
|
||||
int i;
|
||||
for (i = cdtracks; i >= 0; i--) {
|
||||
- struct TOC *p = &g_toc[i];
|
||||
+ struct TOC_t *p = &g_toc[i];
|
||||
if (GETSTART(o) > GETSTART(p)) break;
|
||||
}
|
||||
patch_cd_extra(i+1, GETSTART(o));
|
||||
@@ -3523,7 +3521,7 @@ static void it_reset(struct iterator *th
|
||||
|
||||
|
||||
static int it_hasNextTrack(struct iterator *this);
|
||||
-static struct TOC *it_getNextTrack(struct iterator *this);
|
||||
+static struct TOC_t *it_getNextTrack(struct iterator *this);
|
||||
|
||||
static int it_hasNextTrack(struct iterator *this)
|
||||
{
|
||||
@@ -3532,7 +3530,7 @@ static int it_hasNextTrack(struct iterat
|
||||
|
||||
|
||||
|
||||
-static struct TOC *it_getNextTrack(struct iterator *this)
|
||||
+static struct TOC_t *it_getNextTrack(struct iterator *this)
|
||||
{
|
||||
/* if ( (*this->hasNextTrack)(this) == 0 ) return NULL; */
|
||||
if ( this->index > (int)cdtracks+1 ) return NULL;
|
||||
@@ -3583,7 +3581,7 @@ long Get_AudioStartSector(unsigned long
|
||||
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
|
||||
if (GETTRACK(p) == p_track) {
|
||||
if (IS__DATA(p)) {
|
||||
@@ -3613,7 +3611,7 @@ long Get_StartSector(unsigned long p_tra
|
||||
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
|
||||
if (GETTRACK(p) == p_track) {
|
||||
return GETSTART(p);
|
||||
@@ -3637,7 +3635,7 @@ long Get_EndSector(unsigned long p_track
|
||||
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
if (GETTRACK(p) == p_track) {
|
||||
p = i.getNextTrack(&i);
|
||||
if (p == NULL) {
|
||||
@@ -3669,7 +3667,7 @@ long FirstAudioTrack(void)
|
||||
else i.reset(&i);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
unsigned ii = GETTRACK(p);
|
||||
|
||||
if (ii == CDROM_LEADOUT) break;
|
||||
@@ -3687,7 +3685,7 @@ long FirstDataTrack(void)
|
||||
else i.reset(&i);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
if (IS__DATA(p)) {
|
||||
return GETTRACK(p);
|
||||
}
|
||||
@@ -3708,7 +3706,7 @@ long LastAudioTrack(void)
|
||||
else i.reset(&i);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
if (IS__AUDIO(p) && (GETTRACK(p) != CDROM_LEADOUT)) {
|
||||
j = GETTRACK(p);
|
||||
}
|
||||
@@ -3730,7 +3728,7 @@ long Get_LastSectorOnCd(unsigned long p_
|
||||
if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT;
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
|
||||
if (GETTRACK(p) < p_track)
|
||||
continue;
|
||||
@@ -3749,9 +3747,9 @@ int Get_Track(unsigned long sector)
|
||||
else i.reset(&i);
|
||||
|
||||
if (i.hasNextTrack(&i)) {
|
||||
- TOC *o = i.getNextTrack(&i);
|
||||
+ TOC_t *o = i.getNextTrack(&i);
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
if ((GETSTART(o) <= sector) && (GETSTART(p) > sector)) {
|
||||
if (IS__DATA(o)) {
|
||||
return -1;
|
||||
@@ -3772,7 +3770,7 @@ int CheckTrackrange(unsigned long from,
|
||||
else i.reset(&i);
|
||||
|
||||
while (i.hasNextTrack(&i)) {
|
||||
- TOC *p = i.getNextTrack(&i);
|
||||
+ TOC_t *p = i.getNextTrack(&i);
|
||||
|
||||
if (GETTRACK(p) < from)
|
||||
continue;
|
||||
@@ -3788,54 +3786,3 @@ int CheckTrackrange(unsigned long from,
|
||||
return 0;
|
||||
}
|
||||
|
||||
-#ifdef USE_PARANOIA
|
||||
-long cdda_disc_firstsector(void *d);
|
||||
-
|
||||
-long cdda_disc_firstsector(void *d)
|
||||
-{
|
||||
- return Get_StartSector(FirstAudioTrack());
|
||||
-}
|
||||
-
|
||||
-int cdda_tracks(void *d);
|
||||
-
|
||||
-int cdda_tracks(void *d)
|
||||
-{
|
||||
- return LastAudioTrack() - FirstAudioTrack() +1;
|
||||
-}
|
||||
-
|
||||
-int cdda_track_audiop(void *d, int track);
|
||||
-
|
||||
-int cdda_track_audiop(void *d, int track)
|
||||
-{
|
||||
- return Get_Datatrack(track) == 0;
|
||||
-}
|
||||
-
|
||||
-long cdda_track_firstsector(void *d, int track);
|
||||
-
|
||||
-long cdda_track_firstsector(void *d, int track)
|
||||
-{
|
||||
- return Get_AudioStartSector(track);
|
||||
-}
|
||||
-
|
||||
-long cdda_track_lastsector(void *d, int track);
|
||||
-
|
||||
-long cdda_track_lastsector(void *d, int track)
|
||||
-{
|
||||
- return Get_EndSector(track);
|
||||
-}
|
||||
-
|
||||
-long cdda_disc_lastsector(void *d);
|
||||
-
|
||||
-long cdda_disc_lastsector(void *d)
|
||||
-{
|
||||
- return Get_LastSectorOnCd(cdtracks) - 1;
|
||||
-}
|
||||
-
|
||||
-int cdda_sector_gettrack(void *d,long sector);
|
||||
-
|
||||
-int cdda_sector_gettrack(void *d, long sector)
|
||||
-{
|
||||
- return Get_Track(sector);
|
||||
-}
|
||||
-
|
||||
-#endif
|
@ -1,13 +0,0 @@
|
||||
diff -up wrk/include/glibc_elf.h.wrk wrk/include/glibc_elf.h
|
||||
--- wrk/include/glibc_elf.h.wrk 2014-09-19 16:04:45.546981432 +0200
|
||||
+++ wrk/include/glibc_elf.h 2014-09-19 16:38:55.407991682 +0200
|
||||
@@ -2081,7 +2081,8 @@ typedef Elf32_Addr Elf32_Conflict;
|
||||
#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */
|
||||
|
||||
/* Keep this the last entry. */
|
||||
-#define R_PPC64_NUM 107
|
||||
+//symbol conflicting with system headers on ppc64le and nowhere used
|
||||
+//#define R_PPC64_NUM 107
|
||||
|
||||
/* PowerPC64 specific values for the Dyn d_tag field. */
|
||||
#define DT_PPC64_GLINK (DT_LOPROC + 0)
|
@ -1,12 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/readom/readom.c.readsegfault cdrkit-1.1.11/readom/readom.c
|
||||
--- cdrkit-1.1.11/readom/readom.c.readsegfault 2011-03-07 15:51:46.889441591 +0100
|
||||
+++ cdrkit-1.1.11/readom/readom.c 2011-03-07 15:51:50.702938263 +0100
|
||||
@@ -906,7 +906,7 @@ read_ftoc(SCSI *usalp, parm_t *parmp, BO
|
||||
|
||||
|
||||
strcpy(filename, "toc.dat");
|
||||
- if (strcmp(parmp->name, "/dev/null") != 0) {
|
||||
+ if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) {
|
||||
|
||||
len = strlen(parmp->name);
|
||||
if (len > (sizeof (filename)-5)) {
|
@ -1,31 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/genisoimage/tree.c.rootstat cdrkit-1.1.11/genisoimage/tree.c
|
||||
--- cdrkit-1.1.11/genisoimage/tree.c.rootstat 2011-01-25 14:15:36.766389403 +0100
|
||||
+++ cdrkit-1.1.11/genisoimage/tree.c 2011-01-25 14:17:24.804643126 +0100
|
||||
@@ -48,6 +48,7 @@
|
||||
#include <fctldefs.h>
|
||||
#include <device.h>
|
||||
#include <schily.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
extern int allow_limited_size;
|
||||
|
||||
@@ -1421,12 +1422,16 @@ insert_file_entry(struct directory *this
|
||||
return (0);
|
||||
}
|
||||
if (this_dir == root && strcmp(short_name, ".") == 0)
|
||||
- root_statbuf = statbuf; /* Save this for later on */
|
||||
+ memcpy(&root_statbuf, &statbuf, sizeof(root_statbuf)); /* Save this for later on */
|
||||
|
||||
/* We do this to make sure that the root entries are consistent */
|
||||
if (this_dir == root && strcmp(short_name, "..") == 0) {
|
||||
- statbuf = root_statbuf;
|
||||
- lstatbuf = root_statbuf;
|
||||
+ /* for the case .. comes before . */
|
||||
+ if (!root_statbuf.st_ctime) {
|
||||
+ stat_filter(dirname(whole_path), &root_statbuf);
|
||||
+ }
|
||||
+ memcpy(&statbuf, &root_statbuf, sizeof(statbuf));
|
||||
+ memcpy(&lstatbuf, &root_statbuf, sizeof(lstatbuf));
|
||||
}
|
||||
if (S_ISLNK(lstatbuf.st_mode)) {
|
||||
|
@ -1,60 +0,0 @@
|
||||
diff -up wrk/genisoimage/rock.c.wrk wrk/genisoimage/rock.c
|
||||
--- wrk/genisoimage/rock.c.wrk 2017-01-04 14:25:54.879670532 +0100
|
||||
+++ wrk/genisoimage/rock.c 2017-01-04 15:11:38.061228649 +0100
|
||||
@@ -39,6 +39,11 @@
|
||||
#include <device.h>
|
||||
#include <schily.h>
|
||||
|
||||
+/* "major" and "minor" macros will be moved to sysmacros.h
|
||||
+ * silence the warning
|
||||
+ * added by cdrkit-1.1.11-sysmacros.patch */
|
||||
+#include <sys/sysmacros.h>
|
||||
+
|
||||
#define SU_VERSION 1
|
||||
|
||||
#define SL_ROOT 8
|
||||
diff -up wrk/genisoimage/tree.c.wrk wrk/genisoimage/tree.c
|
||||
--- wrk/genisoimage/tree.c.wrk 2017-01-04 14:21:47.472189363 +0100
|
||||
+++ wrk/genisoimage/tree.c 2017-01-04 15:13:32.989466729 +0100
|
||||
@@ -50,6 +50,11 @@
|
||||
#include <schily.h>
|
||||
#include <libgen.h>
|
||||
|
||||
+/* "major" and "minor" macros will be moved to sysmacros.h
|
||||
+ * silence the warning
|
||||
+ * added by cdrkit-1.1.11-sysmacros.patch */
|
||||
+#include <sys/sysmacros.h>
|
||||
+
|
||||
extern int allow_limited_size;
|
||||
|
||||
#ifdef VMS
|
||||
diff -up wrk/icedax/interface.c.wrk wrk/icedax/interface.c
|
||||
--- wrk/icedax/interface.c.wrk 2017-01-04 14:46:54.298203958 +0100
|
||||
+++ wrk/icedax/interface.c 2017-01-04 15:14:06.333535804 +0100
|
||||
@@ -55,6 +55,11 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <statdefs.h>
|
||||
|
||||
+/* "major" and "minor" macros will be moved to sysmacros.h
|
||||
+ * silence the warning
|
||||
+ * added by cdrkit-1.1.11-sysmacros.patch */
|
||||
+#include <sys/sysmacros.h>
|
||||
+
|
||||
|
||||
#include "mycdrom.h"
|
||||
#include "lowlevel.h"
|
||||
diff -up wrk/icedax/ioctl.c.wrk wrk/icedax/ioctl.c
|
||||
--- wrk/icedax/ioctl.c.wrk 2017-01-04 14:49:45.834583930 +0100
|
||||
+++ wrk/icedax/ioctl.c 2017-01-04 15:15:10.268668248 +0100
|
||||
@@ -36,6 +36,11 @@
|
||||
#include <schily.h>
|
||||
#include <device.h>
|
||||
|
||||
+/* "major" and "minor" macros will be moved to sysmacros.h
|
||||
+ * silence the warning
|
||||
+ * added by cdrkit-1.1.11-sysmacros.patch */
|
||||
+#include <sys/sysmacros.h>
|
||||
+
|
||||
#include <usal/scsitransp.h>
|
||||
|
||||
#include "mycdrom.h"
|
@ -1,33 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/librols/CMakeLists.txt.usalinst cdrkit-1.1.11/librols/CMakeLists.txt
|
||||
--- cdrkit-1.1.11/librols/CMakeLists.txt.usalinst 2012-07-31 10:51:30.270669381 +0200
|
||||
+++ cdrkit-1.1.11/librols/CMakeLists.txt 2012-07-31 10:52:02.365378257 +0200
|
||||
@@ -3,5 +3,11 @@ INCLUDE_DIRECTORIES(../include ../libhfs
|
||||
|
||||
SET(LIBROLS_SRCS astoi.c astoll.c astoull.c breakline.c cmpbytes.c comerr.c error.c fexec.c fillbytes.c getargs.c getav0.c getdomainname.c geterrno.c gethostid.c gethostname.c getpagesize.c handlecond.c movebytes.c raisecond.c rename.c saveargs.c seterrno.c spawn.c strcatl.c strdup.c streql.c swabbytes.c usleep.c stdio/cvmod.c stdio/dat.c stdio/fcons.c stdio/fdown.c stdio/fdup.c stdio/ffileread.c stdio/ffilewrite.c stdio/fgetline.c stdio/file_raise.c stdio/fileclose.c stdio/fileluopen.c stdio/filemopen.c stdio/fileopen.c stdio/filepos.c stdio/fileread.c stdio/filereopen.c stdio/fileseek.c stdio/filesize.c stdio/filestat.c stdio/filewrite.c stdio/flag.c stdio/flush.c stdio/fpipe.c stdio/niread.c stdio/niwrite.c stdio/nixread.c stdio/nixwrite.c stdio/openfd.c stdio/peekc.c default.c)
|
||||
|
||||
-ADD_LIBRARY (rols STATIC ${CMAKE_CURRENT_SOURCE_DIR}/../include/xconfig.h ${CMAKE_CURRENT_SOURCE_DIR}/../include/align.h ${LIBROLS_SRCS})
|
||||
+ADD_LIBRARY (rols SHARED ${CMAKE_CURRENT_SOURCE_DIR}/../include/xconfig.h ${CMAKE_CURRENT_SOURCE_DIR}/../include/align.h ${LIBROLS_SRCS})
|
||||
+SET_TARGET_PROPERTIES(rols PROPERTIES
|
||||
+ VERSION 0.0.1
|
||||
+ SOVERSION 0
|
||||
+)
|
||||
+
|
||||
+INSTALL(TARGETS rols DESTINATION lib${LIB_SUFFIX})
|
||||
|
||||
diff -up cdrkit-1.1.11/libusal/CMakeLists.txt.usalinst cdrkit-1.1.11/libusal/CMakeLists.txt
|
||||
--- cdrkit-1.1.11/libusal/CMakeLists.txt.usalinst 2012-07-31 10:51:30.302670085 +0200
|
||||
+++ cdrkit-1.1.11/libusal/CMakeLists.txt 2012-07-31 10:52:09.190528942 +0200
|
||||
@@ -6,5 +6,12 @@ ADD_DEFINITIONS(-DUSE_RCMD_RSH)
|
||||
#SET(LIBSCG_SRCS rdummy.c usalsettarget.c usaltimes.c scsi-linux-ata.c scsi-linux-pg.c scsi-linux-sg.c scsierrs.c scsihack.c scsihelp.c scsiopen.c scsitransp.c)
|
||||
SET(LIBSCG_SRCS usalsettarget.c usaltimes.c scsierrs.c scsihack.c scsihelp.c scsiopen.c scsitransp.c scsi-remote.c)
|
||||
LINK_DIRECTORIES(../librols)
|
||||
-ADD_LIBRARY (usal STATIC ${LIBSCG_SRCS})
|
||||
+ADD_LIBRARY (usal SHARED ${LIBSCG_SRCS})
|
||||
+
|
||||
TARGET_LINK_LIBRARIES(usal ${SCG_SELF_LIBS})
|
||||
+SET_TARGET_PROPERTIES(usal PROPERTIES
|
||||
+ VERSION 0.0.1
|
||||
+ SOVERSION 0
|
||||
+)
|
||||
+INSTALL(TARGETS usal DESTINATION lib${LIB_SUFFIX})
|
||||
+INSTALL(FILES usal/scsicdb.h usal/aspi-dos.h usal/usalcmd.h usal/usalio.h usal/scsireg.h usal/usalops.h usal/scsidefs.h usal/spti-wnt.h usal/srb_os2.h usal/scsitransp.h usal/aspi-win32.h usal/scsisense.h usaltimes.h pg.h DESTINATION include/usal)
|
@ -1,104 +0,0 @@
|
||||
diff -up cdrkit-1.1.11/Changelog.utf8 cdrkit-1.1.11/Changelog
|
||||
--- cdrkit-1.1.11/Changelog.utf8 2012-07-31 12:38:50.207872763 +0200
|
||||
+++ cdrkit-1.1.11/Changelog 2012-07-31 12:38:57.669026934 +0200
|
||||
@@ -519,7 +519,7 @@ cdrkit (2.01.01a08+X.12) UNRELEASED; urg
|
||||
|
||||
cdrkit (2.01.01a08+X.11) UNRELEASED; urgency=low
|
||||
|
||||
- * 26_author_locale (ASCII transliteration of Jörg in the standard credits
|
||||
+ * 26_author_locale (ASCII transliteration of Jörg in the standard credits
|
||||
message)
|
||||
* 28_cdda2wav_interface (Linux friendly cdda2wav behaviour)
|
||||
* 30_doc_typo_fixes (various documentation/message fixes)
|
||||
@@ -821,8 +821,8 @@ Sun May 16 01:37:11 2004 Joerg Schilling
|
||||
|
||||
Sun May 16 01:26:52 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* cdrecord.1 1.95
|
||||
- Eißfeldt -> Ei\*sfeldt
|
||||
- µsec -> \*msec
|
||||
+ Eißfeldt -> Ei\*sfeldt
|
||||
+ ľsec -> \*msec
|
||||
|
||||
Sat May 15 23:14:18 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* subchan.c 1.19
|
||||
@@ -1057,7 +1057,7 @@ Wed Jan 14 15:37:47 2004 Joerg Schilling
|
||||
Wed Jan 14 01:14:27 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* scsi-mac-iokit.c 1.8
|
||||
ux_errno wird nun korrekt gesetzt wenn ein Kommando schiefgeht
|
||||
- Die Sense Daten werden nicht mehr gelöscht
|
||||
+ Die Sense Daten werden nicht mehr gelöscht
|
||||
Author ist nun "schily", denn das Modul kommt nun teilweise dirch scgcheck
|
||||
|
||||
Tue Jan 13 20:43:44 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
@@ -1074,7 +1074,7 @@ Mon Jan 12 00:33:39 2004 Joerg Schilling
|
||||
|
||||
Sun Jan 11 18:42:14 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* scsi-linux-sg.c 1.77
|
||||
- Versuch das /dev/hd* Interface von Linux-2.6 besser zu unterstützen.
|
||||
+ Versuch das /dev/hd* Interface von Linux-2.6 besser zu unterstützen.
|
||||
|
||||
Sun Jan 11 16:18:48 2004 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* scsi-linux-sg.c 1.76
|
||||
@@ -6144,7 +6144,7 @@ Mon Oct 26 00:27:22 1998 Joerg Schilling
|
||||
New manufacturer: Xcitec Inc.
|
||||
Doremi Media Co., Ltd.
|
||||
Matsushita Electric Industrial Co.,Ltd.
|
||||
- CDA Datenträger Albrechts GmbH.
|
||||
+ CDA Datenträger Albrechts GmbH.
|
||||
|
||||
Sun Oct 25 13:00:22 1998 Joerg Schilling <joerg@schily.isdn.cs.tu-berlin.de>
|
||||
* cdrecord.c 1.71
|
||||
diff -up cdrkit-1.1.11/doc/icedax/README.utf8 cdrkit-1.1.11/doc/icedax/README
|
||||
--- cdrkit-1.1.11/doc/icedax/README.utf8 2012-07-31 12:38:18.903226517 +0200
|
||||
+++ cdrkit-1.1.11/doc/icedax/README 2012-07-31 12:38:18.902226496 +0200
|
||||
@@ -387,7 +387,7 @@ and
|
||||
|
||||
<http://www.anime.net/~goemon/linux-cd/cdda-list.html>
|
||||
|
||||
-From a news posting from Björn Wiberg
|
||||
+From a news posting from Björn Wiberg
|
||||
|
||||
> The following table was generated using the CDROM.CFG file from Nero
|
||||
> v3.0.4.2.
|
||||
diff -up cdrkit-1.1.11/doc/icedax/THANKS.utf8 cdrkit-1.1.11/doc/icedax/THANKS
|
||||
--- cdrkit-1.1.11/doc/icedax/THANKS.utf8 2012-07-31 12:38:18.901226475 +0200
|
||||
+++ cdrkit-1.1.11/doc/icedax/THANKS 2012-07-31 12:38:18.901226475 +0200
|
||||
@@ -5,7 +5,7 @@ http://www.mode.net/
|
||||
|
||||
and
|
||||
|
||||
-Fraunhofer Institut für integrierte Schaltungen (FhG-IIS)
|
||||
+Fraunhofer Institut für integrierte Schaltungen (FhG-IIS)
|
||||
http://www.iis.fhg.de/
|
||||
|
||||
Code for extraction of ISRC and MCN codes as well as MD5 signatures
|
||||
@@ -33,4 +33,4 @@ Francesco Chemolli (getopt_long patches)
|
||||
Thanks to all testers and finally Jim McLaughlin for supplying
|
||||
the first cdda-reader source code (that got me started).
|
||||
|
||||
-Heiko Eißfeldt
|
||||
+Heiko Eißfeldt
|
||||
diff -up cdrkit-1.1.11/doc/READMEs/README.ATAPI.utf8 cdrkit-1.1.11/doc/READMEs/README.ATAPI
|
||||
--- cdrkit-1.1.11/doc/READMEs/README.ATAPI.utf8 2012-07-31 12:38:18.899226433 +0200
|
||||
+++ cdrkit-1.1.11/doc/READMEs/README.ATAPI 2012-07-31 12:38:18.900226454 +0200
|
||||
@@ -279,7 +279,7 @@ selectively telling the kernel what to u
|
||||
this would not be needed if the Linux SCSI CD-ROM driver would be more
|
||||
up to date and supports standard conforming drives.
|
||||
|
||||
-Jörg Schilling <schilling@fokus.fhg.de>
|
||||
+Jörg Schilling <schilling@fokus.fhg.de>
|
||||
|
||||
--------------------------------------------------
|
||||
Here is a hint from Alan Brown <alanb@manawatu.gen.nz>:
|
||||
diff -up cdrkit-1.1.11/doc/READMEs/README.cdplus.utf8 cdrkit-1.1.11/doc/READMEs/README.cdplus
|
||||
--- cdrkit-1.1.11/doc/READMEs/README.cdplus.utf8 2012-07-31 12:38:18.900226454 +0200
|
||||
+++ cdrkit-1.1.11/doc/READMEs/README.cdplus 2012-07-31 12:38:18.900226454 +0200
|
||||
@@ -63,7 +63,7 @@ Note: If you want to create an HFS hybri
|
||||
use the '-part' option to genisoimage. Otherwise, the data track will be mounted
|
||||
as an ISO9660/Joliet CD when used on a Mac.
|
||||
|
||||
-Jörg
|
||||
+Jörg
|
||||
|
||||
Edited for cdrkit by Christian Fromme <kaner@strace.org> and Eduard Bloch
|
||||
|
@ -1,22 +0,0 @@
|
||||
diff -up wrk/genisoimage/exclude.c.wrk wrk/genisoimage/exclude.c
|
||||
--- wrk/genisoimage/exclude.c.wrk 2015-02-25 13:16:28.054237196 +0100
|
||||
+++ wrk/genisoimage/exclude.c 2015-02-25 13:33:06.761312002 +0100
|
||||
@@ -39,7 +39,7 @@ exclude(char *fn)
|
||||
{
|
||||
register int i;
|
||||
|
||||
- for (i = 0; excl[i] && i < MAXEXCL; i++)
|
||||
+ for (i = 0; i < MAXEXCL && excl[i]; i++)
|
||||
;
|
||||
|
||||
if (i == MAXEXCL) {
|
||||
@@ -69,7 +69,7 @@ is_excluded(char *fn)
|
||||
/*
|
||||
* very dumb search method ...
|
||||
*/
|
||||
- for (i = 0; excl[i] && i < MAXEXCL; i++) {
|
||||
+ for (i = 0; i < MAXEXCL && excl[i]; i++) {
|
||||
if (strcmp(excl[i], fn) == 0) {
|
||||
return (1); /* found -> excluded filenmae */
|
||||
}
|
||||
diff -up wrk/icedax/toc.c.wrk wrk/icedax/toc.c
|
@ -1,206 +0,0 @@
|
||||
diff -up cdrkit-1.1.8/wodim/wodim.c.werror cdrkit-1.1.8/wodim/wodim.c
|
||||
--- cdrkit-1.1.8/wodim/wodim.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/wodim/wodim.c 2008-05-27 15:36:22.000000000 +0200
|
||||
@@ -4089,7 +4089,7 @@ audioread(SCSI *usalp, cdr_t *dp, int fl
|
||||
|
||||
read_scsi(usalp, buf, 1000, 1);
|
||||
printf("XXX:\n");
|
||||
- write(1, buf, 512); /* FIXME: handle return value */
|
||||
+ do{int ret;ret=write(1, buf, 512);}while(0); /* FIXME: handle return value */
|
||||
unload_media(usalp, dp, flags);
|
||||
comexit(0);
|
||||
#endif
|
||||
diff -up cdrkit-1.1.8/wodim/isosize.c.werror cdrkit-1.1.8/wodim/isosize.c
|
||||
--- cdrkit-1.1.8/wodim/isosize.c.werror 2008-05-27 15:41:36.000000000 +0200
|
||||
+++ cdrkit-1.1.8/wodim/isosize.c 2008-05-27 15:42:12.000000000 +0200
|
||||
@@ -69,7 +69,7 @@ isosize(int f)
|
||||
vp = (struct iso9660_pr_voldesc *) &vd;
|
||||
|
||||
do {
|
||||
- read(f, &vd, sizeof (vd)); /* FIXME: check return value */
|
||||
+ do{int ret;ret=read(f, &vd, sizeof (vd));}while(0); /* FIXME: check return value */
|
||||
if (GET_UBYTE(vd.vd_type) == VD_PRIMARY)
|
||||
break;
|
||||
|
||||
diff -up cdrkit-1.1.8/icedax/toc.c.werror cdrkit-1.1.8/icedax/toc.c
|
||||
--- cdrkit-1.1.8/icedax/toc.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/icedax/toc.c 2008-05-27 15:41:11.000000000 +0200
|
||||
@@ -1071,7 +1071,7 @@ static int handle_userchoice(char *p, un
|
||||
/* get user response. */
|
||||
do {
|
||||
fprintf(stderr, "please choose one (0-%u): ", nr);
|
||||
- scanf("%u", &user_choice); /* FIXME: check return value */
|
||||
+ do{int ret;ret=scanf("%u", &user_choice);}while(0); /* FIXME: check return value */
|
||||
} while (user_choice > nr);
|
||||
|
||||
if (user_choice == nr)
|
||||
diff -up cdrkit-1.1.8/genisoimage/diag/dump.c.werror cdrkit-1.1.8/genisoimage/diag/dump.c
|
||||
--- cdrkit-1.1.8/genisoimage/diag/dump.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/diag/dump.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -368,7 +368,7 @@ main(int argc, char *argv[])
|
||||
do {
|
||||
if (file_addr < (off_t)0) file_addr = (off_t)0;
|
||||
showblock(1);
|
||||
- read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
|
||||
+ do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
|
||||
if (c == 'a')
|
||||
file_addr -= PAGE;
|
||||
if (c == 'b')
|
||||
@@ -378,11 +378,11 @@ main(int argc, char *argv[])
|
||||
printf("Enter new starting block (in hex):");
|
||||
if (sizeof (file_addr) > sizeof (long)) {
|
||||
Llong ll;
|
||||
- scanf("%llx", &ll); /* FIXME: check return value */
|
||||
+ do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
|
||||
file_addr = (off_t)ll;
|
||||
} else {
|
||||
long l;
|
||||
- scanf("%lx", &l); /* FIXME: check return value */
|
||||
+ do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
|
||||
file_addr = (off_t)l;
|
||||
}
|
||||
file_addr = file_addr << 11;
|
||||
@@ -392,7 +392,7 @@ main(int argc, char *argv[])
|
||||
if (c == 'f') {
|
||||
crsr2(20, 1);
|
||||
printf("Enter new search string:");
|
||||
- fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
|
||||
+ do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
|
||||
while (search[strlen((char *)search)-1] == '\n')
|
||||
search[strlen((char *)search)-1] = 0;
|
||||
crsr2(20, 1);
|
||||
diff -up cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror cdrkit-1.1.8/genisoimage/diag/isoinfo.c
|
||||
--- cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/diag/isoinfo.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -651,7 +651,7 @@ extract_file(struct iso_directory_record
|
||||
#endif
|
||||
len -= tlen;
|
||||
extent++;
|
||||
- write(STDOUT_FILENO, buff, tlen); /* FIXME: check return value */
|
||||
+ do{int ret;ret=write(STDOUT_FILENO, buff, tlen);}while(0); /* FIXME: check return value */
|
||||
}
|
||||
}
|
||||
|
||||
diff -up cdrkit-1.1.8/genisoimage/diag/isodump.c.werror cdrkit-1.1.8/genisoimage/diag/isodump.c
|
||||
--- cdrkit-1.1.8/genisoimage/diag/isodump.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/diag/isodump.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -655,7 +655,7 @@ main(int argc, char *argv[])
|
||||
if (file_addr < 0)
|
||||
file_addr = (off_t)0;
|
||||
showblock(1);
|
||||
- read(STDIN_FILENO, &c, 1); /* FIXME: check return value */
|
||||
+ do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */
|
||||
if (c == 'a')
|
||||
file_addr -= blocksize;
|
||||
if (c == 'b')
|
||||
@@ -665,11 +665,11 @@ main(int argc, char *argv[])
|
||||
printf("Enter new starting block (in hex):");
|
||||
if (sizeof (file_addr) > sizeof (long)) {
|
||||
Llong ll;
|
||||
- scanf("%llx", &ll); /* FIXME: check return value */
|
||||
+ do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */
|
||||
file_addr = (off_t)ll;
|
||||
} else {
|
||||
long l;
|
||||
- scanf("%lx", &l); /* FIXME: check return value */
|
||||
+ do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */
|
||||
file_addr = (off_t)l;
|
||||
}
|
||||
file_addr = file_addr * blocksize;
|
||||
@@ -679,7 +679,7 @@ main(int argc, char *argv[])
|
||||
if (c == 'f') {
|
||||
crsr2(20, 1);
|
||||
printf("Enter new search string:");
|
||||
- fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */
|
||||
+ do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */
|
||||
while (search[strlen((char *)search)-1] == '\n')
|
||||
search[strlen((char *)search)-1] = 0;
|
||||
crsr2(20, 1);
|
||||
diff -up cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror cdrkit-1.1.8/genisoimage/diag/isovfy.c
|
||||
--- cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/diag/isovfy.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -591,11 +591,11 @@ check_path_tables(int typel_extent, int
|
||||
readsecs(typel_extent * blocksize / 2048, typel, ISO_BLOCKS(path_table_size));
|
||||
#else
|
||||
lseek(fileno(infile), (off_t)((off_t)typel_extent) * blocksize, SEEK_SET);
|
||||
- read(fileno(infile), typel, path_table_size); /* FIXME: check return value */
|
||||
+ do{int ret;ret=read(fileno(infile), typel, path_table_size);}while(0); /* FIXME: check return value */
|
||||
#endif
|
||||
typem = (char *) malloc(path_table_size);
|
||||
lseek(fileno(infile), (off_t)((off_t)typem_extent) * blocksize, SEEK_SET);
|
||||
- read(fileno(infile), typem, path_table_size); /* FIXME: check return value */
|
||||
+ do{int ret;ret=read(fileno(infile), typem, path_table_size);}while(0); /* FIXME: check return value */
|
||||
|
||||
j = path_table_size;
|
||||
pnt = typel;
|
||||
diff -up cdrkit-1.1.8/genisoimage/jte.c.werror cdrkit-1.1.8/genisoimage/jte.c
|
||||
--- cdrkit-1.1.8/genisoimage/jte.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/jte.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "vms.h"
|
||||
#endif
|
||||
|
||||
+#include "md5.h"
|
||||
+
|
||||
/* Different types used in building our state list below */
|
||||
#define JTET_FILE_MATCH 1
|
||||
#define JTET_NOMATCH 2
|
||||
@@ -643,7 +645,7 @@ static void flush_bz2_chunk(void *buffer
|
||||
|
||||
err = BZ2_bzCompressInit(&c_stream, 9, 0, 0);
|
||||
comp_buf = malloc(2 * size); /* Worst case */
|
||||
- c_stream.next_out = comp_buf;
|
||||
+ c_stream.next_out = (char *)comp_buf;
|
||||
c_stream.avail_out = 2 * size;
|
||||
c_stream.next_in = buffer;
|
||||
c_stream.avail_in = size;
|
||||
@@ -691,7 +693,7 @@ static void write_compressed_chunk(unsig
|
||||
if (!uncomp_buf)
|
||||
{
|
||||
#ifdef USE_LIBSCHILY
|
||||
- comerr("failed to allocate %d bytes for template compression buffer\n", uncomp_size);
|
||||
+ comerr("failed to allocate %d bytes for template compression buffer\n", (int)uncomp_size);
|
||||
#else
|
||||
fprintf(stderr, "failed to allocate %d bytes for template compression buffer\n", uncomp_size);
|
||||
exit(1);
|
||||
@@ -1019,8 +1021,8 @@ void write_jt_match_record(char *filenam
|
||||
#endif
|
||||
}
|
||||
if (first_block)
|
||||
- rsync64_sum = rsync64(buf, MIN_JIGDO_FILE_SIZE);
|
||||
- checksum_update(iso_context, buf, use);
|
||||
+ rsync64_sum = rsync64((unsigned char *)buf, MIN_JIGDO_FILE_SIZE);
|
||||
+ checksum_update(iso_context, (unsigned char *)buf, use);
|
||||
// mk_MD5Update(&iso_context, buf, use);
|
||||
remain -= use;
|
||||
first_block = 0;
|
||||
@@ -1033,7 +1035,7 @@ void write_jt_match_record(char *filenam
|
||||
{
|
||||
int pad_size = sector_size - (size % sector_size);
|
||||
memset(buf, 0, pad_size);
|
||||
- checksum_update(iso_context, buf, pad_size);
|
||||
+ checksum_update(iso_context, (unsigned char *)buf, pad_size);
|
||||
// mk_MD5Update(&iso_context, buf, pad_size);
|
||||
}
|
||||
|
||||
@@ -1041,7 +1043,7 @@ void write_jt_match_record(char *filenam
|
||||
if (size % sector_size)
|
||||
{
|
||||
int pad_size = sector_size - (size % sector_size);
|
||||
- write_compressed_chunk(buf, pad_size);
|
||||
+ write_compressed_chunk((unsigned char *)buf, pad_size);
|
||||
add_unmatched_entry(pad_size);
|
||||
}
|
||||
}
|
||||
diff -up cdrkit-1.1.8/genisoimage/eltorito.c.werror cdrkit-1.1.8/genisoimage/eltorito.c
|
||||
--- cdrkit-1.1.8/genisoimage/eltorito.c.werror 2008-05-27 15:34:03.000000000 +0200
|
||||
+++ cdrkit-1.1.8/genisoimage/eltorito.c 2008-05-27 15:34:03.000000000 +0200
|
||||
@@ -660,7 +660,7 @@ fill_boot_desc(struct eltorito_defaultbo
|
||||
set_731(bi_table.bi_length, de->size);
|
||||
set_731(bi_table.bi_csum, bi_checksum);
|
||||
|
||||
- write(bootimage, &bi_table, sizeof (bi_table)); /* FIXME: check return value */
|
||||
+ do{int ret;ret=write(bootimage, &bi_table, sizeof (bi_table));}while(0); /* FIXME: check return value */
|
||||
close(bootimage);
|
||||
}
|
||||
}/* fill_boot_desc(... */
|
@ -1,66 +0,0 @@
|
||||
diff -ru origin-1.1.9/wodim/scsi_cdr.c master-1.1.9/wodim/scsi_cdr.c
|
||||
--- origin-1.1.9/wodim/scsi_cdr.c 2008-02-25 12:14:07.000000000 +0100
|
||||
+++ master-1.1.9/wodim/scsi_cdr.c 2009-07-16 12:01:29.000000000 +0200
|
||||
@@ -2181,26 +2181,30 @@
|
||||
if (inq->add_len == 0) {
|
||||
if (usalp->dev == DEV_UNKNOWN && got_inquiry) {
|
||||
usalp->dev = DEV_ACB5500;
|
||||
- strcpy(inq->vendor_info,
|
||||
- "ADAPTEC ACB-5500 FAKE");
|
||||
+ strncpy(inq->vendor_info, "ADAPTEC ", 8);
|
||||
+ strncpy(inq->prod_ident,"ACB-5500 ", 16);
|
||||
+ strncpy(inq->prod_revision, "FAKE", 4);
|
||||
|
||||
} else switch (usalp->dev) {
|
||||
-
|
||||
case DEV_ACB40X0:
|
||||
- strcpy(inq->vendor_info,
|
||||
- "ADAPTEC ACB-40X0 FAKE");
|
||||
+ strncpy(inq->vendor_info, "ADAPTEC ", 8);
|
||||
+ strncpy(inq->prod_ident, "ACB-40X0 ",16);
|
||||
+ strncpy(inq->prod_revision, "FAKE", 4);
|
||||
break;
|
||||
case DEV_ACB4000:
|
||||
- strcpy(inq->vendor_info,
|
||||
- "ADAPTEC ACB-4000 FAKE");
|
||||
+ strncpy(inq->vendor_info, "ADAPTEC ",8);
|
||||
+ strncpy(inq->prod_ident, "ACB-4000 ",16);
|
||||
+ strncpy(inq->prod_revision, "FAKE",4);
|
||||
break;
|
||||
case DEV_ACB4010:
|
||||
- strcpy(inq->vendor_info,
|
||||
- "ADAPTEC ACB-4010 FAKE");
|
||||
+ strncpy(inq->vendor_info, "ADAPTEC ",8);
|
||||
+ strncpy(inq->prod_ident, "ACB-4010 ",16);
|
||||
+ strncpy(inq->prod_revision, "FAKE",4);
|
||||
break;
|
||||
case DEV_ACB4070:
|
||||
- strcpy(inq->vendor_info,
|
||||
- "ADAPTEC ACB-4070 FAKE");
|
||||
+ strncpy(inq->vendor_info,"ADAPTEC ",8);
|
||||
+ strncpy(inq->prod_ident, "ACB-4070 ", 16);
|
||||
+ strncpy(inq->prod_revision, "FAKE",4 );
|
||||
break;
|
||||
}
|
||||
} else if (inq->add_len < 31) {
|
||||
@@ -2230,14 +2234,16 @@
|
||||
|
||||
case INQ_SEQD:
|
||||
if (usalp->dev == DEV_SC4000) {
|
||||
- strcpy(inq->vendor_info,
|
||||
- "SYSGEN SC4000 FAKE");
|
||||
+ strncpy(inq->vendor_info,"SYSGEN ",8);
|
||||
+ strncpy(inq->prod_ident, "SC4000 ",16);
|
||||
+ strncpy(inq->prod_revision, "FAKE",4);
|
||||
} else if (inq->add_len == 0 &&
|
||||
inq->removable &&
|
||||
inq->ansi_version == 1) {
|
||||
usalp->dev = DEV_MT02;
|
||||
- strcpy(inq->vendor_info,
|
||||
- "EMULEX MT02 FAKE");
|
||||
+ strncpy(inq->vendor_info,"EMULEX ",8);
|
||||
+ strncpy(inq->prod_ident, "MT02 ",16);
|
||||
+ strncpy(inq->prod_revision, "FAKE",4);
|
||||
}
|
||||
break;
|
||||
|
1
dead.package
Normal file
1
dead.package
Normal file
@ -0,0 +1 @@
|
||||
cdrkit package is retired on branch c10s for BAKERY-412
|
Loading…
Reference in New Issue
Block a user