2 Commits

3 changed files with 41 additions and 1 deletions

31
gputils-gcc15.patch Normal file
View File

@@ -0,0 +1,31 @@
diff -upr gputils-1.5.2.orig/libgputils/gpcoffgen.h gputils-1.5.2/libgputils/gpcoffgen.h
--- gputils-1.5.2.orig/libgputils/gpcoffgen.h 2025-05-07 06:36:26.569734412 +0000
+++ gputils-1.5.2/libgputils/gpcoffgen.h 2025-05-07 06:46:37.858716071 +0000
@@ -88,7 +88,7 @@ extern gp_reloc_t *gp_coffgen_add_reloc(
#define RELOC_DISABLE_WARN (1 << 0)
#define RELOC_ENABLE_CINIT_WARN (1 << 1)
-extern void gp_coffgen_check_relocations(const gp_object_t *Object, unsigned int Behavior);
+extern void gp_coffgen_check_relocations(const gp_object_t *Object, gp_boolean Behavior);
extern gp_boolean gp_coffgen_del_reloc(gp_section_t *Section, gp_reloc_t *Relocation);
extern const char *gp_coffgen_reloc_type_to_str(uint16_t Type);
diff -upr gputils-1.5.2.orig/libgputils/gptypes.h gputils-1.5.2/libgputils/gptypes.h
--- gputils-1.5.2.orig/libgputils/gptypes.h 2025-05-07 06:36:26.564625043 +0000
+++ gputils-1.5.2/libgputils/gptypes.h 2025-05-07 06:39:03.405350007 +0000
@@ -26,10 +26,14 @@ Boston, MA 02111-1307, USA. */
#include "stdhdr.h"
+#if __STDC_VERSION__ < 202311L
typedef enum {
false = (0 == 1),
true = (0 == 0)
} gp_boolean;
+#else
+typedef bool gp_boolean;
+#endif
typedef long gp_symvalue_t;

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 7 06:54:12 UTC 2025 - pgajdos@suse.com
- added patches
https://sourceforge.net/p/gputils/bugs/329/
+ gputils-gcc15.patch
-------------------------------------------------------------------
Tue Feb 27 11:17:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package gputils
#
# Copyright (c) 2022 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 @@ URL: http://gputils.sourceforge.net
Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gputils-no-build-time.patch -- fix W: file-contains-current-date
Patch1: gputils-no-build-time.patch
# https://sourceforge.net/p/gputils/bugs/329/
Patch2: gputils-gcc15.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex