tags 1097445 + patch
user [email protected]
usertags 1097445 + bsp-2025-10-brazil
thanks

On Monday, February 17 2025, Matthias Klose wrote:

> The package fails to build in a test rebuild on at least amd64 with
> gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
> severity of this report will be raised before the forky release.

Hi there,

I fixed the issue and took the liberty to upload an NMU to DELAYED-5.
Feel free to cancel if you'd like.

Unfortunately the Salsa repo isn't up-to-day, but I'm sending a debdiff
in this bug just in case.

Thanks!

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

q
diff -Nru netcat-1.10/debian/changelog netcat-1.10/debian/changelog
--- netcat-1.10/debian/changelog	2025-01-02 17:41:07.000000000 -0500
+++ netcat-1.10/debian/changelog	2025-09-27 16:44:56.000000000 -0400
@@ -1,3 +1,10 @@
+netcat (1.10-50.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * d/p/fix-ftbfs-gcc15.patch: Fix FTBFS with GCC 15. (Closes: #1097445)
+
+ -- Sergio Durigan Junior <[email protected]>  Sat, 27 Sep 2025 16:44:56 -0400
+
 netcat (1.10-50) unstable; urgency=medium
 
   * Standards-Version: 4.7.0
diff -Nru netcat-1.10/debian/patches/fix-ftbfs-gcc15.patch netcat-1.10/debian/patches/fix-ftbfs-gcc15.patch
--- netcat-1.10/debian/patches/fix-ftbfs-gcc15.patch	1969-12-31 19:00:00.000000000 -0500
+++ netcat-1.10/debian/patches/fix-ftbfs-gcc15.patch	2025-09-27 16:44:49.000000000 -0400
@@ -0,0 +1,43 @@
+Author: Sergio Durigan Junior <[email protected]>
+Forwarded: no
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097445
+
+Index: netcat-1.10/netcat.c
+===================================================================
+--- netcat-1.10.orig/netcat.c	2025-09-27 16:36:27.000000000 -0400
++++ netcat-1.10/netcat.c	2025-09-27 16:44:13.805223726 -0400
+@@ -242,7 +242,7 @@
+ 
+ /* catch :
+    no-brainer interrupt handler */
+-void catch ()
++void catch (int unused)
+ {
+   errno = 0;
+   if (o_verbose > 1)		/* normally we don't care */
+@@ -252,14 +252,14 @@
+ 
+ /* quit :
+    handler for a "-q" timeout (exit 0 instead of 1) */
+-void quit()
++void quit(int unused)
+ {
+   close(netfd);
+   exit(0);
+ }
+ 
+ /* timeout and other signal handling cruft */
+-void tmtravel ()
++void tmtravel (int unused)
+ {
+   signal (SIGALRM, SIG_IGN);
+   alarm (0);
+@@ -1853,7 +1853,7 @@
+ 	-z			zero-I/O mode [used for scanning]");
+   holler ("port numbers can be individual or ranges: lo-hi [inclusive];\n\
+ hyphens in port names must be backslash escaped (e.g. 'ftp\\-data').");
+-  quit();
++  quit(0);
+ } /* helpme */
+ #endif /* HAVE_HELP */
+ 
diff -Nru netcat-1.10/debian/patches/series netcat-1.10/debian/patches/series
--- netcat-1.10/debian/patches/series	2024-08-21 09:37:55.000000000 -0400
+++ netcat-1.10/debian/patches/series	2025-09-27 16:43:35.000000000 -0400
@@ -24,3 +24,4 @@
 no-static.patch
 missing-prototypes.patch
 implicit-int.patch
+fix-ftbfs-gcc15.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to