sqlite3: Fix host include path leaking in with readline/editline
PATCH 1/1 sqlite3: Fix host include path leaking in with readline/editline
From: Frieder Schrempf <[email protected]>
The autosetup based configure derives the readline CFLAGS from --with-readline-header, so the ${includedir} based path turns into "-I/usr/include" and the build host headers are used. With the cross compiler this fails with -Werror=poison-system-directories. Use ${STAGING_INCDIR} so the include path points to the recipe sysroot.
Tested by building sqlite3 with PACKAGECONFIG readline enabled for qemuarm on master.
AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by Frieder Schrempf <[email protected]>
--- meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-support/sqlite/sqlite3_3.53.4.bb +2 -2
@@ -34,8 +34,8 @@ inherit pkgconfig siteinfo upstream-stable-release-point PACKAGECONFIG ?= "fts4 fts5 rtree dyn_ext unlock-notify" PACKAGECONFIG:class-native ?= "fts4 fts5 rtree dyn_ext" -PACKAGECONFIG[editline] = "--enable-editline --with-readline-header=${includedir}/editline/readline.h,--disable-editline,libedit ncurses" -PACKAGECONFIG[readline] = "--enable-readline --with-readline-header=${includedir}/readline/readline.h,--disable-readline,readline ncurses" +PACKAGECONFIG[editline] = "--enable-editline --with-readline-header=${STAGING_INCDIR}/editline/readline.h,--disable-editline,libedit ncurses" +PACKAGECONFIG[readline] = "--enable-readline --with-readline-header=${STAGING_INCDIR}/readline/readline.h,--disable-readline,readline ncurses" PACKAGECONFIG[fts3] = "--enable-fts3,--disable-fts3" PACKAGECONFIG[fts4] = "--enable-fts4,--disable-fts4" PACKAGECONFIG[fts5] = "--enable-fts5,--disable-fts5"
Signature · 1 line
2.55.0