2 Commits

Author SHA256 Message Date
c3e48c2188 Accepting request 1252091 from Publishing
- added patches
  fix build with gcc15
  + plotutils-gcc15.patch (forwarded request 1252075 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/1252091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/plotutils?expand=0&rev=30
2025-03-12 14:20:15 +00:00
972c32401c - added patches
fix build with gcc15
  + plotutils-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/Publishing/plotutils?expand=0&rev=29
2025-03-11 14:42:56 +00:00
3 changed files with 37 additions and 1 deletions

26
plotutils-gcc15.patch Normal file
View File

@@ -0,0 +1,26 @@
Index: plotutils-2.6/include/sys-defines.h
===================================================================
--- plotutils-2.6.orig/include/sys-defines.h
+++ plotutils-2.6/include/sys-defines.h
@@ -255,7 +255,7 @@ extern __C_LINKAGE void free (void * ptr
#ifndef __cplusplus
#ifdef __STDC__
-typedef enum { false = 0, true = 1 } bool;
+# include <stdbool.h>
#else /* not __STDC__, do things the old-fashioned way */
typedef int bool;
#define false 0
Index: plotutils-2.6/libxmi/sys-defines.h
===================================================================
--- plotutils-2.6.orig/libxmi/sys-defines.h
+++ plotutils-2.6/libxmi/sys-defines.h
@@ -169,7 +169,7 @@ extern __C_LINKAGE void free (void * ptr
#ifndef __cplusplus
#ifndef HAVE_BOOL_IN_CC
#ifdef __STDC__
-typedef enum { false = 0, true = 1 } bool;
+# include <stdbool.h>
#else /* not __STDC__, do things the old-fashioned way */
typedef int bool;
#define false 0

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 11 13:59:12 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ plotutils-gcc15.patch
-------------------------------------------------------------------
Thu Feb 29 14:35:45 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package plotutils
#
# 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
@@ -38,6 +38,8 @@ Patch5: plotutils-hershey_glyphs.patch
Patch6: plotutils-man-spline.patch
# PATCH-FIX-UPSTREAM repairs postscript output
Patch7: plotutils-postscript.patch
# build with gcc15
Patch8: plotutils-gcc15.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: fontpackages-devel
@@ -156,6 +158,7 @@ graphics animations under the X Window System.
%patch -P 5 -p0
%patch -P 6 -p0
%patch -P 7 -p0
%patch -P 8 -p1
# Avoid update lex and bison code as otherwise we may see broken code (bnc#829479)
# that is do *not* remove any lex\yacc code
grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r touch