2 Commits

3 changed files with 55 additions and 2 deletions

43
a2ps-gcc15.patch Normal file
View File

@@ -0,0 +1,43 @@
diff --git a/liba2ps/parseppd.y b/liba2ps/parseppd.y
index df4d863..ab24a78 100644
--- a/liba2ps/parseppd.y
+++ b/liba2ps/parseppd.y
@@ -39,6 +39,7 @@
#include "message.h"
#include "routines.h"
#include "lexppd.h"
+#include "parseppd.h"
#define YYDEBUG 1
#define YYERROR_VERBOSE 1
@@ -50,7 +51,7 @@ extern struct a2ps_job * job;
/* Local prototypes */
void yyerror (const char *msg);
-static void yyprint ();
+static void yyprint (FILE *file, int type, YYSTYPE value);
/* Initilizes the obstacks */
void ppdlex_initialize (void);
diff --git a/src/parsessh.y b/src/parsessh.y
index 0a151c7..395d7f5 100644
--- a/src/parsessh.y
+++ b/src/parsessh.y
@@ -39,6 +39,7 @@
#include "message.h"
#include "routines.h"
#include "yy2ssh.h"
+#include "parsessh.h"
#define YYDEBUG 1
#define YYERROR_VERBOSE 1
@@ -63,7 +64,7 @@ extern const char * sshfilename;
/* Local prototypes */
void yyerror (const char *msg);
-static void yyprint ();
+static void yyprint (FILE *file, int type, YYSTYPE value);
/* Initilizes the obstacks */
void sshlex_initialize (void);

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 5 10:43:29 UTC 2025 - pgajdos@suse.com
- added patches
https://savannah.gnu.org/bugs/?66678
+ a2ps-gcc15.patch
-------------------------------------------------------------------
Tue May 21 08:06:52 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package a2ps
#
# Copyright (c) 2024 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
@@ -37,6 +37,8 @@ Patch9: a2ps-4.13-utf8.patch
Patch10: a2ps-4.13-types.patch
Patch13: a2ps-4.14-linker.patch
Patch17: a2ps-buildcompare.patch
# https://savannah.gnu.org/bugs/?66678
Patch18: a2ps-gcc15.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@@ -59,7 +61,7 @@ Requires: sed
Requires: w3m
Requires: wdiff
Requires(post): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
Requires(preun): %{install_info_prereq}
Suggests: ImageMagick
Suggests: acroread
Suggests: gv
@@ -115,6 +117,7 @@ touch -r configure.ac .ref
%patch -P 13 -p1 -b .p13
%patch -P 17 -p1 -b .p17
%patch -P 0 -b .p0
%patch -P 18 -p1
cp -f %{SOURCE3} po/ko.po
find -type f | grep -vE '(parseppd|parsessh).y' | xargs \
sed -ri 's/59 Temple Place(,| -) Suite 330/51 Franklin Street, Fifth Floor/;s/02111-1307/02110-1301/'