[packages/mailutils] correct types usage to fix build with gcc15
atler
atler at pld-linux.org
Mon Nov 24 00:15:28 CET 2025
commit 0fab911690b3194ec67847a0eb04d7c5af54cf2d
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Nov 24 00:14:44 2025 +0100
correct types usage to fix build with gcc15
mailutils.spec | 2 ++
types.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
---
diff --git a/mailutils.spec b/mailutils.spec
index 132b6ef..2899a59 100644
--- a/mailutils.spec
+++ b/mailutils.spec
@@ -57,6 +57,7 @@ Patch5: %{name}-extern.patch
Patch6: %{name}-cpp.patch
Patch8: %{name}-normalize.patch
Patch9: gcc14.patch
+Patch10: types.patch
URL: http://www.gnu.org/software/mailutils/mailutils.html
BuildRequires: autoconf >= 2.71
BuildRequires: automake >= 1:1.16.2
@@ -224,6 +225,7 @@ Wsparcie dla GNU mailutils w Emacsie.
%patch -P6 -p1
%patch -P8 -p1
%patch -P9 -p1
+%patch -P10 -p1
%{__rm} po/stamp-po
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..486b368
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,31 @@
+--- mailutils-3.20/libmailutils/mailer/progmailer.c.orig 2025-01-02 14:36:32.000000000 +0100
++++ mailutils-3.20/libmailutils/mailer/progmailer.c 2025-11-23 21:46:28.651920752 +0100
+@@ -45,7 +45,7 @@
+ {
+ int fd;
+ pid_t pid;
+- void (*sighandler)();
++ void (*sighandler)(int);
+ char *command;
+ };
+
+--- mailutils-3.20/mh/scan.c.orig 2025-01-02 14:36:43.000000000 +0100
++++ mailutils-3.20/mh/scan.c 2025-11-23 23:14:23.727825266 +0100
+@@ -173,7 +173,7 @@
+ #ifdef HAVE_TERMCAP_H
+ /* A subroutine for tputs */
+ int
+-putstdout(char c)
++putstdout(int c)
+ {
+ return putc(c, stdout);
+ }
+@@ -200,7 +200,7 @@
+ char *clr = tgetstr ("cl", &buffer);
+ if (clr)
+ {
+- tputs(clr, 1, (int (*)())putstdout);
++ tputs(clr, 1, putstdout);
+ return;
+ }
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mailutils.git/commitdiff/0fab911690b3194ec67847a0eb04d7c5af54cf2d
More information about the pld-cvs-commit
mailing list