Bug 13268 - dump_sigtask create filenname longer as 255 characters
Summary: dump_sigtask create filenname longer as 255 characters
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 3.1 M1
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
: 13177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-06 16:03 UTC by openatv
Modified: 2020-01-22 13:05 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description openatv 2019-04-06 16:03:49 UTC
ERROR: enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin-1.0+gitAUTOINC+ad888f6981-r0 do_prepare_recipe_sysroot: Execution of event handler 'sstat                                      e_eventhandler' failed
Traceback (most recent call last):
  File "/www/www/nextp3/build-enviroment/openembedded-core/meta/classes/sstate.bbclass", line 1081, in sstate_eventhandler(e=<bb.build.TaskSucceeded obj                                      ect at 0x7f034bc45dd8>):
             sstatepkg = d.getVar('SSTATE_PKG')
    >        bb.siggen.dump_this_task(sstatepkg + '_' + taskname + ".tgz" ".siginfo", d)
     }
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 350, in dump_this_task(outfile='/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', d=<bb.data_smart.DataSmart o                                      bject at 0x7f034bc45a58>):
         referencestamp = bb.build.stamp_internal(task, d, None, True)
    >    bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp)

  File "/www/www/nextp3/build-enviroment/openembedded-core/meta/lib/oe/sstatesig.py", line 195, in SignatureGeneratorOEBasicHash.dump_sigtask(fn='/www/w                                      ww/nextp3/build-enviroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb', task='d                                      o_prepare_recipe_sysroot', stampbase='/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', runtime='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'):
                 return
    >        super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)

  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 301, in SignatureGeneratorOEBasicHash.dump_sigtask(fn='/www/www/nextp3/build-en                                      viroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb', task='do_prepare_recipe_s                                      ysroot', stampbase='/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', runtime='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'):
                     pass
    >            raise err

  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 295, in SignatureGeneratorOEBasicHash.dump_sigtask(fn='/www/www/nextp3/build-en                                      viroment/meta-oe-alliance/meta-oe/recipes-distros/openatv/plugins/enigma2-plugin-skincomponents-mediaportal-smoke-hd-skin.bb', task='do_prepare_recipe_s                                      ysroot', stampbase='/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', runtime='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'):
                 os.chmod(tmpfile, 0o664)
    >            os.rename(tmpfile, sigfile)
             except (OSError, IOError) as err:
OSError: [Errno 36] File name too long: '/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sigtask.7dmlm8v3' -> '/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'

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 "/www/www/nextp3/build-enviroment/bitbake/lib/bb/build.py", line 642, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/build.py", line 616, in _exec_task
    event.fire(TaskSucceeded(task, logfn, localdata), localdata)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py", line 225, in fire
    fire_class_handlers(event, d)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py", line 134, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/event.py", line 106, in execute_handler
    ret = handler(event)
  File "/www/www/nextp3/build-enviroment/openembedded-core/meta/classes/sstate.bbclass", line 1081, in sstate_eventhandler
    bb.siggen.dump_this_task(sstatepkg + '_' + taskname + ".tgz" ".siginfo", d)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 350, in dump_this_task
    bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp)
  File "/www/www/nextp3/build-enviroment/openembedded-core/meta/lib/oe/sstatesig.py", line 195, in dump_sigtask
    super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigtask(fn, task, stampbase, runtime)
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 301, in dump_sigtask
    raise err
  File "/www/www/nextp3/build-enviroment/bitbake/lib/bb/siggen.py", line 295, in dump_sigtask
    os.rename(tmpfile, sigfile)
OSError: [Errno 36] File name too long: '/www/www/nextp3/build-enviroment/builds/openatv/sstate-cache/e7/sigtask.7dmlm8v3' -> '/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'

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 '1'

the bb file

use

inherit gitpkgv
SRCREV = "${AUTOREV}"
PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"

any idea how can fix it
Comment 1 Randy MacLeod 2019-04-11 16:37:58 UTC
We can'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'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.
Comment 3 Ross Burton 2020-01-22 13:05:03 UTC
*** Bug 13177 has been marked as a duplicate of this bug. ***