[k3b] * Sat Sep 17 2011 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1:2.0.2-5 - increase overburning tolerance

Kevin Kofler kkofler at fedoraproject.org
Sat Sep 17 21:42:18 UTC 2011


commit 51bf40f00cccd10077c86024e7ad5a6057faf598
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Sat Sep 17 22:44:06 2011 +0200

    * Sat Sep 17 2011 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1:2.0.2-5
    - increase overburning tolerance from 1/10 to 1/4 for CD-R90/99 (kde#276002)

 k3b-2.0.2-overburn-cdr90.patch |   32 ++++++++++++++++++++++++++++++++
 k3b.spec                       |   20 ++++++++++++++++----
 2 files changed, 48 insertions(+), 4 deletions(-)
---
diff --git a/k3b-2.0.2-overburn-cdr90.patch b/k3b-2.0.2-overburn-cdr90.patch
new file mode 100644
index 0000000..23f2207
--- /dev/null
+++ b/k3b-2.0.2-overburn-cdr90.patch
@@ -0,0 +1,32 @@
+From b0df9e7771ac9148004187bb53ba13ac40b01cae Mon Sep 17 00:00:00 2001
+Message-Id: <b0df9e7771ac9148004187bb53ba13ac40b01cae.1316291516.git.kevin.kofler at chello.at>
+From: Kevin Kofler <kevin.kofler at chello.at>
+Date: Sat, 17 Sep 2011 18:18:24 +0200
+Subject: [PATCH] K3b::IsOverburnAllowed: Increase tolerance from 10% to 25%.
+
+10% are not enough to allow using CD-R90 and CD-R99 media to full capacity.
+The new 25% tolerance allows using those media while still catching the common
+case of DVD ISO vs. CD media.
+
+BUG: 276002
+REVIEW: 102648
+---
+ libk3b/core/k3bglobals.cpp |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/libk3b/core/k3bglobals.cpp b/libk3b/core/k3bglobals.cpp
+index d66f601..28c12c6 100644
+--- a/libk3b/core/k3bglobals.cpp
++++ b/libk3b/core/k3bglobals.cpp
+@@ -595,7 +595,7 @@ bool K3b::IsOverburnAllowed( const K3b::Msf& projectSize, const K3b::Msf& capaci
+ bool K3b::IsOverburnAllowed( const Msf& projectSize, const Msf& capacity, const Msf& usedCapacity )
+ {
+     return( k3bcore->globalSettings()->overburn() &&
+-        (projectSize + usedCapacity) <= ( capacity.lba() - usedCapacity.lba() + capacity.lba() * 10 / 100 ) ); // 10% tolerance in overburn mode
++        (projectSize + usedCapacity) <= ( capacity.lba() - usedCapacity.lba() + capacity.lba() / 4 ) ); // 25% tolerance in overburn mode
+ }
+ 
+ 
+-- 
+1.7.6
+
diff --git a/k3b.spec b/k3b.spec
index 04b3f0d..5e04c52 100644
--- a/k3b.spec
+++ b/k3b.spec
@@ -3,7 +3,7 @@ Name:    k3b
 Summary: CD/DVD/Blu-ray burning application
 Epoch:   1
 Version: 2.0.2
-Release: 4%{?dist}
+Release: 5%{?dist}
 
 Group:   Applications/Archiving
 License: GPLv2+
@@ -14,10 +14,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # ie, where cdrecord and friends aren't present
 ExcludeArch: s390 s390x
 
-## upstreamable patches
+## upstream patches
 # wodim(cdrecord) doesnt work for DVDs/BluRay, use growisofs instead
 # http://bugzilla.redhat.com/610976
-Patch51: k3b-2.0.2-use_growisofs_instead_of_wodim.patch
+# https://git.reviewboard.kde.org/r/101208/
+# https://projects.kde.org/projects/extragear/multimedia/k3b/repository/revisions/1853eee0f15d9d5a1ab0407d5d87e36167e5c9eb
+Patch100: k3b-2.0.2-use_growisofs_instead_of_wodim.patch
+# increase overburning tolerance from 1/10 to 1/4 for CD-R90/99 media
+# http://bugs.kde.org/show_bug.cgi?id=276002
+# https://git.reviewboard.kde.org/r/102648/
+# https://projects.kde.org/projects/extragear/multimedia/k3b/repository/revisions/b0df9e7771ac9148004187bb53ba13ac40b01cae
+Patch101: k3b-2.0.2-overburn-cdr90.patch
+
 
 BuildRequires: desktop-file-utils
 BuildRequires: flac-devel
@@ -78,7 +86,8 @@ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
 %prep
 %setup -q -n %{name}-%{version}
 
-%patch51 -p1 -b .use_growisofs_instead_of_wodim
+%patch100 -p1 -b .use_growisofs_instead_of_wodim
+%patch101 -p1 .b .overburn-cdr90
 
 
 %build
@@ -173,6 +182,9 @@ update-mime-database %{_kde4_datadir}/mime &> /dev/null
 
 
 %changelog
+* Sat Sep 17 2011 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1:2.0.2-5
+- increase overburning tolerance from 1/10 to 1/4 for CD-R90/99 (kde#276002)
+
 * Sat Apr 23 2011 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1:2.0.2-4
 - prefer growisofs to wodim for DVD/BluRay also for DVD copying and data
   projects, the previous patch only worked for ISO burning (#610976)


More information about the scm-commits mailing list