summaryrefslogtreecommitdiff
path: root/sysutils/k3b/patches
diff options
context:
space:
mode:
authormarkd <markd>2007-07-25 02:33:03 +0000
committermarkd <markd>2007-07-25 02:33:03 +0000
commit77aaf93988092bf12b0434b09497f18728ef0487 (patch)
tree7f59732b496df87f6e17d0bfb72d269581828d71 /sysutils/k3b/patches
parent9f6e6384505a115dd8b83843a2a8fa1953cebf01 (diff)
downloadpkgsrc-77aaf93988092bf12b0434b09497f18728ef0487.tar.gz
Update k3b to 1.0.3
pkgsrc change: include patch from PR kern/36030 to work around a problem that can cause NetBSD to panic or just not read a CD. 1.0.3 ===== * Reverted to old behaviour of reloading medium before verification. Not enough testing had been done before introducing this and some systems fail to read the medium before reload. * Do not crash when the currently playing audio project item is removed. * Added desktop actions to handle empty media with K3b. * Fixed read retry when reading data tracks * K3b's dialogs now honor the global button layout setting * Do not crash on mp3 files without tags if compiled with taglib support * Do not allow to copy a rewritable media to itself. * Fixed crash on startup with devices that return bogus GET PERFORMANCE data 1.0.2 ===== * Properly determine the capacity of complete CD-R(W) media. * Mark a data project as modified if files are renamed. * Allow adding of all actions to the welcome window * Added "NoDisplay=true" property to k3b-cue.desktop and k3b-iso.desktop * Fixed supported write speed detection on some devices * No reload before verification and between writing sessions (CD copy + Mixed Mode CD) anymore
Diffstat (limited to 'sysutils/k3b/patches')
-rw-r--r--sysutils/k3b/patches/patch-ad42
-rw-r--r--sysutils/k3b/patches/patch-ae16
2 files changed, 41 insertions, 17 deletions
diff --git a/sysutils/k3b/patches/patch-ad b/sysutils/k3b/patches/patch-ad
index 16ecbe3abc5..5d07d15075d 100644
--- a/sysutils/k3b/patches/patch-ad
+++ b/sysutils/k3b/patches/patch-ad
@@ -1,20 +1,28 @@
-$NetBSD: patch-ad,v 1.3 2007/05/23 12:38:23 markd Exp $
+$NetBSD: patch-ad,v 1.4 2007/07/25 02:33:03 markd Exp $
---- libk3bdevice/k3bscsicommand_netbsd.cpp.orig 2007-05-22 12:15:54.000000000 +1200
-+++ libk3bdevice/k3bscsicommand_netbsd.cpp
-@@ -83,9 +83,13 @@ int K3bDevice::ScsiCommand::transport( T
- break;
- }
+--- libk3bdevice/k3bdevicemanager.cpp.orig 2007-07-23 23:18:12.000000000 +1200
++++ libk3bdevice/k3bdevicemanager.cpp
+@@ -99,6 +99,7 @@ typedef unsigned char u8;
-- m_device->usageLock();
-+ if ( m_device ) {
-+ m_device->usageLock();
-+ }
- int i = ::ioctl( m_deviceHandle, SCIOCCOMMAND, &d->cmd );
-- m_device->usageUnlock();
-+ if ( m_device ) {
-+ m_device->usageUnlock();
-+ }
+ #ifdef Q_OS_NETBSD
+ #include <sys/scsiio.h>
++#include <util.h>
+ #endif
+
+
+@@ -324,14 +325,7 @@ void K3bDevice::DeviceManager::NetBSDDev
+
+ int i;
+
+- // Whole disk mask (According to cd(4), the AMD64, i386 and BeBox ports use
+- // 'd' as whole-disk partition, the rest uses 'c'.)
+-
+-#if defined(__i386__) || defined (__amd64__) || defined (__bebox__)
+- static const char slicename = 'd';
+-#else
+- static const char slicename = 'c';
+-#endif
++ static char slicename = 'a' + getrawpartition();
+
+ char devicename[11]; // /dev/rcdXd + trailing zero
- if( needToClose )
- m_device->close();
diff --git a/sysutils/k3b/patches/patch-ae b/sysutils/k3b/patches/patch-ae
new file mode 100644
index 00000000000..9703ddfe3ff
--- /dev/null
+++ b/sysutils/k3b/patches/patch-ae
@@ -0,0 +1,16 @@
+$NetBSD: patch-ae,v 1.3 2007/07/25 02:33:03 markd Exp $
+
+--- libk3b/jobs/k3bdatatrackreader.cpp.orig 2007-06-24 06:35:52.000000000 +1200
++++ libk3b/jobs/k3bdatatrackreader.cpp
+@@ -219,7 +219,11 @@ void K3bDataTrackReader::WorkThread::run
+ //
+ m_device->setSpeed( 0xffff, 0xffff );
+
++#ifdef __NetBSD__
++ s_bufferSizeSectors = 31;
++#else
+ s_bufferSizeSectors = 128;
++#endif
+ unsigned char* buffer = new unsigned char[m_usedSectorSize*s_bufferSizeSectors];
+ while( s_bufferSizeSectors > 0 && read( buffer, m_firstSector.lba(), s_bufferSizeSectors ) < 0 ) {
+ kdDebug() << "(K3bDataTrackReader) determine max read sectors: "