Bug 5701 - Hob duplicates configuration in local.conf
Summary: Hob duplicates configuration in local.conf
Status: RESOLVED WORKSFORME
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M3
Assignee: Marius Avram
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-03 13:27 UTC by Belen Barros Pena
Modified: 2014-02-10 16:46 UTC (History)
6 users (show)

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


Attachments
local.conf example (13.69 KB, application/octet-stream)
2014-01-03 13:27 UTC, Belen Barros Pena
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2014-01-03 13:27:08 UTC
Created attachment 1704 [details]
local.conf example

You can reproduce the problem like this:

1. Add the meta-geeksphone layer to Hob (http://layers.openembedded.org/layerindex/branch/master/layer/meta-geeksphone/)

2. Select geeksphone-one as the machine. An error should come up during recipe parsing

3. Dismiss the error 

4. Select some other machine. You will probably get another error

5. Dismiss the error and close Hob. 

Check local.conf. Most of the variables set by Hob will be set twice. An example of local.conf is attached
Comment 1 Marius Avram 2014-02-10 10:52:22 UTC
I tried to reproduce the bug but the conf/local.conf file looks fine. Do you have the same problem with any other layer or only with this one? I've added below my errors. Are they identical to yours ?

So this is the first one which I get after I select geeksphone-one as the machine. Looks like some include file is missing.

Traceback (most recent call last):
  File "/home/marius/work/poky/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
    return func(fn, *args)
  File "/home/marius/work/poky/bitbake/lib/bb/cookerdata.py", line 173, in parse_config_file
    return bb.parse.handle(fn, data, include)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/__init__.py", line 99, in handle
    return h['handle'](fn, data, include)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 151, in handle
    statements.eval(data)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/ast.py", line 39, in eval
    statement.eval(data)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/ast.py", line 63, in eval
    bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, False)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 97, in include
    ret = handle(fn, data, True)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/__init__.py", line 99, in handle
    return h['handle'](fn, data, include)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 151, in handle
    statements.eval(data)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/ast.py", line 39, in eval
    statement.eval(data)
  File "/home/marius/work/poky/bitbake/lib/bb/parse/ast.py", line 61, in eval
    bb.parse.ConfHandler.include(self.filename, s, self.lineno, data, "include required")
  File "/home/marius/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 100, in include
    raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno)
ParseError: ParseError at /home/marius/work/meta-smartphone/meta-geeksphone/conf/machine/geeksphone-one.conf:7: Could not include required file conf/machine/include/tune-arm1136j-s.inc

Unable to parse conf/bitbake.conf: ParseError at /home/marius/work/meta-smartphone/meta-geeksphone/conf/machine/geeksphone-one.conf:7: Could not include required file conf/machine/include/tune-arm1136j-s.inc
Exited with 1


And this is the error I get when I select a different machine such as beagleboard:

ParseError at /home/marius/work/meta-smartphone/meta-geeksphone/recipes-kernel/linux/linux-geeksphone-one_git.bb:1: Could not include required file recipes-kernel/linux/linux.inc
Comment 2 Belen Barros Pena 2014-02-10 16:46:08 UTC
Errors are the same ones you get, but I no longer get the duplication problem in local.conf

Setting to Resolved - Worksforme