diff mbox series

[wrynose,meta-oe,5/6] pcp: Add readline-native and ncurses-native to pcp-native DEPENDS

Message ID 20261029054612.2642345-5-anuj.mittal@oss.qualcomm.com
State Under Review
Delegated to: Anuj Mittal
Headers show
Series [wrynose,meta-oe,1/6] c-ares: upgrade 1.34.8 -> 1.34.9 | expand

Commit Message

Anuj Mittal Oct. 29, 2026, 5:46 a.m. UTC
From: Khem Raj <khem.raj@oss.qualcomm.com>

pcp-native compiles the pcp sources src/pmns/lex.l which does
'#include <readline/readline.h>'. The native recipe only depended on
python3/setuptools/flex/bison, so with the header search correctly
limited to the sysroot
0001-configure-Limit-the-header-search-to-sysroot.patch
the build fails on hosts without readline development headers installed:

    lex.l:25:10: fatal error: readline/readline.h: No such file or directory

Depend on readline-native (and ncurses-native, which readline links
against) so the headers and libraries come from the native sysroot
rather than the build host, mirroring the target recipe DEPENDS. This
makes the native build reproducible and host independent.

Verified by building pcp-native from scratch

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 155fd062e2bdb54061d457f7e2e4e20eb8248038)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb b/meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb
index c4064d8330..e25cf2e8e4 100644
--- a/meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb
+++ b/meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb
@@ -1,7 +1,7 @@ 
 require pcp.inc
 inherit python3native native 
 #autotools-brokensep 
-DEPENDS = "python3-native python3-setuptools-native flex-native bison-native"
+DEPENDS = "python3-native python3-setuptools-native flex-native bison-native readline-native ncurses-native"
 
 export PCP_DIR = "${D}"
 export PCP_TMP_DIR = "${D}/tmp"