Recent

Author Topic: How to install a patch - lazReport  (Read 545 times)

Int3g3r

  • New Member
  • *
  • Posts: 27
How to install a patch - lazReport
« on: May 22, 2025, 04:58:24 pm »
Hello

I would like to install the following patch for LazReport:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40447

Can someone explain how I can install the patch locally?

I used fpcupdeluxe for the installation if that is relevant.
Lazarus 3.6 - Stable

Greetings Int3g3r

af0815

  • Hero Member
  • *****
  • Posts: 1392
Re: How to install a patch - lazReport
« Reply #1 on: May 22, 2025, 05:24:50 pm »
In the actual stable Lazarus V4.x the patch is applied.

It is not if the patch is working for a oldstable 3.6. Normal you put the patch in the basedir of lazarus and insert in fpcupdeluxe in setup+ the patch for Lazarus. after this, disable the fetching from repository too and let fpcupdeluxe build Lazarus. If you are in Luck the patch is working. Maybe you have no look and a not working Lazarus. Or you deal with git direct and apply the patch direct und make a clen recompile of Lazarus.

I think make new fresh install with Lazarus 4.0 side by side, test it and be happy. (the better soloution)
« Last Edit: May 22, 2025, 05:26:49 pm by af0815 »
regards
Andreas

Int3g3r

  • New Member
  • *
  • Posts: 27
Re: How to install a patch - lazReport
« Reply #2 on: May 23, 2025, 08:14:35 am »
In the actual stable Lazarus V4.x the patch is applied.

Now I am confused.
If I want the “latest stable” version should I install “trunk”?
When I go to https://www.lazarus-ide.org/ and look at the latest version, 4.0 is listed.
So is the “stable” version in fpcupdeluxe not the right one?

Regards Int3g3r

WooBean

  • Sr. Member
  • ****
  • Posts: 290
Re: How to install a patch - lazReport
« Reply #3 on: May 23, 2025, 08:35:14 am »
In the actual stable Lazarus V4.x the patch is applied.

Now I am confused.
If I want the “latest stable” version should I install “trunk”?
When I go to https://www.lazarus-ide.org/ and look at the latest version, 4.0 is listed.
So is the “stable” version in fpcupdeluxe not the right one?

Regards Int3g3r

There is no short and sweet answer.

Start looking from Lazarus repository: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main then learn how to create a local repository and use the Git program.

It will take time.
Platforms: Win7/64, Linux Mint 22.1 Xia

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: How to install a patch - lazReport
« Reply #4 on: May 23, 2025, 10:53:20 am »
Now I am confused.
Don't worry, we could tell  :)

You are not that far off though. It is just that some program is not entirely telling the truth or was assumed to have support for a particular version (which it hasn't).

Quote
If I want the “latest stable” version should I install “trunk”?
No. Trunk (aka main is unstable). Stable is (latest) released version.

Quote
When I go to https://www.lazarus-ide.org/ and look at the latest version, 4.0 is listed.
Correct. Lazarus 4.0 is the latest (stable) release.

Quote
So is the “stable” version in fpcupdeluxe not the right one?
Correct again.

FPCUPDeluxe was not updated after the release of Lazarus 4.0 and by default should actually install Lazarus 3.8 as (latest) stable. So while it tells stable it means latest stable as was present on release of FPCUpDeluxe version that is used.

Two possible solutions in your particular situation (that is if you want to stick with a stand-alone installation (which is the smart option btw) and not use a standard install method(s)):
1. fiddle with FPCUPDeluxe to actually install Lazarus 4.0 instead of stable.
2. build Lazarus from source (as more or less suggested by WooBean

1. means pressing startup+ in FPCUPDeluxe and adding the tag "lazarus_4_0" (without quotes), selecting trunk as installation and only after those changes press the install button from main window.
2. means checking out Lazarus 4.0 sources with git (or download them from gitlab) and follow instruction to build Lazarus manually (see also wiki). Unfortunately you did not mention the platform so cannot link to specific instructions. Gist is listed here for Linux (same instructions more or less apply for other OS')
Today is tomorrow's yesterday.

 

TinyPortal © 2005-2018