summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch')
-rw-r--r--meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch b/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch
new file mode 100644
index 0000000000..bc811d67b0
--- /dev/null
+++ b/meta/recipes-support/appstream/appstream/0001-remove-hardcoded-path.patch
@@ -0,0 +1,32 @@
1From fe9ebb8c0fa7b84a9c5c667386b8fbb3baea2fad Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Mon, 12 Dec 2022 15:42:42 +0100
4Subject: [PATCH] remove hardcoded path
5
6Signed-off-by: Markus Volk <f_l_k@t-online.de>
7
8Dont include hardcoded path. This fixes:
9| cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
10
11Upstream-Status: Inappropriate [oe-specific]
12---
13 meson.build | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/meson.build b/meson.build
17index fa171d5..79d5168 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -185,10 +185,10 @@ endif
21 stemmer_inc_dirs = include_directories()
22 if get_option('stemming')
23 stemmer_lib = cc.find_library('stemmer', required: true)
24- stemmer_inc_dirs = include_directories(['/usr/include'])
25+ stemmer_inc_dirs = include_directories([''])
26 if not cc.has_header('libstemmer.h')
27 if cc.has_header('libstemmer/libstemmer.h')
28- stemmer_inc_dirs = include_directories('/usr/include/libstemmer')
29+ stemmer_inc_dirs = include_directories('')
30 else
31 error('Unable to find Snowball header "libstemmer.h". Please ensure libstemmer/Snowball is installed properly in order to continue.')
32 endif