<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 24, 2015 at 4:02 PM, Eike Rathke <span dir="ltr"><<a href="mailto:erack@redhat.com" target="_blank">erack@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dashamir,<br>
<br>
On Friday, 2015-07-24 14:48:16 +0200, Dashamir Hoxha wrote:<br>
<br>
> <a href="https://github.com/FreeSoft-AL/libreoffice-compile/blob/master/compile/git-clean.sh" rel="noreferrer" target="_blank">https://github.com/FreeSoft-AL/libreoffice-compile/blob/master/compile/git-clean.sh</a><br>
<br>
That's IMHO not only unnecessary but also incomplete. When doing git<br>
checkout in core only you'll miss the corresponding submodule checkouts,<br></blockquote><div><br></div><div>Please help me to fix these scripts and to make them work properly.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i.e. dictionaries, translations and helpcontent2. You may not need them<br>
if you didn't configure so, but just make using ./g a habit when<br>
switching branches or for pulls. ./g takes care of submodules, it<br>
applies the git command you specify also to the submodules. Note also<br>
that you should not use git pull but git pull -r (for rebase) instead to<br>
not introduce merge commits.<br>
<span class=""><br>
> (because I didn't know about `g`)<br>
<br>
</span>I think that's mentioned several times in the build instructions in the<br>
wiki, but maybe not everywhere where needed.. note it is ./g and not<br></blockquote><div><br></div><div>It is not mentioned here: <a href="https://wiki.ubuntu.com/BuildingLibreOffice">https://wiki.ubuntu.com/BuildingLibreOffice</a></div><div>But you are right because it is mentioned here:</div><div><a href="https://wiki.documentfoundation.org/Development/BuildingOnLinux#Checking_out_a_release_branch">https://wiki.documentfoundation.org/Development/BuildingOnLinux#Checking_out_a_release_branch</a><br></div><div>However, since I missed it, this is an indicator that documentation lacks something</div><div>(because I am not a novice user).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
only g, because it is a script in the source root directory.<br>
<br>
However, to switch branches to build (e.g. the 5-0 branch) it usually is<br>
sufficient to<br>
<br>
./g checkout libreoffice-5-0<br>
make clean<br>
make<br></blockquote><div><br></div><div>I rename the code directory to match the name of the branch.</div><div>In this case the commands above are not sufficient either (`make clean` will fail).</div><div>The command `<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">git clean -fdx</span>` will fix this, as used here:</div><div><a href="https://github.com/FreeSoft-AL/libreoffice-compile/blob/master/compile/get-branch.sh">https://github.com/FreeSoft-AL/libreoffice-compile/blob/master/compile/get-branch.sh</a></div><div><br></div><div>By the way, I have tried twice more to compile the branch libreoffice-5-0,</div><div>and both of the times it failed with the message:</div><div>----------</div><div><pre class="drive-viewer-text-page drive-viewer-focus-to-default" style="font-family:'Courier New',Courier,monospace,arial,sans-serif;font-size:14px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0)">g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[6]: *** [IWORKFormula.lo] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [/compile/libreoffice-5-0/workdir/ExternalProject/libetonyek/build] Error 1
make: *** [build] Error 2</pre></div><div>----------  </div><div>See the log files here:</div><div> - <a href="https://drive.google.com/open?id=0B7H_DCc2DjNGTzlrZlZLV25XYm8">https://drive.google.com/open?id=0B7H_DCc2DjNGTzlrZlZLV25XYm8</a></div><div> - <a href="https://drive.google.com/open?id=0B7H_DCc2DjNGa3psd19CREQwUmc">https://drive.google.com/open?id=0B7H_DCc2DjNGa3psd19CREQwUmc</a></div><div>However I have to admit that I didn't use `./g`, just to make sure that it is necessary.</div><div><br></div><div>Now I am compiling it again, but this time for the branch libreoffice-5-0-0, which</div><div>I suppose is more stable than libreoffice-5-0. And I also used `./g`.</div><div>The compilation is still going on (and it will last for about 10 hours or so).</div><div><br></div><div>Dashamir</div><div><br></div></div><br></div></div>