Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:oar
User: [email protected]
Usertags: pu

[ Reason ]
The glibc version 2.41-12+deb13u4 upload to the 13.7 point release
stopped including <fcntl.h> from <sys/mount.h>, in order to avoid
namespace conflicts with linux 7.0+ headers. This causes the FTBFS of
oar, which does not directly include <fcntl.h> while using the open()
function.

[ Impact ]
The package now FTBFS in trixie starting with the 13.7 point release.
The binary package still works fine.

[ Tests ]
I used sbuild to confirm that the package build fine again in trixie.

[ Risks ]
There is a one line code change, basically adding an extra <fcntl.h>
include that was included indirectly through <sys/mount.h> before. The
same change has been applied to testing/unstable already. Therefore the
risk is close to zero.

[ 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 ]
The change consists adding the open.patch file from unstable. This patch
just adds an extra <fcntl.h> to declare, among other things, the open()
function. 

[ Other info ]
Given the change are trivial, I have already uploaded the package to the
archive.
diff -Nru oar-2.6.1/debian/changelog oar-2.6.1/debian/changelog
--- oar-2.6.1/debian/changelog  2025-03-24 14:50:27.000000000 +0100
+++ oar-2.6.1/debian/changelog  2026-09-19 22:02:42.000000000 +0200
@@ -1,3 +1,13 @@
+oar (2.6.1-1+deb13u1) trixie; urgency=medium
+
+  * Non-maintainer upload
+  
+  [ Adrian Bunk ]
+  * debian/patches/open.patch: Include <fcntl.h> to fix FTBFS caused by
+    implicit declaration of open(). Closes: #1136780
+
+ -- Aurelien Jarno <[email protected]>  Sat, 19 Sep 2026 22:02:42 +0200
+
 oar (2.6.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru oar-2.6.1/debian/patches/open.patch 
oar-2.6.1/debian/patches/open.patch
--- oar-2.6.1/debian/patches/open.patch 1970-01-01 01:00:00.000000000 +0100
+++ oar-2.6.1/debian/patches/open.patch 2026-09-19 22:02:42.000000000 +0200
@@ -0,0 +1,14 @@
+Description: Fix FTBFS
+Author: Adrian Bunk <[email protected]>
+Bug-Debian: https://bugs.debian.org/1136780
+
+--- oar-2.6.1.orig/sources/core/tools/oarcgdev/oarcgdev.c.in
++++ oar-2.6.1/sources/core/tools/oarcgdev/oarcgdev.c.in
+@@ -3,6 +3,7 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <assert.h>
++#include <fcntl.h>
+ #include <bpf/bpf.h>
+ #include <bpf/libbpf.h>
+ #include <sys/sysmacros.h>
diff -Nru oar-2.6.1/debian/patches/series oar-2.6.1/debian/patches/series
--- oar-2.6.1/debian/patches/series     2025-03-24 14:50:27.000000000 +0100
+++ oar-2.6.1/debian/patches/series     2026-09-19 22:02:42.000000000 +0200
@@ -0,0 +1 @@
+open.patch

Reply via email to