<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13894</bug_id>
          
          <creation_ts>2020-05-05 07:29:43 +0000</creation_ts>
          <short_desc>python3 do_install fails when using PACKAGECONFIG to disable readline</short_desc>
          <delta_ts>2021-12-23 18:02:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.7.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>with backport</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmed Hossam">Ahmed.Hossam</reporter>
          <assigned_to name="Trevor Gamblin">tvgamblin</assigned_to>
          <cc>akuster808</cc>
    
    <cc>matt.ranostay</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tvgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87146</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmed Hossam">Ahmed.Hossam</who>
    <bug_when>2020-05-05 07:29:43 +0000</bug_when>
    <thetext>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 = &quot;readline&quot;
bitbake python3
# Build fails

*Dirty* workaround:
Add a bbappend with the following:
do_install_remove =&quot;${WORKDIR}/check_build_completeness.py ${T}/log.do_compile&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87562</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Ranostay">matt.ranostay</who>
    <bug_when>2020-06-23 19:45:21 +0000</bug_when>
    <thetext>So seems these two patches need to be backported to OE-Core 

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=7bd7af037f8&amp;id=0aee3558f93956630613994e89a8a42a560d7766
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=7bd7af037f8&amp;id=7bd7af037f89bcf4145e5e8ee4683a3ce5dc33b0

For both warrior and zeus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87567</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-06-24 08:47:43 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87569</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Ranostay">matt.ranostay</who>
    <bug_when>2020-06-24 11:02:59 +0000</bug_when>
    <thetext>Yes I plan on doing that shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88681</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-11-26 15:50:53 +0000</bug_when>
    <thetext>Do you have plans to do this? Was this fixed for master and dunfell at least?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88682</commentid>
    <comment_count>5</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-11-26 15:59:02 +0000</bug_when>
    <thetext>@Richard - this is still failing on master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90176</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-29 15:30:11 +0000</bug_when>
    <thetext>Check if these patches need to be backported to supported releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92212</commentid>
    <comment_count>7</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2021-12-23 18:02:47 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>