<?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>15528</bug_id>
          
          <creation_ts>2024-06-27 13:46:02 +0000</creation_ts>
          <short_desc>python function code contents in pylibs are not part of the task hash</short_desc>
          <delta_ts>2024-07-11 15:12:50 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</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>99269</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-06-27 13:46:02 +0000</bug_when>
    <thetext>RP says:


&gt; I believe this causes the following reproducibility failures:
&gt;
&gt; https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4998/steps/13/logs/stdio
&gt;
&gt; https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20240627-3tyeozgn/packages/diff-html/
&gt;

This is exposing a problem with the way we&apos;re handling python library
functions and their effect or lack of effect on the task hashes.

If you do something like:

bitbake libdrm -S none

then look at

bitbake-dumpsig tmp/stamps/core2-64-poky-linux/libdrm/2.4.120.do_package.sigdata.*

you&apos;ll see:

List of dependencies for variable oe.package.process_pkgconfig is [&apos;PACKAGES&apos;, &apos;PKGDEST&apos;, &apos;SHLIBSDIRS&apos;, &apos;SHLIBSWORKDIR&apos;]
List of dependencies for variable package_do_pkgconfig is [&apos;oe.package.process_pkgconfig&apos;]
Variable package_do_pkgconfig value is     oe.package.process_pkgconfig(pkgfiles, d)
Variable oe.package.process_pkgconfig value is

i.e. it knows the function is being used but isn&apos;t caching its value.
That was by design but it does mean when you change funcitonality, you
have to manually tweak the tashhash which I&apos;m not sure is a great idea
when put like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99370</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-07-11 15:12:50 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/bitbake?id=0d49931755886d859e2d109eef810f58f98f2cbb
https://git.yoctoproject.org/poky/commit/bitbake?id=6be592d2a7268ca394445539f6568d1c64fb0bc7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>