Using Fetch2 mechanism fails

Home Forums MultiConnect OCG Using Fetch2 mechanism fails

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5607
    Alexey Klimenko
    Participant

    Hi

    I have an extra BitBake layer that depends on Fetch2 mechanism. Unfortunately, it looks like lots of recipes provided in CoreCDP 2.2 are not compatible with it as I am getting errors similar to this one (when using env var BBFETCH2):

    ERROR: Error evaluating '${@patch_deps(d)}'
    Traceback (most recent call last):
      File "/home/aklimenko/Multitech/corecdp-2.2.2/bitbake/lib/bb/data_smart.py", line 118, in expandWithRefs
        s = __expand_python_regexp__.sub(varparse.python_sub, s)
      File "/home/aklimenko/Multitech/corecdp-2.2.2/bitbake/lib/bb/data_smart.py", line 76, in python_sub
        value = utils.better_eval(codeobj, DataContext(self.d))
      File "/home/aklimenko/Multitech/corecdp-2.2.2/bitbake/lib/bb/utils.py", line 387, in better_eval
        return eval(source, _context, locals)
      File "<expansion>", line 1, in <module>
      File "patch.bbclass", line 5, in patch_deps
    AttributeError: 'module' object has no attribute 'init'
    
    ERROR: Error parsing /home/aklimenko/Multitech/corecdp-2.2.2/openembedded/recipes/dzen2/dzen2_svn.bb: 'module' object has no attribute 'init'

    I am not too deep familiar with BitBake and OpenEmbedded so I admit that I might miss something here.
    Appreciate any advices.

    Regards

    #5608
    Jesse Gilles
    Blocked

    Is your bitbake layer for usage with OpenEmbedded-Core/Yocto? If so, CoreCDP is still using OE Classic for now, so BBFETCH2 may not be the only issue you run into regarding compatibility.

    Is this a custom layer or a community-supported one?

    Thanks,
    Jesse

    #5609
    Alexey Klimenko
    Participant

    Now as you say it I guess you are right. The layer is https://github.com/imyller/meta-nodejs
    Nodejs recipe works fine. Only NPM add-on fails as it uses custom Fetch2 add-on.
    Thank you!

    #5612
    Alexey Klimenko
    Participant

    Just last question, do you plan to release a new version of CoreCDP anytime soon?
    Regards,
    Alexey

    #5614
    Mike Fiore
    Blocked

    We have a new release of CoreCDP coming down the pipe. I’m not sure if there is a release date yet. However, it will still be based on oe-classic, so support for the custom add-on you mentioned won’t be included if it isn’t already.
    We are aware of how deprecated oe-classic is getting and are hoping to migrate to oe-core in the future. It’s probably still quite a ways out though.

    -Mike

    #5805
    Ilkka Myller
    Participant

    I have now moved NPM fetch2 Bitbake extension to a separate OpenEmbedded layer/repository:

    https://github.com/imyller/bitbake-npm

    The recipes for stable Node.js releases will stay in:

    https://github.com/imyller/meta-nodejs

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.