<?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>13378</bug_id>
          
          <creation_ts>2019-06-05 19:05:25 +0000</creation_ts>
          <short_desc>native programs from RSS that alias hosttools can cause non-reproducible builds</short_desc>
          <delta_ts>2024-10-17 15:09:10 +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>0.0.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Watt">JPEWhacker</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84072</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-06-05 19:05:25 +0000</bug_when>
    <thetext>Recipe specific sysroots can result in non-reproducible rebuilds of recipes. The reason for this is that task add to the RSS as they are executed, but there is no way of rolling back these changes if a previous task needs to be reexecuted. This means that a downstream task might add things to the RSS that would have an effect on upstream recipes.

The most common result of this appears to be do_configure steps finding different tools (either from the RSS or from the hosttools) if the recipe RDEPENDS on a package that provides the same tools as the host. For example, the log.do_configure of the &quot;acl&quot; package contains the following line the first time it is run in a clean sandbox:

 checking for sort... /projects/poky/build/reproducible/tmp/hosttools/sort

However, if a dependency changes and the recipe has to be reconfigured, the next time it will find:

 checking for sort... /projects/poky/build/reproducible/tmp/work/core2-32-poky-linux/acl/2.2.52-r0/recipe-sysroot-native/usr/bin/sort

This appears to be because acl RDEPENDS on coreutils, which overrides the hosttools provided sort</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95442</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:45:46 +0000</bug_when>
    <thetext>Moved en masse from 4.2 to 4.3 by Randy.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>