Recent

Author Topic: Lazarus 3.4 Win x64, zstream does not have TGZip(De)compressionStream declared  (Read 1391 times)

kzappa

  • Newbie
  • Posts: 2
Hello good people of lazarus-land!
i just fresh install Lazarus 3.4 for windows x64 and i found that zstream unit that comes along with Lazarus 3.4 installation didnt have TGZipcompressionStream and TGZipDecompressionStream declaration. I was looking at zstream.pp source code in the paszlib package from official fpc gitlab repo and found difference comparing to the zstream.pp in Lazarus 3.4 installation. The declaration of TGZipcompressionStream can be found at line 516 in this zstream.pp file:  https://gitlab.com/freepascal.org/fpc/source/-/blame/main/packages/paszlib/src/zstream.pp#L516

The zstream.pp from Lazarus 3.4 installation however didnt even reach 500 line. I noticed a contribution made by user Van Canneyt about 2 years ago by adding gzstream routines (https://gitlab.com/freepascal.org/fpc/source/-/commit/3827889e61939ab1fa387cf5679bf239fd0715fe thank you so much Van Canneyt!). but i guess this patch didnt make it into Lazarus 3.4 installation

dsiders

  • Hero Member
  • *****
  • Posts: 1238
Hello good people of lazarus-land!
i just fresh install Lazarus 3.4 for windows x64 and i found that zstream unit that comes along with Lazarus 3.4 installation didnt have TGZipcompressionStream and TGZipDecompressionStream declaration. I was looking at zstream.pp source code in the paszlib package from official fpc gitlab repo and found difference comparing to the zstream.pp in Lazarus 3.4 installation. The declaration of TGZipcompressionStream can be found at line 516 in this zstream.pp file:  https://gitlab.com/freepascal.org/fpc/source/-/blame/main/packages/paszlib/src/zstream.pp#L516

The zstream.pp from Lazarus 3.4 installation however didnt even reach 500 line. I noticed a contribution made by user Van Canneyt about 2 years ago by adding gzstream routines (https://gitlab.com/freepascal.org/fpc/source/-/commit/3827889e61939ab1fa387cf5679bf239fd0715fe thank you so much Van Canneyt!). but i guess this patch didnt make it into Lazarus 3.4 installation

Lazarus releases ship with the latest stable FPC compiler - which is FPC 3.2.2 for Lazarus 3.4. The commit you quote has not been included in an FPC release, because there hasn't been an FPC release since the change was made.

You can always download and install the FPC trunk compiler if you really need it.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

kzappa

  • Newbie
  • Posts: 2
thankyou for the explanation sir. i think ill just have to wait for the changes made into the next release   :)

Thaddy

  • Hero Member
  • *****
  • Posts: 15638
  • Censorship about opinions does not belong here.
If it was 2 years ago, MvC committed that, there is a chance it is in fixes, so first examine the fixes branch: then it will be in the next release which is right now officially frozen, awaiting release and this is not a bug-fix but a feature. So it might stay in trunk for the time being.
« Last Edit: July 09, 2024, 08:54:41 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4519
  • I like bugs.
You can also copy the gzstream sources from FPC trunk to your project. Very likely they compile with the current release FPC, too.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

paweld

  • Hero Member
  • *****
  • Posts: 1211
This change is in the 3.2-fixes branch, so as @Thaddy wrote, it will be in the upcoming release: 3.2.4
Best regards / Pozdrawiam
paweld

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4519
  • I like bugs.
This change is in the 3.2-fixes branch, so as @Thaddy wrote, it will be in the upcoming release: 3.2.4
That is surprising. Adding a library is a new feature, not a bug fix. The FPC project mixes the concepts of a bug fix dot-release and a major release.
It is OK to have many years between major releases but bug fix releases should come often and should contain only pure bug fixes.
This mess-up may explain why the dot-release is taking so long (over 3 years).
Not good...
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

440bx

  • Hero Member
  • *****
  • Posts: 4524
It is OK to have many years between major releases but bug fix releases should come often and should contain only pure bug fixes.
This mess-up may explain why the dot-release is taking so long (over 3 years).
Not good...
I just wanted to voice my agreement with the above.

I don't understand the reason to hold bug fixes in a non-official release.

I'd support something like having a bug fix release every six months or so.  At least that would show the project is alive and ever progressing.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018