All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/catatonit: fix build with kernel < 5.9
@ 2022-11-01 13:40 Fabrice Fontaine
  2022-11-01 20:34 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-11-01 13:40 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure with kernel < 5.0 raised since the
addition of the package in commit
e3975ec7d4b478ec6c1ba56b63cbb5bccfb9dd09:

catatonit.c:39:11: fatal error: linux/close_range.h: No such file or directory
   39 | # include <linux/close_range.h>
      |           ^~~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/ed9a847905083175c7fcb2f2df28f9ac5b9c3313

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0002-fix-build-with-kernel-5.9.patch      | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 package/catatonit/0002-fix-build-with-kernel-5.9.patch

diff --git a/package/catatonit/0002-fix-build-with-kernel-5.9.patch b/package/catatonit/0002-fix-build-with-kernel-5.9.patch
new file mode 100644
index 0000000000..a4c66389db
--- /dev/null
+++ b/package/catatonit/0002-fix-build-with-kernel-5.9.patch
@@ -0,0 +1,52 @@
+From 1fefcbffe4ade02d625bf058a7c07aeaf9fa7a2f Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 1 Nov 2022 14:16:01 +0100
+Subject: [PATCH] fix build with kernel < 5.9
+
+linux/close_range.h is only available since kernel 5.9 and
+https://github.com/torvalds/linux/commit/60997c3d45d9a67daf01c56d805ae4fec37e0bd8
+resulting in the following build failure:
+
+catatonit.c:39:11: fatal error: linux/close_range.h: No such file or directory
+   39 | # include <linux/close_range.h>
+      |           ^~~~~~~~~~~~~~~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/ed9a847905083175c7fcb2f2df28f9ac5b9c3313
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/openSUSE/catatonit/pull/24]
+---
+ catatonit.c  | 2 +-
+ configure.ac | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/catatonit.c b/catatonit.c
+index a38263a..474c525 100644
+--- a/catatonit.c
++++ b/catatonit.c
+@@ -35,7 +35,7 @@
+ #include <limits.h>
+ #include <dirent.h>
+ 
+-#ifdef HAVE_CLOSE_RANGE
++#ifdef HAVE_LINUX_CLOSE_RANGE_H
+ # include <linux/close_range.h>
+ #else
+ # include <sys/syscall.h>
+diff --git a/configure.ac b/configure.ac
+index 94c5c84..a746ea1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,7 +22,7 @@ LT_PREREQ([2.4.2])
+ LT_INIT([disable-shared])
+ 
+ AC_CHECK_HEADERS([errno.h fcntl.h signal.h stdarg.h stdio.h stdlib.h unistd.h])
+-AC_CHECK_HEADERS([sys/prctl.h sys/signalfd.h sys/stat.h sys/types.h sys/wait.h])
++AC_CHECK_HEADERS([linux/close_range.h sys/prctl.h sys/signalfd.h sys/stat.h sys/types.h sys/wait.h])
+ 
+ AC_CHECK_FUNCS([close_range])
+ 
+-- 
+2.35.1
+
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/catatonit: fix build with kernel < 5.9
  2022-11-01 13:40 [Buildroot] [PATCH 1/1] package/catatonit: fix build with kernel < 5.9 Fabrice Fontaine
@ 2022-11-01 20:34 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-01 20:34 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

On Tue,  1 Nov 2022 14:40:32 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure with kernel < 5.0 raised since the
> addition of the package in commit
> e3975ec7d4b478ec6c1ba56b63cbb5bccfb9dd09:
> 
> catatonit.c:39:11: fatal error: linux/close_range.h: No such file or directory
>    39 | # include <linux/close_range.h>
>       |           ^~~~~~~~~~~~~~~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ed9a847905083175c7fcb2f2df28f9ac5b9c3313
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  .../0002-fix-build-with-kernel-5.9.patch      | 52 +++++++++++++++++++
>  1 file changed, 52 insertions(+)
>  create mode 100644 package/catatonit/0002-fix-build-with-kernel-5.9.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-01 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01 13:40 [Buildroot] [PATCH 1/1] package/catatonit: fix build with kernel < 5.9 Fabrice Fontaine
2022-11-01 20:34 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.