[fpc-pascal] Free Pascal and Lazarus Nightly Builds

vfclists . vfclists at gmail.com
Sat Mar 14 06:03:04 CET 2015

On 13 March 2015 at 18:54, Anthony Walter <sysrpl at gmail.com> wrote:

> Okay, here is what was happening and I apologize for the confusion.
> 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.
> 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:
> curl -L http://www.getlazarus.org/download/?platform=linux -o setup.sh
> And examining the commented out patch command at line:
> https://github.com/sysrpl/Codebot.Setup/blob/master/linux/install.fpc-3.0.linux.sh#L251
> I believe this fixes the problem. Let me know if you have any further
> questions.
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.

 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.

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.

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. :)

Frank Church

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150314/f7086687/attachment.html>

More information about the fpc-pascal mailing list