Control: tags -1 + patch

> The end of the error log shows:
> 
> parseppd.y:157:1: error: conflicting types for 'yyprint'; have 'void(FILE *, 
> int,  YYSTYPE)'
>   157 | yyprint (FILE *file, int type, YYSTYPE value)
>       | ^~~~~~~
> parseppd.y:53:13: note: previous declaration of 'yyprint' with type 
> 'void(void)'
>    53 | static void yyprint ();
>       |             ^~~~~~~
> make[4]: *** [Makefile:1723: libnowarnings_a-parseppd.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory '/build/a2ps-4.15.6/liba2ps'

In the meantime I created a little patch for this.
Since I'm not familiar with dgit, I did not yet upload a QA upload
(don't want to break something in dgit).

So here's a patch for this, which solves the build problem on my
GCC-15 build environment.

Greetings
Roland
diff --git a/debian/changelog b/debian/changelog
index 164d5aa..9844135 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+a2ps (1:4.15.6-2) UNRELEASED; urgency=medium
+
+  * QA upload.
+  * Fix prototype of yyparse, required by GCC-15 (Closes: #1096269).
+
+ -- Roland Rosenfeld <rol...@debian.org>  Sat, 01 Mar 2025 19:36:49 +0100
+
 a2ps (1:4.15.6-1) unstable; urgency=medium
 
   * QA upload.
diff --git a/debian/patches/fix-prototype-of-yyprint.patch b/debian/patches/fix-prototype-of-yyprint.patch
new file mode 100644
index 0000000..3fe1529
--- /dev/null
+++ b/debian/patches/fix-prototype-of-yyprint.patch
@@ -0,0 +1,34 @@
+From: Roland Rosenfeld <rol...@debian.org>
+Date: Sat, 1 Mar 2025 19:36:24 +0100
+X-Dgit-Generated: 1:4.15.6-2 c7c4c15a3bfa9355fb8d5bcb5e857c9f3feff472
+Subject: Fix prototype of yyprint.
+
+
+---
+
+diff --git a/liba2ps/parseppd.y b/liba2ps/parseppd.y
+index df4d863..34c2740 100644
+--- a/liba2ps/parseppd.y
++++ b/liba2ps/parseppd.y
+@@ -50,7 +50,7 @@ extern struct a2ps_job * job;
+ 
+ /* Local prototypes */
+ void yyerror (const char *msg);
+-static void yyprint ();
++// static void yyprint ();
+ 
+ /* Initilizes the obstacks */
+ void ppdlex_initialize (void);
+diff --git a/src/parsessh.y b/src/parsessh.y
+index 0a151c7..fb06bce 100644
+--- a/src/parsessh.y
++++ b/src/parsessh.y
+@@ -63,7 +63,7 @@ extern const char * sshfilename;
+ 
+ /* Local prototypes */
+ void yyerror (const char *msg);
+-static void yyprint ();
++// static void yyprint ();
+ 
+ /* Initilizes the obstacks */
+ void sshlex_initialize (void);
diff --git a/debian/patches/series b/debian/patches/series
index 79c2a2f..34a63a1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 06-encoding.diff
 etcmakefile.-pass-arguments-to-date-to-s.patch
 doca2ps.texi-remove-dates-from-generated.patch
+fix-prototype-of-yyprint.patch

Reply via email to