2 Commits

3 changed files with 22 additions and 1 deletions

13
xvidcore-c23.patch Normal file
View File

@@ -0,0 +1,13 @@
diff -up xvidcore/src/encoder.h.c23 xvidcore/src/encoder.h
--- xvidcore/src/encoder.h.c23 2019-12-28 15:19:24.000000000 +0100
+++ xvidcore/src/encoder.h 2025-01-29 12:22:35.863665766 +0100
@@ -42,7 +42,9 @@
* Types
****************************************************************************/
+#if __STDC_VERSION__ < 202311L
typedef int bool;
+#endif
/*****************************************************************************
* Structures

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 19 09:36:55 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Add xvidcore-c23.patch: Fix build with gcc 15 (patch borrowed
from fedora).
-------------------------------------------------------------------
Wed Dec 6 21:30:12 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xvidcore
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,8 @@ License: GPL-2.0-or-later
URL: https://www.xvid.com/
Source0: https://downloads.xvid.com/downloads/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM xvidcore-c23.patch -- Fix build with gcc 15
Patch0: xvidcore-c23.patch
BuildRequires: c_compiler
BuildRequires: make