diff options
author | Marius Strobl <marius@FreeBSD.org> | 2004-08-11 20:38:53 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2004-08-11 20:38:53 +0000 |
commit | e0b61cd0ff96142ca57f92abb03b1aa912631804 (patch) | |
tree | 1bd30269b42f4407e0d469fd9150fa73c05fa3c1 /sysutils/cdrtools-devel/files | |
parent | 513d472f4bba43a003506c180040fdf09f8db373 (diff) | |
download | ports-e0b61cd0ff96142ca57f92abb03b1aa912631804.tar.gz ports-e0b61cd0ff96142ca57f92abb03b1aa912631804.zip |
Notes
Diffstat (limited to 'sysutils/cdrtools-devel/files')
3 files changed, 11 insertions, 56 deletions
diff --git a/sysutils/cdrtools-devel/files/patch-RULES::rules.cnf b/sysutils/cdrtools-devel/files/patch-RULES::rules.cnf deleted file mode 100644 index f7148061bd95..000000000000 --- a/sysutils/cdrtools-devel/files/patch-RULES::rules.cnf +++ /dev/null @@ -1,12 +0,0 @@ ---- RULES/rules.cnf.orig Sun Jan 27 16:11:31 2002 -+++ RULES/rules.cnf Sun Jun 1 18:58:37 2003 -@@ -33,8 +33,7 @@ - # - # Hack until the <mach>-<os>-*cc.rul files are updated - # --_HCCCOM= $(OARCH:%-gcc=gcc) --HCCCOM= $(_HCCCOM:%-cc=cc) -+HCCCOM= $(C_ARCH) - - _CCCOM= $(_UNIQ)$(CCCOM) - __CCCOM= $(_CCCOM:$(_UNIQ)=$(HCCCOM)) diff --git a/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c b/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c index 0e0f7f7c46ab..3183cc7116cc 100644 --- a/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c +++ b/sysutils/cdrtools-devel/files/patch-cdda2wav::interface.c @@ -17,47 +17,3 @@ if (!S_ISCHR(statstruct->st_mode)) { fprintf(stderr, "%s is not a char device\n",pdev_name); exit(SYNTAX_ERROR); -@@ -555,8 +563,25 @@ - } - dontneedgroup(); - dontneedroot(); -+#if defined (__FreeBSD__) -+ /* -+ * i_read_c_block(), used by paranoia_read_limited() for reading the -+ * data from the CD, doesn't use a page aligned buffer as required by -+ * FreeBSD for SCSI transfers (well, most OS do). Probably this should -+ * be dealt with in cdda_read() (called by i_read_c_block() with the -+ * unaligned buffer and in turn calls ReadCdRom() to do the actual read) -+ * but it seems like overkill to add yet another buffer (would make it -+ * 3 or so from do_read() to ReadCdRom() alone). Instead, limit the -+ * transfer size via the maximum for the sectors to read at once to a -+ * value that lets the data fit into a page (for FreeBSD the code below -+ * would set the maximum sectors to 27). -+ */ -+ if (global.nsectors > 26) -+ global.nsectors = 26; -+#else - if (global.nsectors > (unsigned) scg_bufsize(scgp, 3*1024*1024)/CD_FRAMESIZE_RAW) - global.nsectors = scg_bufsize(scgp, 3*1024*1024)/CD_FRAMESIZE_RAW; -+#endif - if (global.overlap >= global.nsectors) - global.overlap = global.nsectors-1; - -@@ -593,9 +618,6 @@ - exit(RACE_ERROR); - } - #endif -- if (scgp != NULL && global.scsi_verbose) { -- scgp->verbose = global.scsi_verbose; -- } - } - return retval; - } -@@ -888,6 +910,7 @@ - FatalError("No memory for SCSI structure.\n"); - } - scgp->silent = 0; -+ scgp->verbose = global.scsi_verbose; - SetupCookedIoctl( global.dev_name ); - #else - FatalError("Sorry, there is no known method to access the device.\n"); diff --git a/sysutils/cdrtools-devel/files/patch-libparanoia::paranoia.c b/sysutils/cdrtools-devel/files/patch-libparanoia::paranoia.c new file mode 100644 index 000000000000..1893c3626574 --- /dev/null +++ b/sysutils/cdrtools-devel/files/patch-libparanoia::paranoia.c @@ -0,0 +1,11 @@ +--- libparanoia/paranoia.c.orig Sun Aug 8 13:47:31 2004 ++++ libparanoia/paranoia.c Mon Aug 9 17:19:43 2004 +@@ -1481,7 +1481,7 @@ + long sofar; + long dynoverlap = (p->dynoverlap + CD_FRAMEWORDS - 1) / CD_FRAMEWORDS; + long anyflag = 0; +- int reduce = 0; ++static int reduce = 0; + static int pagesize = -1; + #define valign(x, a) (((char *)(x)) + ((a) - 1 - ((((UIntptr_t)(x))-1)%(a)))) + |