summaryrefslogtreecommitdiff
path: root/multimedia/k9copy-reloaded/patches
diff options
context:
space:
mode:
authorLenard Spencer <lspencer31-at-cfl-rr-com>2018-03-29 16:09:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-31 07:41:39 +0700
commit7c036c76d1728d5d729fa541d0497a1e8eb7a561 (patch)
tree805438559eda9e5c800afc0f28f953511ecc3ed2 /multimedia/k9copy-reloaded/patches
parentbf455931e4b25bd839ae15c03c416eef0d820d05 (diff)
downloadslackbuilds-7c036c76d1728d5d729fa541d0497a1e8eb7a561.tar.gz
multimedia/k9copy-reloaded: Added (DVD backup program).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/k9copy-reloaded/patches')
-rw-r--r--multimedia/k9copy-reloaded/patches/k9copy-mimetype.patch23
-rw-r--r--multimedia/k9copy-reloaded/patches/k9copy-tempdir.patch63
2 files changed, 86 insertions, 0 deletions
diff --git a/multimedia/k9copy-reloaded/patches/k9copy-mimetype.patch b/multimedia/k9copy-reloaded/patches/k9copy-mimetype.patch
new file mode 100644
index 0000000000..1c156d6055
--- /dev/null
+++ b/multimedia/k9copy-reloaded/patches/k9copy-mimetype.patch
@@ -0,0 +1,23 @@
+--- k9copy.orig/k9copy_assistant.desktop 2014-09-29 16:00:12.000000000 +0100
++++ k9copy/k9copy_assistant.desktop 2015-05-28 20:08:49.318602109 +0100
+@@ -14,9 +14,8 @@ GenericName[fr]=Backup de DVD Video
+ GenericName[tr]=DVD Vidyo Yedekleme Aracı
+ GenericName[ru]=Копирование с видео-DVD
+ GenericName[uk]=Копіювання відео-DVD
+-MimeTypes=
+ Terminal=false
+ Icon=k9copy
+ X-DocPath=k9copy/index.html
+ Categories=Qt;KDE;AudioVideo;DiscBurning;
+-X-KDE-StartupNotify=true
+\ No newline at end of file
++X-KDE-StartupNotify=true
+--- k9copy.orig/k9copy_assistant_open.desktop 2014-09-29 16:00:12.000000000 +0100
++++ k9copy/k9copy_assistant_open.desktop 2015-05-28 20:06:11.140619453 +0100
+@@ -11,4 +11,4 @@ NAme[uk]=Копіювати за доп
+ [Desktop Entry]
+ X-KDE-Solid-Predicate=[[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ] OR [ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Data|VideoDvd' ]]
+ Type=Service
+-Actions=open;
+\ No newline at end of file
++Actions=open;
diff --git a/multimedia/k9copy-reloaded/patches/k9copy-tempdir.patch b/multimedia/k9copy-reloaded/patches/k9copy-tempdir.patch
new file mode 100644
index 0000000000..e9376cf291
--- /dev/null
+++ b/multimedia/k9copy-reloaded/patches/k9copy-tempdir.patch
@@ -0,0 +1,63 @@
+--- src/core/k9tools.cpp.org 2014-09-29 17:00:12.000000000 +0200
++++ src/core/k9tools.cpp 2015-12-19 19:18:40.474442195 +0100
+@@ -48,7 +48,7 @@
+ const QString k9Tools::getTempPath() {
+ QString sPath;
+
+-sPath=QString("%1/%2/").arg(QDir::tempPath() + '/' + "k9copy/");
++sPath=QString("%1/%2/").arg(QDir::tempPath(),"k9copy/");
+
+ return sPath;
+ }
+--- src/vamps/k9fifo.cpp.org 2014-09-29 17:00:12.000000000 +0200
++++ src/vamps/k9fifo.cpp 2015-12-19 19:04:18.616261661 +0100
+@@ -11,6 +11,8 @@
+ //
+ #include "k9fifo.h"
+ #include <QDir>
++#include <errno.h>
++#include <KDebug>
+
+ uint64_t k9MemoryFifo::count() {
+ return m_count;
+@@ -134,12 +136,19 @@
+ m_wait.wait(&m_mutex);
+ }
+ m_wfile->seek(m_fstart);
+- m_wfile->write((const char*)_buffer,_size);
++ int rc=m_wfile->write((const char*)_buffer,_size) ;
++ if (rc != (int) _size) {
++ kFatal() << QString("error writing to tempfile (%1)").arg(strerror (errno));
++ abort();
++ }
+ m_fstart=m_wfile->pos();
+ if (m_fstart > MAX_FILE_SIZE) {
+ m_wfile=new QTemporaryFile(QDir::cleanPath(m_output +"/k9b"));
+ m_wfile->setAutoRemove(true);
+- m_wfile->open();
++ if(m_wfile->open() == false) {
++ kFatal() << QString("error creating tempfile in %1 (%1)").arg(QDir::cleanPath(m_output +"/k9b"), strerror (errno));
++ abort();
++ }
+ m_queue.enqueue(m_wfile);
+ m_fstart=0;
+ }
+@@ -190,12 +199,17 @@
+ if (m_rfile) {
+ m_rfile->close();
+ delete m_rfile;
++ m_rfile=NULL;
+ }
+ qDeleteAll(m_queue);
+
++
+ m_fstart=m_fend=0;
+ m_rfile=new QTemporaryFile(QDir::cleanPath(m_output +"/k9b"));
+ m_rfile->setAutoRemove(true);
+- m_rfile->open();
++ if(m_rfile->open() == false) {
++ kFatal() << QString("error creating tempfile in %1 (%1)").arg(QDir::cleanPath(m_output +"/k9b"), strerror (errno));
++ abort();
++ }
+ m_start=m_end=0;
+ }