[med-svn] [Git][med-team/poa][master] 4 commits: gcc-15.patch: new: fix build failures with standard C 2023.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Sat Mar 1 15:04:12 GMT 2025



Étienne Mollier pushed to branch master at Debian Med / poa


Commits:
3434d673 by Étienne Mollier at 2025-03-01T15:57:32+01:00
gcc-15.patch: new: fix build failures with standard C 2023.

Closes: #1097626

- - - - -
44c4414c by Étienne Mollier at 2025-03-01T15:58:11+01:00
d/control: declare compliance to standards version 4.7.2.

- - - - -
94d7e81c by Étienne Mollier at 2025-03-01T16:02:42+01:00
hardening.patch: normalize Last-Update timestamp.

- - - - -
03d9936d by Étienne Mollier at 2025-03-01T16:03:47+01:00
d/changelog: ready for upload to unstable.

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/gcc-15.patch
- debian/patches/hardening.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+poa (2.0+20060928-10) unstable; urgency=medium
+
+  * gcc-15.patch: new: fix build failures with standard C 2023.
+    (Closes: #1097626)
+  * d/control: declare compliance to standards version 4.7.2.
+  * hardening.patch: normalize Last-Update timestamp.
+
+ -- Étienne Mollier <emollier at debian.org>  Sat, 01 Mar 2025 16:03:09 +0100
+
 poa (2.0+20060928-9) unstable; urgency=medium
 
   * d/control: add myself to uploaders.


=====================================
debian/control
=====================================
@@ -6,7 +6,7 @@ Uploaders: Charles Plessy <plessy at debian.org>,
 Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13)
-Standards-Version: 4.6.2
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/poa
 Vcs-Git: https://salsa.debian.org/med-team/poa.git
 Homepage: http://poamsa.sourceforge.net/


=====================================
debian/patches/gcc-15.patch
=====================================
@@ -0,0 +1,49 @@
+Description: <short description, required>
+ This change fixes the following build failure with gcc-15 since the
+ standard C 2023 is now the default:
+ .
+        black_flag.c:97:15: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘void (*)(int)’ [-Wincompatible-pointer-types]
+           97 |     crash_fun = SIG_DFL; /* RESET TO STANDARD CRASH BEHAVIOR */
+              |               ^
+        black_flag.c:100:27: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
+          100 |     signal(signal_type[i],crash_fun);
+              |                           ^~~~~~~~~
+              |                           |
+              |                           void (*)(void)
+        In file included from black_flag.h:7,
+                         from default.h:16,
+                         from black_flag.c:4:
+        /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
+           88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
+              |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
+        /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
+           72 | typedef void (*__sighandler_t) (int);
+              |                ^~~~~~~~~~~~~~
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097626
+Forwarded: no
+Last-Update: 2025-03-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- poa.orig/black_flag.c
++++ poa/black_flag.c
+@@ -82,7 +82,7 @@
+ 
+ 
+ 
+-int handle_crash_init(void (*crash_fun)())
++int handle_crash_init(void (*crash_fun)(int))
+ {
+ #define HANDLE_CRASH_MAX 5
+   int i,signal_type[HANDLE_CRASH_MAX]
+--- poa.orig/black_flag.h
++++ poa/black_flag.h
+@@ -230,7 +230,7 @@
+ ((INDEX)<(MINIMUM_BOUND) || (INDEX)>=(MAXIMUM_BOUND))
+ 
+ void handle_crash(int sigcode);
+-int handle_crash_init(void (*crash_fun)());
++int handle_crash_init(void (*crash_fun)(int));
+ int black_flag(int bug_level,
+ 	       char sourcefile[],
+ 	       int sourceline,


=====================================
debian/patches/hardening.patch
=====================================
@@ -1,6 +1,6 @@
 Description: propagate hardening options
 Author: Andreas Tille <tille at debian.org>
-Last-Update: Thu, 14 Sep 2017 09:50:18 +0200
+Last-Update: 2017-09-14
 
 
 --- a/Makefile


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ gcc10.patch
 hardening.patch
 fix-declaration.patch
 typo.patch
+gcc-15.patch



View it on GitLab: https://salsa.debian.org/med-team/poa/-/compare/8b9c95e1889857c1b1a13141a5530740caa6294b...03d9936ddc9f77dfec69d2be5275586dd2acad46

-- 
View it on GitLab: https://salsa.debian.org/med-team/poa/-/compare/8b9c95e1889857c1b1a13141a5530740caa6294b...03d9936ddc9f77dfec69d2be5275586dd2acad46
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250301/83cf5c92/attachment-0001.htm>


More information about the debian-med-commit mailing list