<?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>13177</bug_id>
          
          <creation_ts>2019-02-13 18:29:35 +0000</creation_ts>
          <short_desc>sstate file names can exceed 255 char limit</short_desc>
          <delta_ts>2020-01-22 13:05:03 +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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13268</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Barker">paul</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tvgamblin</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>82989</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2019-02-13 18:29:35 +0000</bug_when>
    <thetext>With the recent move to using sha256 checksums in sstate, the lengths of
some file names can now exceed the 255 char limit seen in most Linux
filesystems. When this occurs, bitbake crashes as it is unable to create
the sstate archive or sigfile.

To avoid this issue we need to shorten the length of the file names used
in the sstate cache.

The issue is triggered by a combination of a long package name, long package version and long expansion of `${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82990</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2019-02-13 18:32:21 +0000</bug_when>
    <thetext>I sent a patch on this to the mailing list back in January but have had no further time to look into it since then. If you want to pick up from this work see http://lists.openembedded.org/pipermail/openembedded-core/2019-January/277826.html and follow ups.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83005</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-02-14 15:40:46 +0000</bug_when>
    <thetext>Paul, Do you have an example of what package sstate was exceeding the 255 char limit? I&apos;d like to check if it&apos;s still a problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83006</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2019-02-14 16:01:28 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Paul, Do you have an example of what package sstate was exceeding the 255
&gt; char limit? I&apos;d like to check if it&apos;s still a problem.

I had a relatively long package name (containerd-opencontainers), long target triplet (cortexa7t2hf-neon-vfpv4-poky-linux-musleabi) and long version number (v1.0.2+gitcfd04396dc68220d1cecbe686a6cc3aa5ce3667c). Looking at the tune listed there I was building for raspberrypi3.

The full file name bitbake was trying to create was &apos;sstate:containerd-opencontainers:cortexa7t2hf-neon-vfpv4-poky-linux-musleabi:v1.0.2+gitcfd04396dc68220d1cecbe686a6cc3aa5ce3667c:r0:cortexa7t2hf-neon-vfpv4:3:8cf9e07e17de9682ef6e3eb78ac3eca8f942c2a833c4a7f5096cda401c1711e1_prepare_recipe_sysroot.tgz.siginfo&apos; at a length of 257 chars - just over the 255 limit.

There&apos;s some discussion in the IRC logs here: https://www.yoctoproject.org/irc/%23yocto.2019-01-08.log.html

To replicate this, you&apos;ll probably need to roll back meta-virtualisation prior to this commit where I shortened ${PV} values: http://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/commit/?id=488b5aba28fff50c64866b42a8b66aef74ac12ad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83857</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-05-17 23:47:34 +0000</bug_when>
    <thetext>I&apos;m worried that arbitrarily chopping the end off the version could result in bad matches.  Would it be best to sanely handle the filename too long errors and just suggest that the recipe uses short SHAs in the PV?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86080</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-01-22 13:05:03 +0000</bug_when>
    <thetext>Duplicate

*** This bug has been marked as a duplicate of bug 13268 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>