From 7b1f6bdab76809eb739ddd7a9050fb58852fb54389facfd3913ec6d6f3f925df Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Wed, 10 Nov 2021 11:44:44 +0000 Subject: [PATCH] Accepting request 930497 from home:dimstar:Factory - Add fetchmail-bison-3.8.patch: Fix build with bison 3.8. Patch from upstream git OBS-URL: https://build.opensuse.org/request/show/930497 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=121 --- fetchmail-bison-3.8.patch | 11 +++++++++++ fetchmail.changes | 5 +++++ fetchmail.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 fetchmail-bison-3.8.patch diff --git a/fetchmail-bison-3.8.patch b/fetchmail-bison-3.8.patch new file mode 100644 index 0000000..c1df187 --- /dev/null +++ b/fetchmail-bison-3.8.patch @@ -0,0 +1,11 @@ +--- a/rcfile_y.y ++++ b/rcfile_y.y +@@ -461,8 +461,6 @@ + prc_errflag = 0; + querylist = hosttail = (struct query *)NULL; + +- (void)yytoknum; /* work around compiler warning */ +- + errno = 0; + + /* Check that the file is secure */ diff --git a/fetchmail.changes b/fetchmail.changes index 50c2f2d..fc8a78d 100644 --- a/fetchmail.changes +++ b/fetchmail.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 9 16:23:42 UTC 2021 - Dominique Leuenberger + +- Add fetchmail-bison-3.8.patch: Fix build with bison 3.8. + ------------------------------------------------------------------- Wed Oct 6 15:00:19 UTC 2021 - Pedro Monreal diff --git a/fetchmail.spec b/fetchmail.spec index d01ad67..46b96d3 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -51,6 +51,7 @@ Patch10: fetchmail-oauth2-c-calculate-and-pass-in-correct-buffer-size-to- Patch11: fetchmail-increase-max-password-length-to-handle-oauth-tokens.patch Patch12: fetchmail-bump-max-passwordlen-to-1bytes.patch Patch13: fetchmail-add-readme-oauth2-issue-27.patch +Patch14: fetchmail-bison-3.8.patch BuildRequires: automake BuildRequires: bison BuildRequires: flex @@ -108,6 +109,7 @@ files (.fetchmailrc). %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 cp -a %{SOURCE2} %{SOURCE3} . ACLOCAL="aclocal -I m4 -I m4-local" autoreconf -fvi