[packages/mp4v2] - rel 2 - fix gcc 15 bool issue and incorrect use of default parameter values in c++
baggins
baggins at pld-linux.org
Thu Oct 29 09:06:43 CET 2026
commit c1bc405934ee2b1ec04c523c83cc3018d4a177b7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Oct 29 09:05:34 2026 +0100
- rel 2
- fix gcc 15 bool issue and incorrect use of default parameter values in c++
gcc15.patch | 44 ++++++++++++++++++++++++++++++++++++++++++++
mp4v2.spec | 4 +++-
2 files changed, 47 insertions(+), 1 deletion(-)
---
diff --git a/mp4v2.spec b/mp4v2.spec
index a2e2644..577ce74 100644
--- a/mp4v2.spec
+++ b/mp4v2.spec
@@ -2,7 +2,7 @@ Summary: MP4v2 library provides API for creation and modification of MP4 files
Summary(pl.UTF-8): Biblioteka MP4v2 - API do tworzenia i modyfikowania plików MP4
Name: mp4v2
Version: 5.0.1
-Release: 1
+Release: 2
License: MPL v1.1
Group: Applications/Multimedia
#Source0Download: https://github.com/TechSmith/mp4v2/releases
@@ -12,6 +12,7 @@ Patch0: %{name}-export.patch
Patch1: %{name}-doc.patch
Patch2: %{name}-abi.patch
Patch3: %{name}-int-overflow.patch
+Patch4: gcc15.patch
URL: https://github.com/TechSmith/mp4v2
BuildRequires: help2man
BuildRequires: libstdc++-devel
@@ -80,6 +81,7 @@ Ten pakiet zawiera statyczną wersję biblioteki MP4v2.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
# "txt" build fails without this directory
mkdir -p doc/articles/txt
diff --git a/gcc15.patch b/gcc15.patch
new file mode 100644
index 0000000..ac58ce8
--- /dev/null
+++ b/gcc15.patch
@@ -0,0 +1,44 @@
+--- mp4v2-Release-ThirdParty-MP4v2-5.0.1/include/mp4v2/file.h~ 2026-10-29 08:36:34.000000000 +0100
++++ mp4v2-Release-ThirdParty-MP4v2-5.0.1/include/mp4v2/file.h 2026-10-29 08:46:23.695486536 +0100
+@@ -337,7 +337,7 @@
+ MP4V2_EXPORT
+ MP4FileHandle MP4ReadCb(
+ const char* fileName,
+- ShouldParseAtomCallback cb = nullptr );
++ ShouldParseAtomCallback cb);
+
+ /** Read an existing mp4 file.
+ *
+--- mp4v2-Release-ThirdParty-MP4v2-5.0.1/include/mp4v2/platform.h~ 2021-06-30 20:06:32.000000000 +0200
++++ mp4v2-Release-ThirdParty-MP4v2-5.0.1/include/mp4v2/platform.h 2026-10-29 08:50:04.412850443 +0100
+@@ -66,7 +66,8 @@
+ #define TRUE 1
+ #endif
+
+-#if !defined( __cplusplus )
++#if !defined( __cplusplus )
++#if defined(__GNUC__) && __GNUC__ < 15
+ #ifndef bool
+ #if SIZEOF_BOOL == 8
+ typedef uint64_t bool;
+@@ -88,6 +89,9 @@
+ #define true TRUE
+ #endif
+ #endif
++#else
++#include <stdbool.h>
++#endif
+ #endif
+
+ /*****************************************************************************/
+--- mp4v2-Release-ThirdParty-MP4v2-5.0.1/src/mp4.cpp~ 2026-10-29 08:56:23.000000000 +0100
++++ mp4v2-Release-ThirdParty-MP4v2-5.0.1/src/mp4.cpp 2026-10-29 08:58:37.301158939 +0100
+@@ -87,7 +87,7 @@
+
+ ///////////////////////////////////////////////////////////////////////////////
+
+-MP4FileHandle MP4ReadCb( const char* fileName, ShouldParseAtomCallback cb/*=nullptr*/ )
++MP4FileHandle MP4ReadCb( const char* fileName, ShouldParseAtomCallback cb = nullptr)
+ {
+ if (!fileName)
+ return MP4_INVALID_FILE_HANDLE;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mp4v2.git/commitdiff/c1bc405934ee2b1ec04c523c83cc3018d4a177b7
More information about the pld-cvs-commit
mailing list