Recent

Author Topic: Debian removes FPC/Lazarus  (Read 44737 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8548
Re: Debian removes FPC/Lazarus
« Reply #150 on: March 03, 2026, 12:36:40 pm »
and this, they (Debian at least) seem to be doing as a means of forcing their own ideology upon everyone else. forced ideologies are a really good way to persuade me to walk away from a project. the last release of GTK2.x (2.24.33, on 21st December 2020) is only 5 years old, which is extremely young when compared to, for instance, win32, that has been around for over a quarter of century and is still supported in the latest release of Windows.

As I've said elsewhere, I refuse to be an apologist for anybody.

GTK (and Gnome in general) has a poor reputation with regards to the stability of its published API, particularly when compared with the stability of the Windows API.

As such, Debian removing a library which has had no substantial work done on it for at least five years, during which time Linux has moved on with systemd, Wayland, displays with rapidly increasing pixel density and colour resolution, and the pressure of making sure that applications are accessible to the disadvantaged, makes life far easier for its community of package maintainers.

There might possibly have been an alternative course of saying "this should work but we don't recommend it": that would be viable if the only compatibility issues related to the application side of the widget set, but would not be viable if the GTK2 package maintainers found that it would no longer work with the current kernel (including device driver modules) etc. and could get no help from the GTK developers.

So I don't think we can fairly criticise Debian for removing GTK2 on the grounds of no longer being maintainable, even if we can criticise them for blocking FPC on the grounds that it can (but doesn't have to) call GTK2 facilities.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

robert rozee

  • Sr. Member
  • ****
  • Posts: 338
Re: Debian removes FPC/Lazarus
« Reply #151 on: March 03, 2026, 12:50:51 pm »
[...] if the GTK2 package maintainers found that it would no longer work with the current kernel (including device driver modules) etc. and could get no help from the GTK developers [...]

is it the case that GTK2 has compatibility issues with the current Linux kernel? or upcoming kernels? or with any of the existing X11/etc libraries?

the only issue i've heard of involving GTK2 is that Wayland has issues with it - and that sounds like a problem within Wayland, not GTK2    ;)


btw: do we have any timeline for when GTK3 will be supported in a release of the Lazarus IDE on Sourceforge? probably a question for zeljko, but i don't want to put any pressure on him!


cheers,
rob   :-)

« Last Edit: March 03, 2026, 12:54:43 pm by robert rozee »

Thausand

  • Sr. Member
  • ****
  • Posts: 478
Re: Debian removes FPC/Lazarus
« Reply #152 on: March 04, 2026, 04:33:17 am »
I not know if mention in thread (it is write about also FPC/Lazarus): https://www.theregister.com/2026/02/26/debian_14_will_drop_gtk2/

dbannon

  • Hero Member
  • *****
  • Posts: 3725
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian removes FPC/Lazarus
« Reply #153 on: March 04, 2026, 09:11:28 am »
btw: do we have any timeline for when GTK3 will be supported in a release of the Lazarus IDE on Sourceforge? probably a question for zeljko, but i don't want to put any pressure on him!
https://forum.lazarus.freepascal.org/index.php/topic,73583.msg577544.html#msg577544

But that will clearly depend on community support. Thats how open souce works.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1870
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Debian removes FPC/Lazarus
« Reply #154 on: March 04, 2026, 11:12:34 am »
[...] if the GTK2 package maintainers found that it would no longer work with the current kernel (including device driver modules) etc. and could get no help from the GTK developers [...]

is it the case that GTK2 has compatibility issues with the current Linux kernel? or upcoming kernels? or with any of the existing X11/etc libraries?

the only issue i've heard of involving GTK2 is that Wayland has issues with it - and that sounds like a problem within Wayland, not GTK2    ;)


btw: do we have any timeline for when GTK3 will be supported in a release of the Lazarus IDE on Sourceforge? probably a question for zeljko, but i don't want to put any pressure on him!


cheers,
rob   :-)

My plan is that Lazarus 5.0 will be gtk3 based on linux (so gtk3  = default). When ? Don't ask me that :)

PascalDragon

  • Hero Member
  • *****
  • Posts: 6349
  • Compiler Developer
Re: Debian removes FPC/Lazarus
« Reply #155 on: March 05, 2026, 09:55:14 pm »
the only issue i've heard of involving GTK2 is that Wayland has issues with it - and that sounds like a problem within Wayland, not GTK2    ;)

GTK2 doesn't have issues with Wayland, GTK2 doesn't support Wayland. It's a different display backend to X11 and thus needs completely new code to support it. So this is not a problem of Wayland, but a problem of GTK2 simply no longer being actively developed.

