Recent

Author Topic: Extended LazUpdater: cross-platform install of SVN/Git FPC/Lazarus  (Read 5501 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Hi all,

I've extended LazUpdater.
This program allows you to download and compile a subversion or git version of FreePascal and Lazarus in an easy way, without fiddling with batch files.

On Windows: it's meant to be able to do this without existing FPC compiler, binutils (make.exe etc), svn client or unzip program. If you do have a compiler installed, you can specify that LazUpdater uses that.
The "bare metal" install (without unzip,svn,compiler) on Windows needs to be tested further.

On Linux/OSX: this version needs to be tested.

I'm not the original author of the program; I've based my version on the latest published version of LazUpdater and submitted my version as a feature request.
So you can download it from:
http://forge.lazarusforum.de/issues/118
(See the latest post for my most recent version)

If the original author doesn't respond to this feature request, it might be a good idea to include it in Lazarus CCR

I'd appreciate test results, improvement requests and other feedback.

Thanks,
BigChimp
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Extended LazUpdater: cross-platform install of SVN/Git FPC/Lazarus
« Reply #1 on: August 05, 2011, 05:17:59 pm »
Thanks to people on the mailing list for bug reports. I've updated the tool so it compiles and runs on Linux (Lazarus 0.9.30 and probably higher)...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Extended LazUpdater: cross-platform install of SVN/Git FPC/Lazarus
« Reply #2 on: September 03, 2011, 12:01:49 pm »
I've been improving LazUpdater since my lasts posts.

Because I didn't get any reaction from the original author, I uploaded it to my mercurial repository:
https://bitbucket.org/reiniero/lazupdater_baremetal

I use it myself next to a snapshot Lazarus install.

Lazupdater now also supports git downloads instead of svn. For that you'll need a git client, e.g. msysgit, first. Please see the Lazarus wiki page on git for more details.

My version of LazUpdater is meant to work even without SVN or GIT client, but there are still some niggling problems with that mode... Please feel free to test and report issues though on the repository's bugtracker.

Procedure:
Run LazUpdater, set it to download from SVN or GIT and indicate your GIT/SVN executable location.
Indicate you want to update/make both FPC and Lazarus (I always run the force options) and run.

It should checkout/update FPC from SVN, compile FPC. Then accept the request to change the compiler used in Lazupdater to the newly compiled FPC compiler.
IIRC, it will also generate fpc.cfg correctly.
Lazupdater will checkout/update Lazarus from SVN and compile with the compiler that was set.

You can use this to have multiple Lazarus/FPC installs on your system, but remember to use a shortcut with --primary-config-path (IIRC) to differentiate the settings.

It compiles on Linux, but probably not all paths etc are correct.

Some improvements to be done:
1. Test bare metal mode on Windows without any FPC/Lazarus/SVN/GIT.
2. On Linux+OSX: let the program check for make (other needed bins?), fix URLs, program paths, test.
3. Strip out old fpc.cfg boilerplate text as I'm using FPC's fpcmkcfg.exe anyway
4. Get in touch with original author and try to merge changes.
5. Perhaps get in touch with FPC/Lazarus devs, and submit for inclusion as a Lazarus tool, or include as a download on the Lazarus site. Will possibly need to change license from GPL to the FPC modified LGPL??? This will enable easier download of updated versions by developers not familiar with or to lazy for FPC/Laz build processes.

Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018