diff mbox series

sqlite3: Fix host include path leaking in with readline/editline

Message ID 20261008071733.1242183-1-frieder@fris.de
State New
Headers show
Series sqlite3: Fix host include path leaking in with readline/editline | expand

Commit Message

Frieder Schrempf Oct. 8, 2026, 7:17 a.m. UTC
From: Frieder Schrempf <frieder.schrempf@kontron.de>

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 <frieder.schrempf@kontron.de>
---
 meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb
index 137ec26207..007a823dc5 100644
--- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb
+++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb
@@ -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"