robert rozee

  • Sr. Member
  • ****
  • Posts: 338
Re: Debian removes FPC/Lazarus
« Reply #156 on: March 05, 2026, 11:56:56 pm »
the only issue i've heard of involving GTK2 is that Wayland has issues with it - and that sounds like a problem within Wayland, not GTK2    ;)

GTK2 doesn't have issues with Wayland, GTK2 doesn't support Wayland. It's a different display backend to X11 and thus needs completely new code to support it. So this is not a problem of Wayland, but a problem of GTK2 simply no longer being actively developed.

i disagree with your view. GTK2 predated Wayland by many years, therefore it is up to Wayland to change, not GTK2.

was Wayland not designed with some level of compatibility, so that it would operate with other existing software? you seem to be suggesting that every time a 'chunk' of Linux is replaced it is ok for that to break every other chunk that interfaces with it. that is insane!!

cheers,
rob   :-)

Fred vS

  • Hero Member
  • *****
  • Posts: 3812
    • StrumPract is the musicians best friend
Re: Debian removes FPC/Lazarus
« Reply #157 on: March 06, 2026, 12:12:27 am »
GTK2 predated Wayland by many years, therefore it is up to Wayland to change, not GTK2.

Wayland will not change, and to ensure compatibility with X11 (essential), they offer XWayland a X11 layer.

XWayland can handle GTK2 (exclusively compatible with X11), including installing the GTK2 package.

However, the problem (if I understand correctly) is that the latest Wayland distributions refuse to include GTK2 in their package list, even though they include XWayland, which is capable of handling it.

How long Wayland distributions will continue to include XWayland is another story.
« Last Edit: March 06, 2026, 12:17:41 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

dbannon

  • Hero Member
  • *****
  • Posts: 3725
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian removes FPC/Lazarus
« Reply #158 on: March 06, 2026, 01:44:33 am »
However, the problem (if I understand correctly) is that the latest Wayland distributions refuse to include GTK2 in their package list, even though they include XWayland, which is capable of handling it.
Yes, the distros want to drop gtk2 for space and maintenance reasons. So, firstly, drop it from default install, probably still be in repository. So, an app that lists t as a dependency will pull it down. But sooner or later, drop from repo.
Quote
How long Wayland distributions will continue to include XWayland is another story.
In our particular case, both Qt5 and Qt6 work much better with XWayland (via xcb).
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

robert rozee

  • Sr. Member
  • ****
  • Posts: 338
Re: Debian removes FPC/Lazarus
« Reply #159 on: March 06, 2026, 04:28:25 am »
presumably XWayland is a project that is 'tied in' with Wayland, hence XWayland can just be considered as the portion of Wayland that is responsible for communicating with GTK2 et al.

being that XWayland and Wayland are just different parts of the same thing, it seems to say that Wayland is in designed to interface with GTK2 et al, albeit that the design is imperfect - i'm assuming that the reports we hear of things not working right relate to the GTK2<->XWayland<->Wayland connections.

it sounds like PascalDragon saying "GTK2 doesn't support Wayland" is entirely false information; GTK2 is perfectly capable of talking to XWayland, which in turn is perfectly capable of talking to Wayland - apart from XWayland not doing a 100% perfect job.

as for PascalDragon's claim that everything is "a problem of GTK2 simply no longer being actively developed" is, i am afraid to say, somewhat childish - and an insult against the GTK developers. the developers of GTK worked for years on GTK2 to bring it to a point of being a 'production ready' project. GTK2 is today a complete, working product, it has been this for around 5 years. Wayland/XWayland is a beta product that lacks the ability (at the moment) of slotting in as a substitute for X11.


