summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schrimpf <dev@loewen-email.de>2023-04-25 11:15:32 +0200
committerSteve Sakoman <steve@sakoman.com>2023-05-15 05:46:54 -1000
commitcf31424aa7ce3308373899181aef0e503ead4776 (patch)
tree9c293316ffbf7861d7c6f00732d8a62f2a4559c3
parent3be4c38b370fec42a569cb2cd22315efc860227b (diff)
downloadopenembedded-core-cf31424aa7ce3308373899181aef0e503ead4776.tar.gz
python3targetconfig.bbclass: Extend PYTHONPATH instead of overwriting
[YOCTO #15108] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=15108 Since the latest change, the PYTHONPATH is overwritten instead of extended. This leads to changed behavior and build errors of recipes where the PYTHONPATH is set before setup_target_config is run. Fixes: c9617c03bcee ("python3targetconfig.bbclass: use PYTHONPATH to point to the target config") Signed-off-by: Johannes Schrimpf <dev@loewen-email.de> [Luca: add Fixes: tag] Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2442ab92f8610784d28d8d83056b643bd95b0b4e) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes-recipe/python3targetconfig.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/python3targetconfig.bbclass b/meta/classes-recipe/python3targetconfig.bbclass
index 22305fe176..08bc619398 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -12,7 +12,7 @@ DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
setup_target_config() {
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
- export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata
+ export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata:$PYTHONPATH
export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
}