<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 21 Jan 2019 at 05:48, Fabio Niephaus <<a href="mailto:lists@fniephaus.com">lists@fniephaus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
On Sun, Jan 20, 2019 at 3:08 AM Ben Coman <<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>> wrote:<br>
><br>
> How is the CHROOT variable used for linux32ARM6 builds?<br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/.travis.yml" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/.travis.yml</a><br>
><br>
>   - stage: "linux32ARMv6 builds"<br>
>     env: ARCH="linux32ARMv6" FLAVOR="newspeak.cog.spur" CHROOT="schroot -p -c rpi<br>
>       -- bash -c "<br>
>     dist: trusty<br>
>     group: edge<br>
><br>
> I don't see it referenced anywhere else...<br>
> <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q=chroot" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q=chroot</a><br>
<br>
GitHub's code search is terrible, do not trust it! It might have been<br>
too obvious, but CHROOT is actually only been used in the .travis.yml:<br>
<br>
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/5a38b3483dc5c82c7ecc85a590fdf1b095377a1f/.travis.yml#L133" rel="noreferrer" target="_blank">https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/5a38b3483dc5c82c7ecc85a590fdf1b095377a1f/.travis.yml#L133</a></blockquote><div><br></div><div>Thanks.  I had completely missed that use <span style="line-height:1.5">in .travis.yml </span><span style="line-height:1.5">and only noticed the definitions.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">In my other thread "condensing Travis build matrix" </span><span style="line-height:1.5">I tried to not-repeat-myself to reduce the line length of the ARM job definitions</span><br></div><div><span style="line-height:1.5">by making a global CHROOT defintion...</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">    env: </span><br></div><div><div>      global:</div><div>        - CHROOT="schroot -p -c rpi -- bash -c "</div></div><div><br></div><div><div><span style="line-height:1.5">...but now I see that obviously won't work.  </span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">What about moving the per job repetitions of CHROOT definition to be more localised like this...</span></div><div><span style="line-height:1.5"><br></span></div><div>    before_script: </div><div><span style="line-height:1.5">        - if [[ $ARCH == *"ARM"* ]] ; then</span><br></div><div>               CHROOT="schroot -p -c rpi <span style="line-height:1.5">-- bash -c "</span><span style="line-height:1.5"> </span></div><div><span style="line-height:1.5">          fi</span></div><div>        - $CHROOT ./scripts/ci/travis_build.sh<br></div><div><br></div><div>where </div><div>   ARCH=linux32ARMv6<br></div><div><br></div><div>If that sounds worth a try I can test it.</div><div><br></div><div>cheers -ben</div><div><br></div><div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>