Free Pascal and Lazarus Nightly Builds

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Free Pascal and Lazarus Nightly Builds

Anthony Walter-3
This is a public notice. Get Lazarus has switched from hosting arbitrary revisions to hosting setup programs from nightly builds.


Going forward each night the current svn trunk sources of FPC and Lazarus will be updated and converted into a Windows installer, Linux, and Macintosh  archives. The installer, setup scripts, application shortcuts, and website have now prominently inform users that they have installed or might be installing nightly build versions of FPC and Lazarus.

As before any changes get Lazarus makes are hosted in a diff file distributed with each install. This information is also mirrored on github.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

LacaK
Thank you Anthony,
nightly snapshots are IMO very usefull for easy testing patches.
For me often in forum happens, that anybody reports bug, bug was fixed
and user was asked to test patched version.
User asked how to do it ... and answer was you must use TRUNK version
and most of users "ends" at this poins .

BTW it will be IMO usefull have in name also version of FPC+Lazarus, so
instead of "setup.exe" something like: "setup_3.0.1_1.5"

-Laco.
>
> Going forward each night the current svn trunk sources of FPC and
> Lazarus will be updated and converted into a Windows installer, Linux,
> and Macintosh  archives.
>
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

[Cross-post] Re: Free Pascal and Lazarus Nightly Builds

el_es
In reply to this post by Anthony Walter-3
On 03/03/15 17:47, Anthony Walter wrote:

> This is a public notice. Get Lazarus has switched from hosting
> arbitrary revisions to hosting setup programs from nightly builds.
>
> http://www.getlazarus.org/setup/
>
> Going forward each night the current svn trunk sources of FPC and
> Lazarus will be updated and converted into a Windows installer,
> Linux, and Macintosh  archives. The installer, setup scripts,
> application shortcuts, and website have now prominently inform users
> that they have installed or might be installing nightly build
> versions of FPC and Lazarus.
>
> As before any changes get Lazarus makes are hosted in a diff file
> distributed with each install. This information is also mirrored on
> github.
>

Having had a look (as it's a wiki-idea-page-engine), I conclude that the automatic
start of download only does not work any more by accident -
somehow it doesn't go to ?download#linux when I visit it,
but entering http://www.getlazarus.org/setup/?download#linux into URL field still does.

Please consider removing the automatic click on the download link PERMANENTLY and SURELY.

Going to relevant OS section IS OK.

Forcing users to immediately decide whether to save or not, IS NOT.

My £0.02p.

el es

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

Mark Morgan Lloyd-5
Lukasz Sokol wrote:

> On 03/03/15 17:47, Anthony Walter wrote:
>> This is a public notice. Get Lazarus has switched from hosting
>> arbitrary revisions to hosting setup programs from nightly builds.
>>
>> http://www.getlazarus.org/setup/
>>
>> Going forward each night the current svn trunk sources of FPC and
>> Lazarus will be updated and converted into a Windows installer,
>> Linux, and Macintosh  archives. The installer, setup scripts,
>> application shortcuts, and website have now prominently inform users
>> that they have installed or might be installing nightly build
>> versions of FPC and Lazarus.
>>
>> As before any changes get Lazarus makes are hosted in a diff file
>> distributed with each install. This information is also mirrored on
>> github.
>>
>
> Having had a look (as it's a wiki-idea-page-engine), I conclude that the automatic
> start of download only does not work any more by accident -
> somehow it doesn't go to ?download#linux when I visit it,
> but entering http://www.getlazarus.org/setup/?download#linux into URL field still does.
>
> Please consider removing the automatic click on the download link PERMANENTLY and SURELY.
>
> Going to relevant OS section IS OK.
>
> Forcing users to immediately decide whether to save or not, IS NOT.

Out of curiosity, I've just taken a look at it on an "unexpected"
platform (Linux SPARC). It did a creditable job, except that it appears
to not make an initial check that FPC binaries are already installed :-)

There might be additional problems if the FPC version has already been
bumped to something non-approved (e.g. on MIPS it doesn't exist for
<2.7.1). Also there's a problem with some combinations of FPC build
where make "loses" the initial ppcxxxx binary, resulting in lots of
messages along the lines of (this is from memory) "make cannot find the
command -ijjhgjhgjhg".

Apart from that, a valiant attempt :-)

Just my 2d worth.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

Anthony Walter-3
In reply to this post by el_es
Lukasz. I'm not sure where you are talking about.

I know there's a really big orange button at the top of the screen with two words in all caps "DOWNLOAD NOW". You're saying you click that and something starts to download right away or what some colloquially refer to as now? Because if you are, then you've made me totally confused. Maybe

Or, is there some other place without the words "DOWNLOAD NOW" where a download happens now and is causing your confusion, such as the "get Lazarus today" link on the front page or the "Universal Setup" link at the bottom of every single page?

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

