commit:     810d51c0898a7a1ffb1db4892aeec9e7c344d82a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 21 10:37:49 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 21 10:37:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=810d51c0

media-libs/libxmi: replace the patch with the good one

Closes: https://bugs.gentoo.org/951707
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/41208
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libxmi/files/libxmi-1.3-gcc15.patch | 27 ++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/media-libs/libxmi/files/libxmi-1.3-gcc15.patch 
b/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
index f4d63a139196..44074fd0370b 100644
--- a/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
+++ b/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
@@ -1,12 +1,23 @@
-https://bugs.gentoo.org/944450 (and https://bugs.gentoo.org/951707)
+https://bugs.gentoo.org/944450
+
 --- a/sys-defines.h
 +++ b/sys-defines.h
-@@ -169,7 +169,7 @@ extern __C_LINKAGE void free (void * ptr);
- #ifndef __cplusplus
- #ifndef HAVE_BOOL_IN_CC
- #ifdef __STDC__
+@@ -166,17 +166,7 @@ extern __C_LINKAGE void free (void * ptr);
+ /* Support the `bool' datatype, which our code uses extensively.          */
+ /**************************************************************************/
+ 
+-#ifndef __cplusplus
+-#ifndef HAVE_BOOL_IN_CC
+-#ifdef __STDC__
 -typedef enum { false = 0, true = 1 } bool;
+-#else  /* not __STDC__, do things the old-fashioned way */
+-typedef int bool;
+-#define false 0
+-#define true 1
+-#endif
+-#endif /* not HAVE_BOOL_IN_CC */
+-#endif /* not __cplusplus */
 +#include <stdbool.h>
- #else  /* not __STDC__, do things the old-fashioned way */
- typedef int bool;
- #define false 0
+   
+ /**************************************************************************/
+ /* Define numerical constants (unofficial, so may not be in math.h).      */

Reply via email to