GithubHelp home page GithubHelp logo

oe-lite / core Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 17.0 5.02 MB

Official OE-lite/core repository - moved to GitLab.com

Home Page: https://gitlab.com/oe-lite/core

License: Other

Python 87.57% Standard ML 0.41% BitBake 0.35% Shell 2.47% C++ 0.19% SourcePawn 0.79% PHP 5.48% Assembly 0.18% Roff 0.15% Pascal 2.02% HTML 0.40%

core's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

ply fails on python-2.6

Running OE-lite on an ancient Redhat machine generates the following error:

ERROR: exception in bake.run()

Traceback (most recent call last):
  File "/mnt/tmp/buildbot/slave/maquet-deploy/build/bakery/oebakery/cmd/cmds.py", line 137, in call
    ret = function(*args)
  File "/mnt/tmp/buildbot/slave/maquet-deploy/build/oe-lite/meta/core/lib/oelite/cmd/bake.py", line 29, in run
    baker = oelite.baker.OEliteBaker(options, args, config)
  File "/mnt/tmp/buildbot/slave/maquet-deploy/build/oe-lite/meta/core/lib/oelite/baker.py", line 115, in __init__
    self.confparser = confparse.ConfParser(self.config)
  File "/mnt/tmp/buildbot/slave/maquet-deploy/build/oe-lite/meta/core/lib/oelite/parse/confparse.py", line 10, in __init__
    super(ConfParser, self).__init__(data, parent, **kwargs)
  File "/mnt/tmp/buildbot/slave/maquet-deploy/build/oe-lite/meta/core/lib/oelite/parse/oeparse.py", line 18, in __init__
    self.tokens = lexer.lextokens.keys()
AttributeError: 'set' object has no attribute 'keys'

CRITICAL: bake failed: Exception: 'set' object has no attribute 'keys'

I am no expert in python-ply, but let me know if I can do any testing.

$ python --version
Python 2.6.6

Core-4.0.0 w/ ply-3.6 bombs at bake init.

Decided to do a fresh build after upgrading to core/4.0.0 by removing tmp/.

huvudfoting [11:07] /data/sabre/oelite/tlabos> oe bake -d lpc21isp
whitelist=['PATH', 'PWD', 'SHELL', 'TERM', 'MACHINE', 'DISTRO']
Whitelist filtered shell environment:
> PATH=/home/mikaelj/local/bin:/home/mikaelj/local/sbin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools:/home/mikaelj/local/bin:/home/mikaelj/local/sbin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools:/home/mikaelj/local/bin:/home/mikaelj/local/sbin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools:/opt/arm-cs-tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mikaelj/.local/bin:/home/mikaelj/.local/bin:/home/mikaelj/.local/bin/:/home/mikaelj/.local/bin:/home/mikaelj/.local/bin/
> PWD=/data/sabre/oelite/tlabos
> SHELL=bash
> TERM=screen-256color-s
ERROR: exception in bake.run()

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/oebakery/cmd/cmds.py", line 137, in call
    ret = function(*args)
  File "/data/sabre/oelite/tlabos/meta/core/lib/oelite/cmd/bake.py", line 29, in run
    baker = oelite.baker.OEliteBaker(options, args, config)
  File "/data/sabre/oelite/tlabos/meta/core/lib/oelite/baker.py", line 115, in __init__
    self.confparser = confparse.ConfParser(self.config)
  File "/data/sabre/oelite/tlabos/meta/core/lib/oelite/parse/confparse.py", line 10, in __init__
    super(ConfParser, self).__init__(data, parent, **kwargs)
  File "/data/sabre/oelite/tlabos/meta/core/lib/oelite/parse/oeparse.py", line 26, in __init__
    self.yacc = ply.yacc.yacc(module=self, debug=0, picklefile=picklefile)
  File "/usr/local/lib/python2.7/dist-packages/ply-3.6-py2.7.egg/ply/yacc.py", line 3242, in yacc
    read_signature = lr.read_pickle(picklefile)
  File "/usr/local/lib/python2.7/dist-packages/ply-3.6-py2.7.egg/ply/yacc.py", line 1986, in read_pickle
    in_f = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: 'tmp/ply/oelite.parse.confparse.p'

CRITICAL: bake failed: Exception: [Errno 2] No such file or directory: 'tmp/ply/oelite.parse.confparse.p'
huvudfoting [11:07] /data/sabre/oelite/tlabos -1-> 

tmp/ply is an empty directory.

libtool encodes path to its own workdir

Seen in cross:libtool_2.4.6 for mingw32 in install/bin/i686-unknown-mingw32-libtool

sys_lib_search_path_spec="/home/user/build/work/cross/i686-unknown-mingw32/libtool-2.4.6/stage/cross/lib/gcc /home/user/build/work/cross/i686-unknown-mingw32/libtool-2.4.6/stage/cross/i686-unknown-mingw32/sysroot/usr/lib "

bake fails on newer pysqlite

pysqlite-2.8.1 / sqlite-3.10.2

ERROR: exception in bake.run()

Traceback (most recent call last):
 File "/usr/lib/python2.7/site-packages/oe_lite-4.2.0.post0-py2.7.egg/oebakery/cmd/cmds.py", line 137, in call
   ret = function(*args)
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/cmd/bake.py", line 35, in run
   return baker.bake()
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/baker.py", line 289, in bake
   self.options.rebuild, self.options.relax)
 File "/home/rijo/repos/tlabos/meta/core/lib/oelite/runq.py", line 26, in __init__
   self.cookbook.db.execute("ATTACH ':memory:' AS runq")
OperationalError: cannot ATTACH database within transaction

CRITICAL: bake failed: Exception: cannot ATTACH database within transaction

Solved by adding self.cookbook.db.execute("END TRANSACTION") at core/lib/oelite/runq.py:26

core-4.0.0: fetch/git.py broken on SRC_URI without branch/tag/commit

Invalid URI: cannot mix commit, tag and branch parameters:
git://[email protected]/lpc21isp.git

In the past, that always fetched HEAD. Now I can no longer fetch HEAD.

Workaround or possible fix.

commit fc81d53c830e9a99d96eb0bef1ce885029dd1d5f
Author: Mikael Jansson <[email protected]>
Date:   Thu Aug 20 14:16:08 2015 +0200

    WORKAROUND: fix not having a branch specified.

diff --git a/lib/oelite/fetch/git.py b/lib/oelite/fetch/git.py
index 51844e7..7d5c155 100644
--- a/lib/oelite/fetch/git.py
+++ b/lib/oelite/fetch/git.py
@@ -67,6 +67,7 @@ class GitFetcher():
         i = bool(self.commit) + bool(self.tag) + bool(self.branch)
         if i == 0:
             self.branch = "HEAD"
+            i = 1
             if self.is_local and not hasattr(self, 'dirty'):
                 self.dirty = True
         if "dirty" in uri.params:

GCC 4.8.5

Upgrade GCC to 4.8.5 to fix bug in 4.8.2 causing trouble when building Linux kernel.

bake.run() is trying to expand variables in uncommented lines

When using '#' comments in recipe files bake.run is still trying to expand variables, and fails if this is not possible.

Reproduce
In e.g. do_install() insert a expandable on a comment line:
do_install () {

${FOO}

}
Will result in:
CRITICAL: bake failed: Exception: Cannot expand variable ${HEST}
While running bake.run()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.