pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/libcdio update to 0.74
details: https://anonhg.NetBSD.org/pkgsrc/rev/dfe667cd01e2
branches: trunk
changeset: 494877:dfe667cd01e2
user: drochner <drochner%pkgsrc.org@localhost>
date: Tue May 31 17:05:36 2005 +0000
description:
update to 0.74
changes:
- cd-paranoia fixes
- cdda-player fixes
- cd-drive shows MMC level
- CD Text improvements/fixes
- eject of empty CD-ROM drives on GNU/Linux
- FreeBSD audio sub-channel time reporting fixed
diffstat:
misc/libcdio/Makefile | 4 ++--
misc/libcdio/PLIST | 3 +--
misc/libcdio/distinfo | 8 ++++----
misc/libcdio/files/_cdio_netbsd.c | 30 +++++++++++++++++++++++-------
4 files changed, 30 insertions(+), 15 deletions(-)
diffs (145 lines):
diff -r e20556afde23 -r dfe667cd01e2 misc/libcdio/Makefile
--- a/misc/libcdio/Makefile Tue May 31 16:55:29 2005 +0000
+++ b/misc/libcdio/Makefile Tue May 31 17:05:36 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2005/05/03 16:17:52 drochner Exp $
+# $NetBSD: Makefile,v 1.20 2005/05/31 17:05:36 drochner Exp $
#
-DISTNAME= libcdio-0.73
+DISTNAME= libcdio-0.74
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_GNU:=libcdio/}
diff -r e20556afde23 -r dfe667cd01e2 misc/libcdio/PLIST
--- a/misc/libcdio/PLIST Tue May 31 16:55:29 2005 +0000
+++ b/misc/libcdio/PLIST Tue May 31 17:05:36 2005 +0000
@@ -1,9 +1,8 @@
-@comment $NetBSD: PLIST,v 1.9 2005/05/02 17:11:17 drochner Exp $
+@comment $NetBSD: PLIST,v 1.10 2005/05/31 17:05:36 drochner Exp $
bin/cd-drive
bin/cd-info
bin/cd-paranoia
bin/cd-read
-bin/cdda-player
bin/iso-info
bin/iso-read
include/cdio/audio.h
diff -r e20556afde23 -r dfe667cd01e2 misc/libcdio/distinfo
--- a/misc/libcdio/distinfo Tue May 31 16:55:29 2005 +0000
+++ b/misc/libcdio/distinfo Tue May 31 17:05:36 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2005/05/03 10:25:53 drochner Exp $
+$NetBSD: distinfo,v 1.10 2005/05/31 17:05:36 drochner Exp $
-SHA1 (libcdio-0.73.tar.gz) = 8929db4652646eb4fdfbadcf6f4385b24c1e25a1
-RMD160 (libcdio-0.73.tar.gz) = e51581a5d8b97d34bb09edd39ccbfcc618d74d72
-Size (libcdio-0.73.tar.gz) = 1797060 bytes
+SHA1 (libcdio-0.74.tar.gz) = 2fc5e375e0efb61068ce48f2aa41ea5c98f72b19
+RMD160 (libcdio-0.74.tar.gz) = fa1bd85ad86c963bafc02c48b77167cc33977200
+Size (libcdio-0.74.tar.gz) = 1799345 bytes
SHA1 (patch-aa) = 52c6b20279cfb8bb5b53653f43cb94cabfed4fc5
diff -r e20556afde23 -r dfe667cd01e2 misc/libcdio/files/_cdio_netbsd.c
--- a/misc/libcdio/files/_cdio_netbsd.c Tue May 31 16:55:29 2005 +0000
+++ b/misc/libcdio/files/_cdio_netbsd.c Tue May 31 17:05:36 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _cdio_netbsd.c,v 1.3 2005/05/02 17:11:17 drochner Exp $ */
+/* $NetBSD: _cdio_netbsd.c,v 1.4 2005/05/31 17:05:36 drochner Exp $ */
/*
* Copyright (c) 2003
@@ -73,7 +73,7 @@
} _img_private_t;
static driver_return_code_t
-run_scsi_cmd_freebsd(const void *p_user_data, unsigned int i_timeout_ms,
+run_scsi_cmd_freebsd(void *p_user_data, unsigned int i_timeout_ms,
unsigned int i_cdb, const mmc_cdb_t *p_cdb,
mmc_direction_t e_direction,
unsigned int i_buf, void *p_buf )
@@ -94,7 +94,7 @@
return -1;
}
if (req.retsts != SCCMD_OK) {
- fprintf(stderr, "SCIOCCOMMAND sts %d\n", req.retsts);
+ fprintf(stderr, "SCIOCCOMMAND cmd 0x%02x sts %d\n", req.cmd[0], req.retsts);
return -1;
}
@@ -131,7 +131,7 @@
return 1;
}
if (req.retsts != SCCMD_OK) {
- fprintf(stderr, "SCIOCCOMMAND sts %d\n", req.retsts);
+ fprintf(stderr, "SCIOCCOMMAND cmd 0xbe sts %d\n", req.retsts);
return 1;
}
@@ -169,7 +169,7 @@
return 1;
}
if (req.retsts != SCCMD_OK) {
- fprintf(stderr, "SCIOCCOMMAND sts %d\n", req.retsts);
+ fprintf(stderr, "SCIOCCOMMAND cmd %0xbe sts %d\n", req.retsts);
return 1;
}
@@ -308,7 +308,7 @@
return 1;
}
if (req.retsts != SCCMD_OK) {
- fprintf(stderr, "SCIOCCOMMAND sts %d\n", req.retsts);
+ fprintf(stderr, "SCIOCCOMMAND cmd 0x43 sts %d\n", req.retsts);
return 1;
}
#if 1
@@ -473,6 +473,17 @@
return true;
}
+static lsn_t
+get_disc_last_lsn_netbsd(void *user_data)
+{
+ msf_t msf;
+
+ _cdio_get_track_msf(user_data, CDIO_CDROM_LEADOUT_TRACK, &msf);
+
+ return (((msf.m * 60) + msf.s) * 75 + msf.f);
+}
+
+
char **
cdio_get_devices_freebsd (void)
{
@@ -501,6 +512,7 @@
.get_cdtext = get_cdtext_generic,
.get_default_device = cdio_get_default_device_freebsd,
.get_devices = cdio_get_devices_freebsd,
+ .get_disc_last_lsn = get_disc_last_lsn_netbsd,
.get_discmode = get_discmode_generic,
.get_drive_cap = get_drive_cap_mmc,
.get_first_track_num= _cdio_get_first_track_num,
@@ -513,6 +525,7 @@
.lseek = cdio_generic_lseek,
.read = cdio_generic_read,
.read_audio_sectors = _cdio_read_audio_sectors,
+ .read_data_sectors = read_data_sectors_generic,
.read_mode2_sector = _cdio_read_mode2_sector,
.read_mode2_sectors = _cdio_read_mode2_sectors,
.read_toc = read_toc_freebsd,
@@ -540,11 +553,14 @@
_cdio_set_arg(_data, "source",
(source_name ? source_name : DEFAULT_CDIO_DEVICE));
+ if (source_name && !cdio_is_device_generic(source_name))
+ return (NULL);
+
ret = cdio_new(&_data->gen, &_funcs);
if (!ret)
return NULL;
- if (cdio_generic_init(_data)) {
+ if (cdio_generic_init(_data, O_RDONLY)) {
return ret;
} else {
cdio_generic_free(_data);
Home |
Main Index |
Thread Index |
Old Index