Hi Matthias! On Mo, 17 Feb 2025, Matthias Klose wrote:
> Package: src:mailutils > Version: 1:3.17-2 > Severity: important > Tags: sid forky > User: [email protected] > Usertags: ftbfs-gcc-15 As far as I can see, most of the GCC 15 problems are already fixed in the upstream 3.20 version which was released in Debian 1:3.20-1. But there are still two small issues, which are fixed by the Arch Linux maintainer in https://gitlab.archlinux.org/archlinux/packaging/packages/mailutils/-/blob/87c3614083260f52dd1222e872a1836f0ff9abe1/fix-build.patch I'll attach a patch, that solves the issues for me. Greetings Roland
commit 3be5c80c775de0f7a0ea34bab32ccf71772da7aa Author: Roland Rosenfeld <[email protected]> Date: Mon Sep 8 11:35:18 2025 +0200 fix-build-gcc15.patch: Fix build with gcc 15 (Closes: #1097358). diff --git a/debian/changelog b/debian/changelog index ff6b164..a8d3702 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mailutils (1:3.20-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * fix-build-gcc15.patch: Fix build with gcc 15 (Closes: #1097358). + + -- Roland Rosenfeld <[email protected]> Mon, 08 Sep 2025 11:34:24 +0200 + mailutils (1:3.20-1) unstable; urgency=medium * New upstream release. diff --git a/debian/patches/fix-build-gcc15.patch b/debian/patches/fix-build-gcc15.patch new file mode 100644 index 0000000..fc91fb1 --- /dev/null +++ b/debian/patches/fix-build-gcc15.patch @@ -0,0 +1,28 @@ +Subject: Fix build with GCC 15 +Origin: https://gitlab.archlinux.org/archlinux/packaging/packages/mailutils/-/blob/main/fix-build.patch +Bug-Debian: https://bugs.debian.org/1097358 +From: Sergej Pupykin <[email protected]> +Last-Update: 2025-09-08 + +--- a/libmailutils/mailer/progmailer.c ++++ b/libmailutils/mailer/progmailer.c +@@ -45,7 +45,7 @@ struct _mu_progmailer + { + int fd; + pid_t pid; +- void (*sighandler)(); ++ void (*sighandler)(int); + char *command; + }; + +--- a/mh/scan.c ++++ b/mh/scan.c +@@ -200,7 +200,7 @@ clear_screen (void) + char *clr = tgetstr ("cl", &buffer); + if (clr) + { +- tputs(clr, 1, (int (*)())putstdout); ++ tputs(clr, 1, (int (*)(int))putstdout); + return; + } + } diff --git a/debian/patches/series b/debian/patches/series index a977875..df35ddd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ set_mu_sieve_moddir.patch guile-3.0.patch fix_libpq_include.patch +fix-build-gcc15.patch