cheers,
rob   :-(

dbannon

  • Hero Member
  • *****
  • Posts: 3725
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian removes FPC/Lazarus
« Reply #160 on: March 06, 2026, 07:30:20 am »
presumably XWayland is a project that is 'tied in' with Wayland, hence XWayland can just be considered as the portion of Wayland that is responsible for communicating with GTK2 et al.
More correct to say that XWayland implements an X11 server that can, in turn, talk to Wayland on behalf of its clients. 

Quote
being that XWayland and Wayland are just different parts of the same thing, .... - i'm assuming that the reports we hear of things not working right relate to the GTK2<->XWayland<->Wayland connections.

XWayland is seen as a temporary measure while people shift to a (hopefully complete) Wayland. Its built from XOrg and maintained by the Wayland team. The people who pay the Wayland team (for the XWayland work) will almost certainly not be willing to do so indefinitely. If you would like to help with that task, or pay the people currently doing it, please get in touch with them, its certainly not our business here.

Quote
it sounds like PascalDragon saying "GTK2 doesn't support Wayland" is entirely false
No, its entirely true. Wayland sits there waiting for a client that talks Wayland-ese to contact it. It might be a gtk3, Qt5, Qt6 app OR, XWayland making out its a Wayland speaking app. Your argument is like me claiming to speak Chinese because I have a friend who does and he can translate for me.

Quote
as for PascalDragon's claim that everything is "a problem of GTK2 simply no longer being actively developed" is, i am afraid to say, somewhat childish - and an insult against the GTK developers. the developers of GTK worked for years on GTK2 to bring it to a point of being a 'production ready' project. GTK2 is today a complete, working product, it has been this for around 5 years. Wayland/XWayland is a beta product that lacks the ability (at the moment) of slotting in as a substitute for X11.

While I agree about both the readiness and the appropriateness of Wayland, its not something I, you and anyone else here can do anything about. Very big money drives the development of Linux these days, not eager volunteers. And the providers of that money want a more secure and more maintainable replacement for Xorg. Personally, I will regret the passing of XOrg but I am not going to rail against it, especially on a Forum that has absolutely no say in the decision.

Gtk2 is no longer being developed because the developers drew a line across it and said that further development (including an interface to Wayland) will be called Gtk3. Then they did the same with Gtk3 and made Gtk4.

However, gtk2 is open source, its quite possible to fork it and continue its development. Someone here mentioned a project that was so closely tied to Gtk2 that they have done just that. Lazarus could join it but it would be, IMHO  a very wasteful exercise. Gtk2 is past its use by date. Its flogging a dead horse. It has ceased to be. It is a dead widget set.

Please stop this conspiracy theory agenda. No one is lying to you, what on earth would we have to gain if we were ?

Davo

EDIT : Should I lock this topic ?   I was hoping to use it to report on FPC/Lazarus's journey through Debian's process but it has wondered off track a bit. 11 pages ??

D
« Last Edit: March 06, 2026, 07:38:12 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

MarkMLl

  • Hero Member
  • *****
  • Posts: 8548
Re: Debian removes FPC/Lazarus
« Reply #161 on: March 06, 2026, 08:28:12 am »
Gtk2 is no longer being developed because the developers drew a line across it and said that further development (including an interface to Wayland) will be called Gtk3. Then they did the same with Gtk3 and made Gtk4.

That is the important thing. And while a certain amount of "baying at the Moon" is OK in private, if this spills over into public criticism of Debian or of any of the foundation projects it will be to the detriment of this community: Pascal's credibility as an ongoing language is sufficiently tenuous that we can't afford that.

Robert: with respect, I'm talking to you.

I feel that apart from that this discussion has probably run its course and locking it would be justified.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

robert rozee

  • Sr. Member
  • ****
  • Posts: 338
Re: Debian removes FPC/Lazarus
« Reply #162 on: March 06, 2026, 01:56:56 pm »
    [...]  And the providers of that money want a more secure and more maintainable replacement for Xorg. Personally, I will regret the passing of XOrg but I am not going to rail against it, especially on a Forum that has absolutely no say in the decision. [...] Gtk2 is past its use by date. Its flogging a dead horse. It has ceased to be. It is a dead widget set.

    i have yet to hear any compelling argument as to why Xorg (X11) or GTK2 are no longer fit for purpose. i've certainly heard many nebulous claims such as 'it is insecure', 'it is old', 'no one uses it any more', but i have not heard any specific examples. all i've heard is what is essentially 'advertising hype', the sort of stuff that makes for good advertising content designed to capture customers. or youtube videos. or AI slop.

    can anyone provide examples where:
    • Xorg (X11) has been the cause of a security failure due to defects in the Xorg code or design?
    • GTK2 has been the cause of a security failure due to defects in the GTK2 code or design?
    for both Xorg (X11) and GTK2, i have heard complaints that keeping them is consuming disk space. but then today disk space is incredibly cheap compared to just 2 or 3 few years back - 32gb of flash memory costs less than $5, and the binary footprint of both projects together would fit into a minuscule corner of that 32gb. i'd estimate the actual hardware cost of keeping Xorg (X11) and GTK2 on an individual linux machine would be no more than a few cents.

    i've also heard complaints that Xorg (X11) and GTK2 are not as fast as the proposed replacements. but again, computrons are so incredibly cheap these days that speed of code execution is irrelevant in any but a tiny fraction of cases. the same holds for RAM usage - RAM is cheap as chips, and will continue to get cheaper once the AI boom has done its thing.

    and as for (non-security) bugs within the code: sure, GTK2 has some things that do not work correctly, but these things are well understood since the code has been (essentially) frozen for the past few years. those who write code that interfaces with GTK2 (i'm taking here about our solo UI programmer, zeljko) has done a sterling job in working around those things in GTK2 that are 'less-than-perfect'. it is a fact that all software has bugs; we document them and provide workarounds.


    i feel we need replacements for Xorg (X11) and GTK2 as much as we need a new design of fork to enable us to eat faster and more efficiently. or a better design of paperclip, or any number of 'new things' that are no better than the 'old things' we already have.


    [...] Please stop this conspiracy theory agenda. No one is lying to you, what on earth would we have to gain if we were? [...]

    some folks are picking up on the 'advertising hype' and re-broadcasting it as "fact". it is not a conspiracy, it is just people doing what people do - they hear a well dressed-up opinion, and innocently dress it up as 'fact'. it is the same sort of perfectly innocent gossip that used to get witches burnt at the stake. the one thing that irks me most, is when intelligent folks start accepting things as "fact" when there is no actual evidence to back it up. as i said above, i've seen no compelling arguments for replacing Xorg (X11) or for removing GTK2 from distros; what i have seen is hyperbole being accepted by folks who should know better.


    [...] Should I lock this topic? [...]

    i notice there are around 700 threads on this section of the forums (Lazarus » Forum » Programming » Operating Systems » Linux), and that this topic has received 43422 views. it is ranking at number 3 on the most viewed list, which to me seems pretty impressive. forum members are interested in the discussion, and while i agree that most everything that there is to say has already been said, i feel that 'locking' the topic would cast a shadow over the integrity of freepascal.org as an open community.


    cheers,
    rob.

    MarkMLl

    • Hero Member
    • *****
    • Posts: 8548
    Re: Debian removes FPC/Lazarus
    « Reply #163 on: March 06, 2026, 03:10:59 pm »
    i notice there are around 700 threads on this section of the forums (Lazarus » Forum » Programming » Operating Systems » Linux), and that this topic has received 43422 views. it is ranking at number 3 on the most viewed list, which to me seems pretty impressive. forum members are interested in the discussion, [...]

    No, forum members are interested to know what Debian's doing and the rest of the views are from bots.

    Whatever we think about it the migration to Wayland is a "done deal", and shooting ones mouth off in public about that will not be to the advantage of this community.

    Me, I've got Debian 13 on some systems but am not likely to go beyond that /because/ of the Wayland and GTK2 issue; if I live long enough I'll look at something like Arch.

    The discussion at El Reg https://forums.theregister.com/forum/all/2026/02/26/debian_14_will_drop_gtk2/ has a very interesting recent posting from "drankinatty", I won't quote it in full for copyright reasons but

    Quote
    This is the correct way to look at the issue. Gtk+2 was the last Gtk before they went off chasing CSS themes, that in the end made a majority of the interface look like vanilla milk-toast. Gtk+2 is complete. I like that view. It was an excellent toolkit when it was finished, and the code hasn't changed. The issue for "complete" packages is simply one of "does it still build?", and if not, "is it a new compiler option default change?" or similar that just needs to be updated in the build files? (most are, few are actual API/ABI breaks) ...

    But the bottom line is still that we are in no real position to fight a Debian policy decision.

    MarkMLl
    MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
    Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
    Pet hate: people who boast about the size and sophistication of their computer.
    GitHub repositories: https://github.com/MarkMLl?tab=repositories

    marcov

    • Administrator
    • Hero Member
    • *
    • Posts: 12706
    • FPC developer.
    Re: Debian removes FPC/Lazarus
    « Reply #164 on: March 06, 2026, 03:13:55 pm »
    [...]  And the providers of that money want a more secure and more maintainable replacement for Xorg. Personally, I will regret the passing of XOrg but I am not going to rail against it, especially on a Forum that has absolutely no say in the decision. [...] Gtk2 is past its use by date. Its flogging a dead horse. It has ceased to be. It is a dead widget set.

    i have yet to hear any compelling argument as to why Xorg (X11) or GTK2 are no longer fit for purpose.

    How about sitting through several lectures at Fosdem in the Xorg/X11 trajectory and hear its developers describe the protocol as a train wreck loaded with legacy technical debt. That includes two keynotes by Keith Packard.

    Back then Wayland/Weston was still in its early stages, but back then Mir was really considered as the most likely next display server architecture.
    « Last Edit: March 06, 2026, 04:19:53 pm by marcov »

     

    TinyPortal © 2005-2018