<div dir="ltr"><div>I switched this to use Fedora 19 instead of debian, mostly to avoid webkit and gtk. It depends on yum now, which also seems to be packaged by debian, ubuntu, gentoo, archlinux. I expect this will be a bit harder then deboostrap to get to work everywhere, so testing will be even more appreciated.<br>
<br></div><div>I'm very happy with how this is shaping up, so I'm going to experiment in a chroot branch with turning it on everywhere, it should simplify sugar-build and the build infrastructure a lot.<br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 7 July 2013 00:37, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hello,<br><br></div><div>I added support for creating and using a chroot transparently to sugar-build. This will make possible to use it also on distributions which are not "natively" supported. <br>
<br>The only requirement is debootstrap which seems to be available in all the distros I checked (fedora, debian, ubuntu, archlinux, gentoo). Building the chroot takes some time/network but it's a one time thing, so it shouldn't be too annoying.<br>
</div><div><div><br></div><div>I tested it on Debian and partially on Fedora 18 so far. Please test it on your favorite distribution and let me know if you find any issue.<br></div><div><br></div><div>I suggest something like this (it's supposed to be completely transparent, but I haven't really tested all the paths yet).<br>
<br>git clone git://<a href="http://github.com/sugarlabs/sugar-build" target="_blank">github.com/sugarlabs/sugar-build</a><br>cd sugar-build <br></div><div><br></div><div>Create a prefs.json file with content (perhaps pick a mirror near you)<br>
{"chroot": {"mirror": "<a href="http://ftp.uk.debian.org/debian/" target="_blank">http://ftp.uk.debian.org/debian/</a>"}}<br></div><div><br></div><div>./osbuild<br></div><div>... wait ...<br>
</div><div>build<br>
</div><div>... wait ...<br></div><div>run<br><br></div><div>exit<br></div><div><br></div><div>On exit you might failures to unmount. If so I suggest you unmount it manually, otherwise you will likely have issues next time you use it. Also please send me the output. It's pretty tricky to get unmount right, but I'm sure we will get there eventually.<br>
</div><div><br></div><div>When this is solid enough the plan is to enable it automatically on all the distributions which are not supported natively (though I'll keep a prefs.json option to disable the chroot and get current behavior).<br>
</div><div><br></div><div>Now when gtk 3.8 and webkigtk 2.0 will make it to jessie things will be much faster... I'm tempted to just rebuild the packages from unstable/experimental, upload them somewhere and pull them in the chroot.<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br>Daniel Narvaez<br>
</div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div>