diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-08-22 13:42:15 -0600 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-08-22 18:02:46 -0700 |
| commit | 3ebcdae36ebd5ad2e04c22c78c3428250570e23f (patch) | |
| tree | 855438e5edb376980dee108065fe1737ce530973 | |
| parent | 0697d52777cd530dc59bb05a506327c365bc78a2 (diff) | |
| download | meta-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.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/kconfig-frontends/kconfig-frontends_4.11.0.1.bb | 3 |
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 @@ | |||
| 1 | From 2bd01e844096ab4ecaaab8eccfbfdc721a136d01 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Hatle <mark.hatle@amd.com> | ||
| 3 | Date: Tue, 22 Aug 2023 12:28:01 -0600 | ||
| 4 | Subject: [PATCH] Avoid using hard coded /usr/include paths | ||
| 5 | |||
| 6 | The system could end up using an include path that points to the host | ||
| 7 | system instead of the sysroot. Force the system to use the sysroot. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [configuration] | ||
| 10 | |||
| 11 | Signed-off-by: Mark Hatle <mark.hatle@amd.com> | ||
| 12 | --- | ||
| 13 | configure.ac | 4 ---- | ||
| 14 | 1 file changed, 4 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/configure.ac b/configure.ac | ||
| 17 | index 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 | -- | ||
| 32 | 2.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" | |||
| 15 | RDEPENDS:${PN} += "python3 bash" | 15 | RDEPENDS:${PN} += "python3 bash" |
| 16 | SRC_URI = "git://gitlab.com/ymorin/kconfig-frontends.git;protocol=https;branch=4.11.x \ | 16 | SRC_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 | ||
| 20 | SRCREV = "f22fce3a308be1c7790ebefc6bbedb33c5f7c86a" | 21 | SRCREV = "f22fce3a308be1c7790ebefc6bbedb33c5f7c86a" |
| 21 | 22 | ||
