[Sugar-devel] sugar-build without chroot

Daniel Narvaez dwnarvaez at gmail.com
Fri Jul 19 03:59:03 EDT 2013


This is really weird, sugar-build from the chroot branch uses the chroot
branch of osbuild

https://github.com/sugarlabs/sugar-build/blob/chroot/osbuild#L202

Which doesn't have --home-dir anymore

https://github.com/dnarvaez/osbuild/blob/chroot/osbuild/run.py

Maybe try to rm -rf build/out/sandbox and see if the right code is pulled...

On Thursday, 18 July 2013, Gonzalo Odiard wrote:

>
>
>
> On Thu, Jul 18, 2013 at 2:36 PM, Daniel Narvaez <dwnarvaez at gmail.com<javascript:_e({}, 'cvml', '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
>>
>>
>

-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130719/33d3ba9c/attachment-0001.html>


More information about the Sugar-devel mailing list