el_es
On 04/03/15 11:45, Anthony Walter wrote:
> Lukasz. I'm not sure where you are talking about.
>
> I know there's a really big orange button at the top of the screen
> with two words in all caps "DOWNLOAD NOW". You're saying you click
> that and something starts to download right away or what some
> colloquially refer to as now? Because if you are, then you've made me
> totally confused. Maybe

in fact IT DOES PROMPT to download with (0.5s delay) after clicking
the Download Now link at the top of (at least Home, but probably also every) page.

http://www.getlazarus.org/setup/?download#linux is what appears in my URL bar.

Before some changes were made (did not keep track sorry) that used to happen
on http://www.getlazarus.org/setup too but stopped when you updated page to host nightlies.

So as http://www.getlazarus.org/setup does not automatically prompt to download,
but http://www.getlazarus.org/setup/?download#linux does,

I still conclude this is by accident and SHALL BE STOPPED by means of e.g.
commenting out the a.click portions of the script, if you still want to keep the
page jumping to anchor (I've no problem with that):

-----
function initDownload(os) {
  var a = getId(os + "Install");
  // a.click(); <<< comment this out
}

function checkDownload() {
  var hash = window.location.toString().toLowerCase();
  if (hash.endsWith("?download#windows"))
    initDownload("windows");
  if (hash.endsWith("?download#macintosh"))
    initDownload("macintosh");
  if (hash.endsWith("?download#linux"))
    initDownload("linux");
}

setTimeout(checkDownload, 500);
----------------

I reply to it here, as I have made similar (actually, commenting the setTimeout) change
on the wiki engine which never made it to the page also I sent it to an email pointed on
Contact Us page which has also never even got an acknowledgement.

(OK I can understand you and your moderators are busy, no problem.
 But it's not just me small time user who did complain about it ... )

>
> Or, is there some other place without the words "DOWNLOAD NOW" where
> a download happens now and is causing your confusion, such as the
> "get Lazarus today" link on the front page or the "Universal Setup"
> link at the bottom of every single page?

No, The behavior described WAS on the Download Now page http://www.getlazarus.org/setup/ at the TOP of every page,
by some accident it stopped doing that on an URL without ?download#linux, but
when I actually CLICK on the Download Now, goes to http://www.getlazarus.org/setup/?download#linux
and causes my browser to pop me up a question whether where to save it.


Hope you find the above helpful.

Kind Regards
Lukasz

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

vfclists .
In reply to this post by Anthony Walter-3


On 3 March 2015 at 17:47, Anthony Walter <[hidden email]> wrote:
This is a public notice. Get Lazarus has switched from hosting arbitrary revisions to hosting setup programs from nightly builds.


Going forward each night the current svn trunk sources of FPC and Lazarus will be updated and converted into a Windows installer, Linux, and Macintosh  archives. The installer, setup scripts, application shortcuts, and website have now prominently inform users that they have installed or might be installing nightly build versions of FPC and Lazarus.

As before any changes get Lazarus makes are hosted in a diff file distributed with each install. This information is also mirrored on github.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Is there changes.diff kept up to date, regularly?

On the Linux version the patch has failed for me a number of times, so I had to get the source directly from a local Git mirror. Including the option to get the source from a local Git mirror will save a lot of bandwidth. If the boot strapping FPC is not changed, then it may be better to test for its presence and skip the download and extraction as well. There is no sign that it ever gets changed by the script once it is downloaded
--
Frank Church

=======================
http://devblog.brahmancreations.com

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

Anthony Walter-3
I try to keep on top of changes.patch, but if it's failing I may not notice right away. I'll validate the current version with changes.patch, update as needed, and post the result to this thread a little later today.

Just for everyone information, changes.patch makes the local Lazarus directory the default configuration folder if --primary_config_path isn't passed as a flag. It also reduces the size of a few tool windows and re-arranges labels on the about screen to accommodate the different splash background which has the words "Nightly Build" affixed. These are all minor changes.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

Anthony Walter-3
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:


And examining the commented out patch command at line:


I believe this fixes the problem. Let me know if you have any further questions.

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

vfclists .


On 13 March 2015 at 18:54, Anthony Walter <[hidden email]> 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:


And examining the commented out patch command at line:


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

=======================
http://devblog.brahmancreations.com

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Free Pascal and Lazarus Nightly Builds

vfclists .
In reply to this post by Anthony Walter-3


On 13 March 2015 at 18:54, Anthony Walter <[hidden email]> 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:


And examining the commented out patch command at line:


I believe this fixes the problem. Let me know if you have any further questions.


Bypassing the  patch commands enabled it to succeed.


The earlier success was on an x86_64  system and I am trying it now on a 32bit i686 system. The fpc-2.6.4.i386-linux.7z doesn't contain the ppc386 executable. It is actually a symlink to an executable in /home/delluser/fpctest/fpc-2.6.4/lib/fpc/2.6.4/ppc386. I replaced the whole package with an existing fpc 2.6.4 on my system before it was able to proceed. There are still some failures but I am looking into it.

--
Frank Church

=======================
http://devblog.brahmancreations.com

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal