<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 March 2015 at 18:54, Anthony Walter <span dir="ltr"><<a href="mailto:sysrpl@gmail.com" target="_blank">sysrpl@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 class="gmail_extra">Okay, here is what was happening and I apologize for the confusion. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Before the source files are updated each night, my script applies "changes.diff" the uploads the sources to an amazon s3 bucket (I pay for the bandwidth and avoid leaching from other peoples servers). Next the Linux install script downloads this file archive from an my amazon bucket, extracts it, and attempts to run "patch changes.diff". The problem being that the patch was already been applied the night before and as a consequence it fails. The install should still work same as normal, but the patch wouldn't have done anything.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The fix, which has already been applied to the Linux setup script, is to not run patch on the extracted archive. You can validate this by re-running:</div><div class="gmail_extra"><br></div><div class="gmail_extra">curl -L <a href="http://www.getlazarus.org/download/?platform=linux" target="_blank">http://www.getlazarus.org/download/?platform=linux</a> -o setup.sh<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And examining the commented out patch command at line:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://github.com/sysrpl/Codebot.Setup/blob/master/linux/install.fpc-3.0.linux.sh#L251" target="_blank">https://github.com/sysrpl/Codebot.Setup/blob/master/linux/install.fpc-3.0.linux.sh#L251</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I believe this fixes the problem. Let me know if you have any further questions.</div></div>
<br></blockquote><div><br></div><div>That is how I got it working. I made sure I updated the git mirror to the latest version and commented out the patch command.<br><br></div><div> I think you should also consider testing for the presence of the boot strapping binary before downloading it as it doesn't seem to change that frequently, or run a test to compare the version on the host server against the local version. It is not just the bandwidth which may be an issue on slow links, which may also be expensive. The time it takes matters.<br><br></div><div>The unzipping of the bootstrapping binary may also not be necessary as there is no sign that any of the files extracted are changed during the compile process.<br><br>It looks like developing efficient shell scripts is not one of the favourite pastimes of FPC developers. Many of them are spoiled rotten by Pascal and don't have patience for the quirkyness of bash and DOS batch files. :)<br><br></div></div>-- <br><div class="gmail_signature">Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a></div>
</div></div>