<?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>11839</bug_id>
          
          <creation_ts>2017-07-26 14:29:59 +0000</creation_ts>
          <short_desc>buildhistory + multiconfig</short_desc>
          <delta_ts>2025-10-23 15:05:12 +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>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="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>stephano</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>75317</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-07-26 14:29:59 +0000</bug_when>
    <thetext>It seems that buildhistory.bbclass is not ready yet for use in a multiconfig. When trying it, I ended up with name clashes like this:

FileNotFoundError: [Errno 2] No such file or directory: &apos;.../buildhistory/images/intel_corei7_64/glibc/refkit-initramfs-development/installed-packages.tmp&apos;
00:38:50.107 | WARNING: .../tmp-x11-glibc/work/intel_corei7_64-refkit-linux/refkit-initramfs-development/1.0-r0/temp/run.buildhistory_get_image_installed.16708:1 exit 1 from &apos;oe-pkgdata-util -p /srv/jenkins/workspace/ci-2017-07-26_04-18-09-build-99/build/tmp-x11-glibc/pkgdata/intel-corei7-64 read-value &quot;PKGSIZE&quot; -n -f $pkgcache &gt; $1/installed-package-sizes.tmp&apos;
00:38:50.107 | DEBUG: Python function do_rootfs finished
00:38:50.107 | ERROR: Function failed: buildhistory_get_image_installed (log file is located at .../tmp-x11-glibc/work/intel_corei7_64-refkit-linux/refkit-initramfs-development/1.0-r0/temp/log.do_rootfs.16708)
00:38:50.107 NOTE: recipe refkit-initramfs-development-1.0-r0: task do_rootfs: Failed
00:38:50.107 ERROR: Task (multiconfig:x11:virtual:image-mode:development:...openembedded-core/../meta-refkit-core/recipes-images/images/refkit-initramfs.bb:do_rootfs) failed with exit code &apos;1&apos;

Here the refkit-initramfs-development recipe (derived from refkit-initramfs.bb via BBCLASSEXTEND) was using the same directory as other refkit-initramfs-development instances, leading to a race condition.

Not sure what the best solution is here. It can be avoided by setting different build history root paths for each multiconfig, but then how does it get merged into a single git repo?

Full log is here: https://intel-iot-refkit.01.org/job/intel-iot-refkit_pull-requests/99/consoleFull

One has to log in at https://intel-iot-refkit.01.org with a Github account before the log is available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84374</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-07-04 10:58:42 +0000</bug_when>
    <thetext>This is a tricky one. Paul and I debated whether multiconfig builds should share the same buildhistory directory, possibly with different path prefixes per multiconfig or not. It really depends upon context and what the multiconfigs are doing.

In some cases you would have separate BH directories, maybe pointing at the same BH repo/branch, maybe not.

In some cases you would want an extra path prefix.

In some cases it would be separate BH directories and repos.

This bug is therefore to document what is expected to work and what is not and how to best configure multiconfig with BH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96799</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:20 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>