<div dir="ltr">On Fri, Jul 19, 2013 at 4:59 AM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is really weird, sugar-build from the chroot branch u<span></span>ses the chroot branch of osbuild<div><br></div><div>
<span style="font-family:'.HelveticaNeueUI';white-space:nowrap"><a href="https://github.com/sugarlabs/sugar-build/blob/chroot/osbuild#L202" target="_blank">https://github.com/sugarlabs/sugar-build/blob/chroot/osbuild#L202</a></span></div>

<div><font face=".HelveticaNeueUI"><span style="white-space:nowrap"><br></span></font></div><div><font face=".HelveticaNeueUI"><span style="white-space:nowrap">Which doesn't have --home-dir anymore</span></font></div>

<div><font face=".HelveticaNeueUI"><span style="white-space:nowrap"><br></span></font></div><div><span style="font-family:'.HelveticaNeueUI';white-space:nowrap"><a href="https://github.com/dnarvaez/osbuild/blob/chroot/osbuild/run.py" target="_blank">https://github.com/dnarvaez/osbuild/blob/chroot/osbuild/run.py</a></span><font face=".HelveticaNeueUI"><span style="white-space:nowrap"><br>

</span></font></div><div><span style="font-family:'.HelveticaNeueUI';white-space:nowrap"><br></span></div><div><span style="font-family:'.HelveticaNeueUI';white-space:nowrap">Maybe try to rm -rf build/out/sandbox and see if the right code is pulled...</span></div>
</blockquote><div><br></div><div>Will try later.</div><div><br></div><div>Gonzalo</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
<div><br>On Thursday, 18 July 2013, Gonzalo Odiard  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Jul 18, 2013 at 2:36 PM, Daniel Narvaez <span dir="ltr"><<a>dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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).<div>


<br></div><div>I'm trying to figure out how to make the "upgrade" automatic or at least more obvious, but it's tricky.<div><div><span></span><br>
<br></div></div></div></blockquote><div><br></div><div><br></div><div>Now I did a clone from zero.</div><div>Did all the the build, when I try do:</div><div><br></div><div><br></div><div><div>[gonzalo@localhost sugar-build]$ ./osbuild run</div>


<div>Type Shift-Alt-Q inside sugar to close.</div><div><br></div><div>Command failed: sugar-runner --home-dir /home/gonzalo/sugar-build/build/state/home/default</div><div><br></div><div>usage: sugar-runner [-h] [--resolution RESOLUTION] [--output OUTPUT]</div>


<div>sugar-runner: error: unrecognized arguments: --home-dir /home/gonzalo/sugar-build/build/state/home/default</div><div>Traceback (most recent call last):</div><div>  File "/home/gonzalo/sugar-build/build/commands/run", line 16, in <module></div>


<div>    run.run("sugar-runner")</div><div>  File "/home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/run.py", line 38, in run</div><div>    command.run(args)</div>


<div>  File "/home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/command.py", line 39, in run</div><div>    raise subprocess.CalledProcessError(result, args)</div><div>subprocess.CalledProcessError: Command '['sugar-runner', '--home-dir', '/home/gonzalo/sugar-build/build/state/home/default']' returned non-zero exit status 2</div>


<div>[gonzalo@localhost sugar-build]$ </div></div><div><br></div><div>if I modify the file</div><div><br></div><div> /home/gonzalo/sugar-build/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/run.py<br></div>


<div><br></div><div>and replace the line:</div><div><br></div><div><div>args = [cmd, "--home-dir", config.home_dir]</div><div><br></div><div>by </div><div><br></div><div>args = [cmd]<br></div></div><div><br></div>


<div>sugar-build starts.</div><div><br></div><div>I couldn't find where is the source of that file, then don't know when or why was changed.</div><div><br></div><div>Gonzalo</div><div><br></div><div><br></div><div>


<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div><div><div>On Thursday, 18 July 2013, Gonzalo Odiard  wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>If I have a file prefs.json with {"use_broot": false}</div>


<div>as suggested to not use chroot,</div>

<div>get the following error:</div><div><br></div><div>[gonzalo@localhost sugar-build]$ ./osbuild build</div>
<div>Traceback (most recent call last):</div><div>  File "/home/gonzalo/sugar-build-multiselection/build/commands/build", line 4, in <module></div><div>    common.run("build")</div><div>  File "/home/gonzalo/sugar-build-multiselection/build/commands/common.py", line 76, in run</div>





<div>    if not getattr(main, "cmd_%s" % command)():</div><div>  File "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/main.py", line 123, in cmd_build</div>





<div>    result = run_build(clean_all=args.clean_all)</div><div>  File "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/main.py", line 41, in run_build</div>





<div>    if not build.pull(lazy=True):</div><div>  File "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/build.py", line 50, in pull</div><div>    for module in config.load_modules():</div>





<div>  File "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/config.py", line 186, in load_modules</div><div>    return [Module(info) for info in filter(_filter_if, json.load(f))]</div>





<div>  File "/home/gonzalo/sugar-build-multiselection/build/out/sandbox/install/lib/python2.7/site-packages/osbuild/config.py", line 220, in _filter_if</div><div>    return eval(item["if"], globals)</div>





<div>  File "<string>", line 1, in <module></div><div>NameError: name 'gnome_version' is not defined</div><div><br></div></div>
</blockquote>
</div></div></div><span><font color="#888888"><br><br>-- <br>Daniel Narvaez<br><br>
</font></span></blockquote></div><br></div></div>
</blockquote></div><br><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Daniel Narvaez<br><br>
</font></span></blockquote></div><br></div></div>