[packages/mythplugins] - rediff patches - fix rpm macro quoting - fix building with gcc 11 - rel 10

baggins baggins at pld-linux.org
Sun Sep 26 12:26:04 CEST 2021


commit fc302853cc49fc58d731d5bb7bde690962171898
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Sep 26 12:25:30 2021 +0200

    - rediff patches
    - fix rpm macro quoting
    - fix building with gcc 11
    - rel 10

 gcc11.patch                         | 20 ++++++++++++++++++++
 mythplugins-mytharchive-INT64.patch | 12 ++++++------
 mythplugins.spec                    |  6 ++++--
 mythweb-chdir.patch                 | 10 +++++-----
 4 files changed, 35 insertions(+), 13 deletions(-)
---
diff --git a/mythplugins.spec b/mythplugins.spec
index 9e7334d..ee51eca 100644
--- a/mythplugins.spec
+++ b/mythplugins.spec
@@ -30,7 +30,7 @@ Summary:	Main MythTV plugins
 Summary(pl.UTF-8):	Główne wtyczki MythTV
 Name:		mythplugins
 Version:	0.26.1
-Release:	9
+Release:	10
 License:	GPL v2
 Group:		Applications/Multimedia
 Source0:	ftp://ftp.osuosl.org/pub/mythtv/%{name}-%{version}.tar.bz2
@@ -43,6 +43,7 @@ Source5:	mythweb-httpd.conf
 Patch0:		mythweb-chdir.patch
 Patch1:		system-zmq.patch
 Patch2:		cxx11.patch
+Patch3:		gcc11.patch
 Patch10:	%{name}-compile_fixes_for_qt_4_7.patch
 Patch20:	%{name}-mytharchive-INT64.patch
 URL:		http://www.mythtv.org/
@@ -294,11 +295,12 @@ Obsługa kamer przemysłowych dla MythTV.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 #%patch10 -p1
 %patch20 -p1
 
 # lib64 fix - enable to update patch
-%if %{_lib} != "lib" && 0
+%if "%{_lib}" != "lib" && 0
 find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
 xargs grep -l /lib/ . | xargs sed -i -e '
 s,%{_prefix}/lib/,/%{_lib}/,g
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..f26e00d
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,20 @@
+--- mythplugins-0.26.1/mythmusic/mythmusic/importmusic.cpp~	2013-08-15 16:44:02.000000000 +0200
++++ mythplugins-0.26.1/mythmusic/mythmusic/importmusic.cpp	2021-09-26 12:23:50.262781479 +0200
+@@ -1114,13 +1114,13 @@
+     QFileInfo fi(filename);
+     filename = fi.fileName();
+ 
+-    if (filename.contains("front", Qt::CaseInsensitive) > 0)
++    if (filename.contains("front", Qt::CaseInsensitive) != 0)
+         m_typeList->SetValue(tr("Front Cover"));
+-    else if (filename.contains("back", Qt::CaseInsensitive) > 0)
++    else if (filename.contains("back", Qt::CaseInsensitive) != 0)
+         m_typeList->SetValue(tr("Back Cover"));
+-    else if (filename.contains("inlay", Qt::CaseInsensitive) > 0)
++    else if (filename.contains("inlay", Qt::CaseInsensitive) != 0)
+         m_typeList->SetValue(tr("Inlay"));
+-    else if (filename.contains("cd", Qt::CaseInsensitive) > 0)
++    else if (filename.contains("cd", Qt::CaseInsensitive) != 0)
+         m_typeList->SetValue(tr("CD"));
+     else
+         m_typeList->SetValue(tr("<Unknown>"));
diff --git a/mythplugins-mytharchive-INT64.patch b/mythplugins-mytharchive-INT64.patch
index c7628c6..15602b8 100644
--- a/mythplugins-mytharchive-INT64.patch
+++ b/mythplugins-mytharchive-INT64.patch
@@ -1,9 +1,9 @@
-diff -urN mythplugins-0.22.orig/mytharchive/mytharchivehelper/main.cpp mythplugins-0.22/mytharchive/mytharchivehelper/main.cpp
---- mythplugins-0.22.orig/mytharchive/mytharchivehelper/main.cpp	2009-02-12 13:53:35.000000000 +0100
-+++ mythplugins-0.22/mytharchive/mytharchivehelper/main.cpp	2009-02-12 18:00:33.000000000 +0100
-@@ -39,6 +39,10 @@
- // mytharchive headers
- #include "../mytharchive/archiveutil.h"
+diff -urNp -x '*.orig' mythplugins-0.26.1.org/mytharchive/mytharchivehelper/main.cpp mythplugins-0.26.1/mytharchive/mytharchivehelper/main.cpp
+--- mythplugins-0.26.1.org/mytharchive/mytharchivehelper/main.cpp	2013-08-15 16:44:02.000000000 +0200
++++ mythplugins-0.26.1/mytharchive/mytharchivehelper/main.cpp	2021-09-26 12:20:08.236252907 +0200
+@@ -103,6 +103,10 @@ namespace
+     };
+ }
  
 +#ifndef INT64_C    // Used in ffmpeg headers to define some constants
 +#define INT64_C(v)   (v ## LL)
diff --git a/mythweb-chdir.patch b/mythweb-chdir.patch
index e0a17a9..1e56396 100644
--- a/mythweb-chdir.patch
+++ b/mythweb-chdir.patch
@@ -1,7 +1,7 @@
-diff -dur -x'*~' mythplugins-0.22.orig/mythweb/mythweb.php mythplugins-0.22/mythweb/mythweb.php
---- mythplugins-0.22.orig/mythweb/mythweb.php	2009-01-20 07:42:03.000000000 +0100
-+++ mythplugins-0.22/mythweb/mythweb.php	2010-01-23 14:34:35.000000000 +0100
-@@ -12,6 +12,9 @@
+diff -urNp -x '*.orig' mythplugins-0.26.1.org/mythweb/mythweb.php mythplugins-0.26.1/mythweb/mythweb.php
+--- mythplugins-0.26.1.org/mythweb/mythweb.php	2013-06-26 23:10:02.000000000 +0200
++++ mythplugins-0.26.1/mythweb/mythweb.php	2021-09-26 12:19:53.182932909 +0200
+@@ -8,6 +8,9 @@
   *
  /**/
  
@@ -9,5 +9,5 @@ diff -dur -x'*~' mythplugins-0.22.orig/mythweb/mythweb.php mythplugins-0.22/myth
 +  chdir('/usr/share/mythweb');
 +
  // Add a custom include path?
-     if (!empty($_SERVER['include_path']) && $_SERVER['include_path'] != '.')
+     if (!empty($_SERVER['include_path']) && $_SERVER['include_path'] != '.') {
          ini_set('include_path', $_SERVER['include_path'].PATH_SEPARATOR.ini_get('include_path'));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mythplugins.git/commitdiff/fc302853cc49fc58d731d5bb7bde690962171898



More information about the pld-cvs-commit mailing list