aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch
blob: c1480406fe4c078381b9d4100b69eb6de9f6a9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 194e199ce08acc2192f6a63420ff24d9064666e5 Mon Sep 17 00:00:00 2001
From: Yi Fan Yu <yifan.yu@windriver.com>
Date: Sat, 27 Mar 2021 19:18:25 -0400
Subject: [PATCH] tests: disable the check for inotify

We don't need to check inotify.h.
Assume it is present since it is part of the linux kernel
since 2.6.13 [1].

[1](https://kernelnewbies.org/Linux_2_6_13)

(it would require installing the libc headers otherwise,
 for the test  to detect /usr/include/sys/inotify.h.)

Upstream-Status: Inappropriate [OE-specific]

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
---
 tests/diag.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/diag.sh b/tests/diag.sh
index 6cd60ea88..7424f48c5 100755
--- a/tests/diag.sh
+++ b/tests/diag.sh
@@ -2672,7 +2672,7 @@ case $1 in
 		fi
 		;;
 	'check-inotify') # Check for inotify/fen support 
-		if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
+		if true; then
 			echo [inotify mode]
 		elif [ -n "$(find /usr/include/sys/ -name 'port.h' -print -quit)" ]; then
 			grep -qF "PORT_SOURCE_FILE" < /usr/include/sys/port.h
@@ -2687,7 +2687,7 @@ case $1 in
 		fi
 		;;
 	'check-inotify-only') # Check for ONLY inotify support 
-		if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
+		if true; then
 			echo [inotify mode]
 		else
 			echo [inotify not supported, skipping...]
-- 
2.29.2