[Sugar-devel] sugar-build without chroot

Gonzalo Odiard gonzalo at laptop.org
Thu Jul 18 14:42:23 EDT 2013


On Thu, Jul 18, 2013 at 2:36 PM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:

> It seems like you are running a mix of master and chroot branch code. Did
> you start from a clean clone or run osbuild clean before switching branch?
> (Hope I remembered to suggest that in my emails).
>
> I'm trying to figure out how to make the "upgrade" automatic or at least
> more obvious, but it's tricky.
>
>
>

Now I did a clone from zero.
Did all the the build, when I try do:


[gonzalo at localhost sugar-build]$ ./osbuild run
Type Shift-Alt-Q inside sugar to close.

Command failed: sugar-runner --home-dir
/home/gonzalo/sugar-build/build/state/home/default

usage: sugar-runner [-h] [--resolution RESOLUTION] [--output OUTPUT]
sugar-runner: error: unrecognized arguments: --home-dir
/home/gonzalo/sugar-build/build/state/home/default
Traceback (most recent call last):
  File "/home/gonzalo/sugar-build/build/commands/run", line 16, in <module>
    run.run("sugar-runner")
  File
"/home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/run.py",
line 38, in run
    command.run(args)
  File
"/home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/command.py",
line 39, in run
    raise subprocess.CalledProcessError(result, args)
subprocess.CalledProcessError: Command '['sugar-runner', '--home-dir',
'/home/gonzalo/sugar-build/build/state/home/default']' returned non-zero
exit status 2
[gonzalo at localhost sugar-build]$

if I modify the file

 /home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/run.py

and replace the line:

args = [cmd, "--home-dir", config.home_dir]

by

args = [cmd]

sugar-build starts.

I couldn't find where is the source of that file, then don't know when or
why was changed.

Gonzalo












> On Thursday, 18 July 2013, Gonzalo Odiard wrote:
>
>> If I have a file prefs.json with {"use_broot": false}
>> as suggested to not use chroot,
>> get the following error:
>>
>> [gonzalo at localhost sugar-build]$ ./osbuild build
>> Traceback (most recent call last):
>>   File "/home/gonzalo/sugar-build-multiselection/build/commands/build",
>> line 4, in <module>
>>     common.run("build")
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/commands/common.py", line
>> 76, in run
>>     if not getattr(main, "cmd_%s" % command)():
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/main.py",
>> line 123, in cmd_build
>>     result = run_build(clean_all=args.clean_all)
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/main.py",
>> line 41, in run_build
>>     if not build.pull(lazy=True):
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/build.py",
>> line 50, in pull
>>     for module in config.load_modules():
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/config.py",
>> line 186, in load_modules
>>     return [Module(info) for info in filter(_filter_if, json.load(f))]
>>   File
>> "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/config.py",
>> line 220, in _filter_if
>>     return eval(item["if"], globals)
>>   File "<string>", line 1, in <module>
>> NameError: name 'gnome_version' is not defined
>>
>>
>
> --
> Daniel Narvaez
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130718/6cbf62a1/attachment-0001.html>


More information about the Sugar-devel mailing list