[k9copy] Add patch to fix build with ffmpeg3 and gcc6 (Fedora)
by Sérgio M. Basto
commit d9805cdf81c263fb29daff3448861065ec8d10f7
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jul 4 05:20:12 2016 +0100
Add patch to fix build with ffmpeg3 and gcc6 (Fedora)
k9copy-ffmpeg3andgcc6.patch | 74 +++++++++++++++++++++++++++++++++++++++++++++
k9copy.spec | 7 ++++-
2 files changed, 80 insertions(+), 1 deletion(-)
---
diff --git a/k9copy-ffmpeg3andgcc6.patch b/k9copy-ffmpeg3andgcc6.patch
new file mode 100644
index 0000000..68218a2
--- /dev/null
+++ b/k9copy-ffmpeg3andgcc6.patch
@@ -0,0 +1,74 @@
+--- k9copy/src/core/k9tools.cpp.orig 2016-07-04 03:37:07.537698816 +0100
++++ k9copy/src/core/k9tools.cpp 2016-07-04 03:37:15.044797764 +0100
+@@ -88,7 +88,7 @@ bool k9Tools::checkProgram(QString _prog
+ #if QT_VERSION >= 0x050000
+ bool res=QStandardPaths::findExecutable( _progName) !=NULL ;
+ #else // Qt4 Code
+- bool res= KStandardDirs::findExe( _progName,NULL,false) !=NULL ;
++ bool res= KStandardDirs::findExe( _progName,NULL,0) !=NULL ;
+ #endif
+ if (_msg && !res)
+ k9Dialogs::error(i18n("Error starting program %1").arg(_progName),i18n("Running program"));
+--- k9copy/src/backup/k9dvdbackup.cpp.orig 2016-07-04 03:45:28.518294176 +0100
++++ k9copy/src/backup/k9dvdbackup.cpp 2016-07-04 03:48:20.856559514 +0100
+@@ -33,6 +33,7 @@
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <string.h>
++#include <math.h>
+ #include <qdir.h>
+
+ #include <kmessagebox.h>
+@@ -907,7 +908,8 @@ k9Vobu * k9DVDBackup::remapOffset(uint32
+
+
+ if ((vobu1 !=NULL) && (vobu2!=NULL)) {
+- *_offset = abs(vobu1->newSector - vobu2->newSector) | maskOffset1 ;
++ *_offset = fabs(vobu1->newSector - vobu2->newSector);
++ *_offset |= maskOffset1;
+ *_offset |= maskOffset2;
+ return vobu2;
+ }
+--- k9copy/src/import/k9avidecode.cpp.orig 2016-07-04 03:53:55.963959712 +0100
++++ k9copy/src/import/k9avidecode.cpp 2016-07-04 04:09:58.766458043 +0100
+@@ -26,7 +26,6 @@ static int sws_flags = SWS_BICUBIC;
+ void av_free_packet_internal(AVPacket *pkt)
+ {
+ if (pkt) {
+- if (pkt->destruct) pkt->destruct(pkt);
+ pkt->data = NULL; pkt->size = 0;
+ }
+ }
+@@ -238,14 +237,14 @@ bool k9AviDecode::open(const QString & _
+
+ int numBytes;
+ // Determine required buffer size and allocate buffer
+- numBytes=avpicture_get_size(PIX_FMT_RGB24, m_CodecCtx->width,
++ numBytes=avpicture_get_size(AV_PIX_FMT_RGB24, m_CodecCtx->width,
+ m_CodecCtx->height);
+ m_buffer=(uint8_t *)av_malloc(numBytes*sizeof(uint8_t));
+
+ // Assign appropriate parts of buffer to image planes in pFrameRGB
+ // Note that pFrameRGB is an AVFrame, but AVFrame is a superset
+ // of AVPicture
+- avpicture_fill((AVPicture *)m_FrameRGB, m_buffer, PIX_FMT_RGB24,
++ avpicture_fill((AVPicture *)m_FrameRGB, m_buffer, AV_PIX_FMT_RGB24,
+ m_CodecCtx->width, m_CodecCtx->height);
+
+
+@@ -317,13 +316,13 @@ void k9AviDecode::readFrame(double _seco
+ bFound=true;
+ #ifndef HAVE_SWSCALE
+ // Convert the image from its native format to RGB
+- img_convert((AVPicture *)m_FrameRGB, PIX_FMT_RGB24,
++ img_convert((AVPicture *)m_FrameRGB, AV_PIX_FMT_RGB24,
+ (AVPicture*)m_Frame, m_CodecCtx->pix_fmt,
+ m_CodecCtx->width, m_CodecCtx->height);
+ SaveFrame(m_FrameRGB, m_CodecCtx->width,
+ m_CodecCtx->height);
+ #else
+- toRGB_convert_ctx=sws_getContext(m_CodecCtx->width, m_CodecCtx->height, m_CodecCtx->pix_fmt, m_CodecCtx->width, m_CodecCtx->height, PIX_FMT_RGB24, sws_flags,NULL,NULL,NULL);
++ toRGB_convert_ctx=sws_getContext(m_CodecCtx->width, m_CodecCtx->height, m_CodecCtx->pix_fmt, m_CodecCtx->width, m_CodecCtx->height, AV_PIX_FMT_RGB24, sws_flags,NULL,NULL,NULL);
+ sws_scale(toRGB_convert_ctx, m_Frame->data, m_Frame->linesize, 0, m_CodecCtx->height, m_FrameRGB->data,m_FrameRGB->linesize);
+ // convert frame to QImage
+ SaveFrame(m_FrameRGB, m_CodecCtx->width,
diff --git a/k9copy.spec b/k9copy.spec
index 1765a46..d1386e5 100644
--- a/k9copy.spec
+++ b/k9copy.spec
@@ -1,7 +1,7 @@
Name: k9copy
Version: 3.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Video DVD backup and creation program
Group: Applications/Multimedia
License: GPLv2+
@@ -15,6 +15,7 @@ Patch52: k9copy-mimetype.patch
Patch53: k9copy-FindAv.patch
Patch54: k9copy-tempdir.patch
Patch55: k9copy-qt5.patch
+Patch56: k9copy-ffmpeg3andgcc6.patch
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -69,6 +70,7 @@ Video DVD backup and creation program, features include:
%patch53 -p1 -b .ffmpeg
%patch54 -p0 -b .tmpdir
#patch55 -p1 -b .qt5
+%patch56 -p1 -b .f24
%build
@@ -118,6 +120,9 @@ fi
%changelog
+* Mon Jul 04 2016 Sérgio Basto <sergio(a)serjux.com> - 3.0.3-3
+- Add patch to fix build with ffmpeg3 and gcc6 (Fedora)
+
* Sat Feb 06 2016 Sérgio Basto <sergio(a)serjux.com> - 3.0.3-2
- Add k9copy-tempdir.patch and some cleanups
8 years, 4 months
[bombono-dvd/f23] (2 commits) ...clean up
by Leigh Scott
Summary of changes:
deee541... patch for boost, ffmpeg and c++11 changes (*)
9188892... clean up (*)
(*) This commit already existed in another branch; no separate mail sent
8 years, 4 months
[mednafen] Fix error compiling with GCC 6.x on Fedora 24
by Sérgio M. Basto
commit d7486a21853a88714e8fb01a94cf1603a4b31407
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jul 4 01:15:34 2016 +0100
Fix error compiling with GCC 6.x on Fedora 24
mednafen.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/mednafen.spec b/mednafen.spec
index 74e7c7e..d966f2a 100644
--- a/mednafen.spec
+++ b/mednafen.spec
@@ -1,6 +1,6 @@
Name: mednafen
Version: 0.9.38.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A multi-system emulator utilizing OpenGL and SDL
#mednafen is a monstrosity build out of many emulators hence the colourful licensing
License: GPLv2+ and BSD and ISC and LGPLv2+ and MIT and zlib
@@ -73,6 +73,9 @@ rm -rf Documentation/*.def Documentation/*.php Documentation/generate.sh \
%changelog
+* Mon Jul 04 2016 Sérgio Basto <sergio(a)serjux.com> - 0.9.38.7-2
+- Fix error compiling with GCC 6.x on Fedora 24
+
* Thu Dec 31 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.9.38.7-1
- Updated to 0.9.38.7
8 years, 4 months
[qmc2/f23] Updated to 0.65
by Julian Sikorski
Summary of changes:
1c6958d... Updated to 0.65 (*)
(*) This commit already existed in another branch; no separate mail sent
8 years, 4 months
[qmc2/f24] Updated to 0.65
by Julian Sikorski
Summary of changes:
1c6958d... Updated to 0.65 (*)
(*) This commit already existed in another branch; no separate mail sent
8 years, 4 months
[qmc2] Updated to 0.65
by Julian Sikorski
commit 1c6958d2c63728953c3a3bd829758a8afddeb4b0
Author: Julian Sikorski <belegdol(a)fedoraproject.org>
Date: Mon Jul 4 00:13:33 2016 +0200
Updated to 0.65
.gitignore | 1 +
qmc2.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ea15c96..a2fc4f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
qmc2-0.63.tar.bz2
+/qmc2-0.65.tar.bz2
diff --git a/qmc2.spec b/qmc2.spec
index 06c6043..d116009 100644
--- a/qmc2.spec
+++ b/qmc2.spec
@@ -1,5 +1,5 @@
Name: qmc2
-Version: 0.63
+Version: 0.65
Release: 1%{?dist}
Summary: M.A.M.E. Catalog / Launcher II
@@ -87,6 +87,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/qchdman.desktop
%changelog
+* Sun Jul 03 2016 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.65-1
+- Updated to 0.65
+
* Wed Apr 27 2016 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.63-1
- Updated to 0.63
diff --git a/sources b/sources
index 0115bc9..434db1b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a8d3b943cbb1e188e18eb85fd2cc9342 qmc2-0.63.tar.bz2
+750c4c7d7fe4328a62e8858cbb4e7e69 qmc2-0.65.tar.bz2
8 years, 4 months
[mame/f23] Updated to 0.175
by Julian Sikorski
Summary of changes:
7ccb687... Updated to 0.175 (*)
(*) This commit already existed in another branch; no separate mail sent
8 years, 4 months
[mame/f24] Updated to 0.175
by Julian Sikorski
Summary of changes:
7ccb687... Updated to 0.175 (*)
(*) This commit already existed in another branch; no separate mail sent
8 years, 4 months