Bug 13894

Summary: python3 do_install fails when using PACKAGECONFIG to disable readline
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ahmed Hossam <Ahmed.Hossam>
Component: devtools / tool chainAssignee: Trevor Gamblin <tvgamblin>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium CC: akuster808, matt.ranostay, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie, tvgamblin
Version: 2.7.4   
Target Milestone: 4.0 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: with backport
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ahmed Hossam 2020-05-05 07:29:43 UTC
Building python3 fails on the do_install task when PACKAGECONFIG is used to disable readline.

This happens because python3 recipe has a script that checks build completeness:
do_install_prepend() {
        ${WORKDIR}/check_build_completeness.py ${T}/log.do_compile
}

And when readline is removed, the script considers the build as incomplete.

To reproduce:
git clone git://git.yoctoproject.org/poky -b warrior --depth=1
source poky/oe-init-build-env
# Disable readline by adding the following line to your conf/local.conf
# PACKAGECONFIG_remove_pn-python3 = "readline"
bitbake python3
# Build fails

*Dirty* workaround:
Add a bbappend with the following:
do_install_remove ="${WORKDIR}/check_build_completeness.py ${T}/log.do_compile"
Comment 2 Randy MacLeod 2020-06-24 08:47:43 UTC
Thanks Matt,
You have assigned the bug to yourself; does that mean that you will send the backport request to the oe-core list and CC the branch maintainer?
Comment 3 Matt Ranostay 2020-06-24 11:02:59 UTC
Yes I plan on doing that shortly.
Comment 4 Richard Purdie 2020-11-26 15:50:53 UTC
Do you have plans to do this? Was this fixed for master and dunfell at least?
Comment 5 Trevor Gamblin 2020-11-26 15:59:02 UTC
@Richard - this is still failing on master.
Comment 6 Randy MacLeod 2021-04-29 15:30:11 UTC
Check if these patches need to be backported to supported releases.
Comment 7 Trevor Gamblin 2021-12-23 18:02:47 UTC
This fix is in master, dunfell, gatesgarth, hardknott, and honister. Since zeus and warrior are long out of support, I will just mark this as WONTFIX.