<?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>13268</bug_id>
          
          <creation_ts>2019-04-06 16:03:49 +0000</creation_ts>
          <short_desc>dump_sigtask create filenname longer as 255 characters</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>oe-core other</component>
          <version>2.7</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>3.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>openatv</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>nickersk</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>83467</commentid>
    <comment_count>0</comment_count>
    <who name="">openatv</who>
    <bug_when>2019-04-06 16:03:49 +0000</bug_when>
    <thetext>ERROR: enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin-1.0+gitAUTOINC+ad888f6981-r0 do_prepare_recipe_sysroot: Execution of event handler &apos;sstat                                      e_eventhandler&apos; failed
Traceback (most recent call last):
  File &quot;/www/www/nextp3/build-enviroment/openembedded-core/meta/classes/sstate.bbclass&quot;, line 1081, in sstate_eventhandler(e=&lt;bb.build.TaskSucceeded obj                                      ect at 0x7f034bc45dd8&gt;):
             sstatepkg = d.getVar(&apos;SSTATE_PKG&apos;)
    &gt;        bb.siggen.dump_this_task(sstatepkg + &apos;_&apos; + taskname + &quot;.tgz&quot; &quot;.siginfo&quot;, d)
     }
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 350, in dump_this_task(outfile=&apos;/www/www/nextp3/build-enviroment/builds/openatv                                      /sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin:cortexa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUTOINC+ad888f6981:r0:cor                                      texa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff421b1d187bd94a434fe_prepare_recipe_sysroot.tgz.siginfo&apos;, d=&lt;bb.data_smart.DataSmart o                                      bject at 0x7f034bc45a58&gt;):
         referencestamp = bb.build.stamp_internal(task, d, None, True)
    &gt;    bb.parse.siggen.dump_sigtask(fn, task, outfile, &quot;customfile:&quot; + referencestamp)

  File &quot;/www/www/nextp3/build-enviroment/openembedded-core/meta/lib/oe/sstatesig.py&quot;, line 195, in SignatureGeneratorOEBasicHash.dump_sigtask(fn=&apos;/www/w                                      ww/nextp3/build-enviroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb&apos;, task=&apos;d                                      o_prepare_recipe_sysroot&apos;, stampbase=&apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-s                                      moke-hd-skin:cortexa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUTOINC+ad888f6981:r0:cortexa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff                                      421b1d187bd94a434fe_prepare_recipe_sysroot.tgz.siginfo&apos;, runtime=&apos;customfile:/www/www/nextp3/build-enviroment/builds/openatv/release/hd51/tmp/stamps/cor                                      texa15hf-neon-vfpv4-oe-linux-gnueabi/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin/1.0+gitAUTOINC+ad888f6981-r0&apos;):
                 return
    &gt;        super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)

  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 301, in SignatureGeneratorOEBasicHash.dump_sigtask(fn=&apos;/www/www/nextp3/build-en                                      viroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb&apos;, task=&apos;do_prepare_recipe_s                                      ysroot&apos;, stampbase=&apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin:corte                                      xa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUTOINC+ad888f6981:r0:cortexa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff421b1d187bd94a434f                                      e_prepare_recipe_sysroot.tgz.siginfo&apos;, runtime=&apos;customfile:/www/www/nextp3/build-enviroment/builds/openatv/release/hd51/tmp/stamps/cortexa15hf-neon-vfpv                                      4-oe-linux-gnueabi/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin/1.0+gitAUTOINC+ad888f6981-r0&apos;):
                     pass
    &gt;            raise err

  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 295, in SignatureGeneratorOEBasicHash.dump_sigtask(fn=&apos;/www/www/nextp3/build-en                                      viroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb&apos;, task=&apos;do_prepare_recipe_s                                      ysroot&apos;, stampbase=&apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin:corte                                      xa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUTOINC+ad888f6981:r0:cortexa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff421b1d187bd94a434f                                      e_prepare_recipe_sysroot.tgz.siginfo&apos;, runtime=&apos;customfile:/www/www/nextp3/build-enviroment/builds/openatv/release/hd51/tmp/stamps/cortexa15hf-neon-vfpv                                      4-oe-linux-gnueabi/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin/1.0+gitAUTOINC+ad888f6981-r0&apos;):
                 os.chmod(tmpfile, 0o664)
    &gt;            os.rename(tmpfile, sigfile)
             except (OSError, IOError) as err:
OSError: [Errno 36] File name too long: &apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sigtask.7dmlm8v3&apos; -&gt; &apos;/www/www/nextp3/build-env                                      iroment/builds/openatv/sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin:cortexa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUT                                      OINC+ad888f6981:r0:cortexa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff421b1d187bd94a434fe_prepare_recipe_sysroot.tgz.siginfo&apos;

ERROR: enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin-1.0+gitAUTOINC+ad888f6981-r0 do_prepare_recipe_sysroot: Build of do_prepare_recipe_sysroo                                      t failed
ERROR: enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin-1.0+gitAUTOINC+ad888f6981-r0 do_prepare_recipe_sysroot: Traceback (most recent call last)                                      :
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/build.py&quot;, line 642, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/build.py&quot;, line 616, in _exec_task
    event.fire(TaskSucceeded(task, logfn, localdata), localdata)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py&quot;, line 225, in fire
    fire_class_handlers(event, d)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py&quot;, line 134, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py&quot;, line 106, in execute_handler
    ret = handler(event)
  File &quot;/www/www/nextp3/build-enviroment/openembedded-core/meta/classes/sstate.bbclass&quot;, line 1081, in sstate_eventhandler
    bb.siggen.dump_this_task(sstatepkg + &apos;_&apos; + taskname + &quot;.tgz&quot; &quot;.siginfo&quot;, d)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 350, in dump_this_task
    bb.parse.siggen.dump_sigtask(fn, task, outfile, &quot;customfile:&quot; + referencestamp)
  File &quot;/www/www/nextp3/build-enviroment/openembedded-core/meta/lib/oe/sstatesig.py&quot;, line 195, in dump_sigtask
    super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 301, in dump_sigtask
    raise err
  File &quot;/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py&quot;, line 295, in dump_sigtask
    os.rename(tmpfile, sigfile)
OSError: [Errno 36] File name too long: &apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sigtask.7dmlm8v3&apos; -&gt; &apos;/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sstate:enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin:cortexa15hf-neon-vfpv4-oe-linux-gnueabi:1.0+gitAUTOINC+ad888f6981:r0:cortexa15hf-neon-vfpv4:3:e7083f7182630af30cef2634260c2a267cb6e8d054dff421b1d187bd94a434fe_prepare_recipe_sysroot.tgz.siginfo&apos;

ERROR: Task (/www/www/nextp3/build-enviroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb:do_prepare_recipe_sysroot) failed with exit code &apos;1&apos;

the bb file

use

inherit gitpkgv
SRCREV = &quot;${AUTOREV}&quot;
PV = &quot;1.0+git${SRCPV}&quot;
PKGV = &quot;1.0+git${GITPKGV}&quot;

any idea how can fix it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83518</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-04-11 16:37:58 +0000</bug_when>
    <thetext>We can&apos;t risk changing the code that generates these long filenames in 2.7 but we want to come up with a solution for 2.8-M1. 

For now, can you work-around the issue by using shorter recipe names/ an abbreviated commit id in the recipe, etc?

As far as I know this isn&apos;t a problem for any of the recipes in oe-core, meta-oe, meta-virt, etc so I assume that people have just worked around the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85998</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-01-09 15:59:08 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/patch/?id=b8025e972081b70960ffcbcbe43a7118041556a1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86081</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-01-22 13:05:03 +0000</bug_when>
    <thetext>*** Bug 13177 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>