summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-08-22 13:42:15 -0600
committerKhem Raj <raj.khem@gmail.com>2023-08-22 18:02:46 -0700
commit3ebcdae36ebd5ad2e04c22c78c3428250570e23f (patch)
tree855438e5edb376980dee108065fe1737ce530973
parent0697d52777cd530dc59bb05a506327c365bc78a2 (diff)
downloadmeta-openembedded-3ebcdae36ebd5ad2e04c22c78c3428250570e23f.tar.gz
kconfig-frontends: Avoid using hard coded /usr/include paths
The system could end up using an include path that points to the host system instead of the sysroot. Force the system to use the sysroot. Signed-off-by: Mark Hatle <mark.hatle@amd.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/kconfig-frontends/files/0001-Avoid-using-hard-coded-usr-include-paths.patch33
-rw-r--r--meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb3
2 files changed, 35 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/kconfig-frontends/files/0001-Avoid-using-hard-coded-usr-include-paths.patch b/meta-oe/recipes-devtools/kconfig-frontends/files/0001-Avoid-using-hard-coded-usr-include-paths.patch
new file mode 100644
index 0000000000..ac20e9b88e
--- /dev/null
+++ b/meta-oe/recipes-devtools/kconfig-frontends/files/0001-Avoid-using-hard-coded-usr-include-paths.patch
@@ -0,0 +1,33 @@
1From 2bd01e844096ab4ecaaab8eccfbfdc721a136d01 Mon Sep 17 00:00:00 2001
2From: Mark Hatle <mark.hatle@amd.com>
3Date: Tue, 22 Aug 2023 12:28:01 -0600
4Subject: [PATCH] Avoid using hard coded /usr/include paths
5
6The system could end up using an include path that points to the host
7system instead of the sysroot. Force the system to use the sysroot.
8
9Upstream-Status: Inappropriate [configuration]
10
11Signed-off-by: Mark Hatle <mark.hatle@amd.com>
12---
13 configure.ac | 4 ----
14 1 file changed, 4 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index 150bc50..4dc684f 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -344,10 +344,6 @@ AS_IF(
21 [test "$need_panel_menu" = "yes" -o "$need_panel_menu" = "auto"],
22 [AC_SUBST([ncurses_nconf_CPPFLAGS])
23 AC_SUBST([ncurses_panel_menu_LIBS])
24- AS_CASE(
25- [$CURSES_LOC],
26- [ncursesw/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncursesw"],
27- [ncurses/*],[ncurses_nconf_CPPFLAGS="-I/usr/include/ncurses"])
28 LIBS_old="$LIBS"
29 LIBS=
30 AC_SEARCH_LIBS(
31--
322.34.1
33
diff --git a/meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb b/meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb
index 169500f6b4..b894f0ba03 100644
--- a/meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb
+++ b/meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb
@@ -15,7 +15,8 @@ DEPENDS += "ncurses flex-native gperf-native bison-native"
15RDEPENDS:${PN} += "python3 bash" 15RDEPENDS:${PN} += "python3 bash"
16SRC_URI = "git://gitlab.com/ymorin/kconfig-frontends.git;protocol=https;branch=4.11.x \ 16SRC_URI = "git://gitlab.com/ymorin/kconfig-frontends.git;protocol=https;branch=4.11.x \
17 file://0001-Makefile-ensure-frontends-exits-before-writing-into-.patch \ 17 file://0001-Makefile-ensure-frontends-exits-before-writing-into-.patch \
18 file://0001-Switch-utils-kconfig-diff-to-use-Python-3.patch" 18 file://0001-Switch-utils-kconfig-diff-to-use-Python-3.patch \
19 file://0001-Avoid-using-hard-coded-usr-include-paths.patch"
19 20
20SRCREV = "f22fce3a308be1c7790ebefc6bbedb33c5f7c86a" 21SRCREV = "f22fce3a308be1c7790ebefc6bbedb33c5f7c86a"
21 22