Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected], [email protected]
Control: affects -1 + src:ascdc
User: [email protected]
Usertags: pu
[ Reason ]
Fix FTBFS Bug #1136759.
Debian 13.7 had a glibc update to support the trixie-backport
kernel which made some packages (just a few) not to build anymore.
This is one of them.
[ Impact ]
Anybody trying to build the package under current trixie will find
that the package unexpectedly does not build.
[ Tests ]
I've checked that the package builds ok again.
[ Risks ]
Extremely low.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
See changelog. We are merely adding #include <fcntl.h> to be
able to use the open() function.
[ Other info ]
Change is trivial, so I'm uploading the package next to filing this bug.
diff -Nru ascdc-0.3/debian/changelog ascdc-0.3/debian/changelog
--- ascdc-0.3/debian/changelog 2023-10-02 23:00:14.000000000 +0200
+++ ascdc-0.3/debian/changelog 2026-09-15 20:45:00.000000000 +0200
@@ -1,3 +1,13 @@
+ascdc (0.3-15.1+deb13u1) trixie; urgency=medium
+
+ * QA upload.
+
+ [ Rony Joao de Sousa ]
+ * Fix FTBFS caused by missing open() function declaration.
+ Closes: #1136759.
+
+ -- Santiago Vila <[email protected]> Tue, 15 Sep 2026 20:45:00 +0200
+
ascdc (0.3-15.1) unstable; urgency=medium
* Non-maintainer upload
diff -Nru ascdc-0.3/debian/patches/0002-Fix-missing-fcntl-include.patch
ascdc-0.3/debian/patches/0002-Fix-missing-fcntl-include.patch
--- ascdc-0.3/debian/patches/0002-Fix-missing-fcntl-include.patch
1970-01-01 01:00:00.000000000 +0100
+++ ascdc-0.3/debian/patches/0002-Fix-missing-fcntl-include.patch
2026-09-15 20:41:58.000000000 +0200
@@ -0,0 +1,25 @@
+From: Rony Joao de Sousa <[email protected]>
+Date: Tue, 2 Jun 2026 08:57:39 -0300
+Subject: Fix missing fcntl include
+Description: Fix implicit declaration of open()
+ Include <fcntl.h> to provide the prototype for open().
+ .
+ This fixes build failures with modern compilers where
+ implicit function declarations are treated as errors.
+Forwarded: no
+---
+ ascdc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ascdc.c b/ascdc.c
+index afec7a7..ebded5a 100644
+--- a/ascdc.c
++++ b/ascdc.c
+@@ -17,6 +17,7 @@
+
/*****************************************************************************/
+
+ #include <stdio.h>
++#include <fcntl.h>
+ #include <stdlib.h>
+ #include <string.h>
+
diff -Nru ascdc-0.3/debian/patches/series ascdc-0.3/debian/patches/series
--- ascdc-0.3/debian/patches/series 2023-10-02 23:00:14.000000000 +0200
+++ ascdc-0.3/debian/patches/series 2026-09-15 20:41:58.000000000 +0200
@@ -1 +1,2 @@
debian.patch
+0002-Fix-missing-fcntl-include.patch