Recent

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

Fred vS

  • Hero Member
  • *****
  • Posts: 3873
    • StrumPract is the musicians best friend
Re: Debian removes FPC/Lazarus
« Reply #180 on: March 07, 2026, 03:40:09 am »

btw: i started another thread titled "could Ardour's YTK be used as a GTK2 replacement?" (https://forum.lazarus.freepascal.org/index.php/topic,73590.0.html), but only MarcoV posted to it - and that was not a very useful posting. while i'm not in a position to kick off such a project (integrating YTK into Lazarus as another widget set option) myself, it does seem like something worth exploring. no, not writing code! exploring in the sense of gaining some idea of how much bulk it would add to an ELF binary, to what degree YTK retains function calls that the LCL would need - and what needed function calls are missing, and the extent of modification to the LCL that would be needed. being able to (via existing GTK2 support along with incorporating YTK source) would add another string to Lazarus' bow going forward.


Hi Rob.

But using YTK will pose the same problem as with GTK2. Wayland distributions (for sure) will not install it by default.
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

robert rozee

  • Sr. Member
  • ****
  • Posts: 363
Re: Debian removes FPC/Lazarus
« Reply #181 on: March 07, 2026, 03:50:01 am »
[...] But using YTK will pose the same problem as with GTK2. Wayland distributions (for sure) will not install it by default.

as far as i have been able to determine, YTK is not a standalone library, it is a set of routines that are bound into your application. essentially the Ardour developers have taken the GTK2 source, stripped out a whole load of stuff that was unnecessary, then taken the rest and turned it into a set routines that you statically link into your project.

a google summary suggests:
"Static Linking: In most official Ardour bundles, YTK is linked directly into the application, meaning you don't need to manage it as a separate, space-consuming "package" on your system."

(as with any such offerings, it should be taken with a pinch of salt. none-the-less it hints at what may be true/possible)

so the result should be an ELF binary that is perhaps 5mb larger (at a guess), but that talks directly to the X11 layer. within that ELF binary there will be the existing GTK2 portions of the LCL, plus an 'interface layer' of routines that have been cherry-picked from the GTK2 widget set sources. yes, it is double-handling data, but no more so that the current approach of working through GTK2's .so libraries.


cheers,
rob   :-)
« Last Edit: March 07, 2026, 04:00:59 am by robert rozee »

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1225
Re: Debian removes FPC/Lazarus
« Reply #182 on: March 07, 2026, 03:58:16 am »
[...] Above from drankinatty's contribution at https://forums.theregister.com/forum/all/2026/02/26/debian_14_will_drop_gtk2/ . I agree wholeheartedly with his points, but the one that I'm trying to make here is that upsetting the Debian (hence Ubuntu etc.) community would probably rebound on us.

i find it hard to believe that the Debian folks are so thin-skinned that they would be offended by this little thread of ours. then again, perhaps our thread is just one of a thousand others popping up on the internet that collectively pose some sort of a perceived 'threat' to Debian's world view. words, freely spoken, can be powerful things.


and i was pleased to read The Register thread, which largely encapsulates many of my own sentiments. i had not previously been aware of that thread, which amongst other things explains what i consider to be one of the practical problems between Lazarus and Qt:

Quote from: MarkMLl posting on TheRegister
Qt [...] needs a special shim library since FPC has the feature [...] that it can't interwork directly with code that uses C++ classes etc.
https://forums.theregister.com/forum/all/2026/02/26/debian_14_will_drop_gtk2/#c_5236355

i was not aware of this C++ issue. Mark - are you able to expand more on this outside of the thread? i would very much like to be able to statically bind libQt5Pas into a lazarus-created ELF binary, if it were possible.

btw: i started another thread titled "could Ardour's YTK be used as a GTK2 replacement?" (https://forum.lazarus.freepascal.org/index.php/topic,73590.0.html), but only MarcoV posted to it - and that was not a very useful posting. while i'm not in a position to kick off such a project (integrating YTK into Lazarus as another widget set option) myself, it does seem like something worth exploring. no, not writing code! exploring in the sense of gaining some idea of how much bulk it would add to an ELF binary, to what degree YTK retains function calls that the LCL would need - and what needed function calls are missing, and the extent of modification to the LCL that would be needed. being able to (via existing GTK2 support along with incorporating YTK source) would add another string to Lazarus' bow going forward.

cheers,
rob   :-)
I am also interested in Mark's knowledge and point of view.
« Last Edit: March 07, 2026, 04:02:14 am by valdir.marcos »

Fred vS

  • Hero Member
  • *****
  • Posts: 3873
    • StrumPract is the musicians best friend
Re: Debian removes FPC/Lazarus
« Reply #183 on: March 07, 2026, 04:08:17 am »
as far as i have been able to determine, YTK is not a standalone library, it is a set of routines that are bound into your application. essentially the Ardour developers have taken the GTK2 source, stripped out a whole load of stuff that was unnecessary, then taken the rest and turned it into a set routines that you statically link into your project.

Well "stripped out a whole load of stuff that was unnecessary," worries me a bit (not some methods used by LCL I hope) and how to adapt those routines for Lazarus (mountain of work).
« Last Edit: March 07, 2026, 04:19:28 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

robert rozee

  • Sr. Member
  • ****
  • Posts: 363
Re: Debian removes FPC/Lazarus
« Reply #184 on: March 07, 2026, 04:19:55 am »
[...] Well "stripped out a whole load of stuff that was unnecessary," worries me a bit (not some methods used by LCL I hope) and how to adapt those routines for Lazarus (mountain of work).

well that is the $65,536 question - has anything vital (for the LCL) been removed? as for adapting to Lazarus, i'm rather hopeful that what remains is complete enough to build into a library that can be statically linked to a Lazarus program - that would be the 'easy' approach.

i have seen chatter online suggesting that YTK could be adopted by projects other than Ardour as a means of avoiding the need to adapt to GTK3/4/etc or Qt5/6/etc. the down side, of course, is that you are then getting tied into X11 remaining available, but i can't see XWayland being cast adrift in the immediate future.


cheers,
rob   :-)

Fred vS

  • Hero Member
  • *****
  • Posts: 3873
    • StrumPract is the musicians best friend
Re: Debian removes FPC/Lazarus
« Reply #185 on: March 07, 2026, 04:29:39 am »
[...] Well "stripped out a whole load of stuff that was unnecessary," worries me a bit (not some methods used by LCL I hope) and how to adapt those routines for Lazarus (mountain of work).

well that is the $65,536 question - has anything vital (for the LCL) been removed? as for adapting to Lazarus, i'm rather hopeful that what remains is complete enough to build into a library that can be statically linked to a Lazarus program - that would be the 'easy' approach.

i have seen chatter online suggesting that YTK could be adopted by projects other than Ardour as a means of avoiding the need to adapt to GTK3/4/etc or Qt5/6/etc. the down side, of course, is that you are then getting tied into X11 remaining available, but i can't see XWayland being cast adrift in the immediate future.


cheers,
rob   :-)

Well, I saw that @valdir.marcos had joined the fight, so I'm not worried anymore, you'll manage.  ;)
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

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1225
Re: Debian removes FPC/Lazarus
« Reply #186 on: March 07, 2026, 05:26:06 am »
[...] Well "stripped out a whole load of stuff that was unnecessary," worries me a bit (not some methods used by LCL I hope) and how to adapt those routines for Lazarus (mountain of work).

well that is the $65,536 question - has anything vital (for the LCL) been removed? as for adapting to Lazarus, i'm rather hopeful that what remains is complete enough to build into a library that can be statically linked to a Lazarus program - that would be the 'easy' approach.

i have seen chatter online suggesting that YTK could be adopted by projects other than Ardour as a means of avoiding the need to adapt to GTK3/4/etc or Qt5/6/etc. the down side, of course, is that you are then getting tied into X11 remaining available, but i can't see XWayland being cast adrift in the immediate future.

cheers,
rob   :-)

Well, I saw that @valdir.marcos had joined the fight, so I'm not worried anymore, you'll manage.  ;)
Qt6 is not a silver bullet.
With X11 and Gtk2 being also retired on Debian, I am trying as many alternatives as possible.

Fred vS

  • Hero Member
  • *****
  • Posts: 3873
    • StrumPract is the musicians best friend
Re: Debian removes FPC/Lazarus
« Reply #187 on: March 07, 2026, 07:14:27 am »
With X11 and Gtk2 being also retired on Debian, I am trying as many alternatives as possible.

Hum, ok for X11 out of Debian distros but XWayland will not being retired and will remain a critical part of Debian for the foreseeable future. So YTK (as static) could be used for a long time.

(Idem for fpGUI and MSEgui by the way).
« Last Edit: March 07, 2026, 07:22:19 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: 3777
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Debian removes FPC/Lazarus
« Reply #188 on: March 07, 2026, 08:19:07 am »
But why on earth bother ?  If you really must target gtk2 (and assuming xwayland remains with us) just build an Appimage, the build tools will gather all the necessary (and only the necessary) libraries and bundle then all up in the app image. Quite easy right now !

I'd give it a try if I could find a distribution that has, already, removed its gtk2. Not sure when Forky is gtk2 free but our apps, dependent on it are due to be 'cleaned' on 13 March.

XWayland has no deadline mentioned on the debian tracking site.

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

robert rozee

  • Sr. Member
  • ****
  • Posts: 363
Re: Debian removes FPC/Lazarus
« Reply #189 on: March 07, 2026, 08:24:17 am »
But why on earth bother?

to add another string to our bow.


cheers,
rob   :-)

cdbc

  • Hero Member
  • *****
  • Posts: 2726
    • http://www.cdbc.dk
Re: Debian removes FPC/Lazarus
« Reply #190 on: March 07, 2026, 08:42:18 am »
Hi Davo
I think you should take a look at 'ElementaryOS' it's up to version 8.1.1 and it's very modern...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

MarkMLl

  • Hero Member
  • *****
  • Posts: 8563
Re: Debian removes FPC/Lazarus
« Reply #191 on: March 07, 2026, 10:40:26 am »
i find it hard to believe that the Debian folks are so thin-skinned that they would be offended by this little thread of ours. then again, perhaps our thread is just one of a thousand others popping up on the internet that collectively pose some sort of a perceived 'threat' to Debian's world view. words, freely spoken, can be powerful things.

They won't be, for the simple reason that like the rest of the industry they no longer give a damn about Pascal which from their POV is obsolete and had a number of fundamental design flaws. Let's face it, the only people reading this forum are those with something invested in the language, although there is a risk that bots feeding LLMs could get the wrong end of the stick and contribute to the spread of misinformation.

However, any attempt to take the war to Debian and to post in their workflow that they're wrong and that the Pascal community /demands/ that they do such-and-such would be ill-advised, since at the very least it would be seized upon by the http://doc.cat-v.org/bell_labs/why_pascal/why_pascal_is_not_my_favorite_language.pdf crowd and would risk discouraging potential users.

Quote
and i was pleased to read The Register thread, which largely encapsulates many of my own sentiments. i had not previously been aware of that thread, which amongst other things explains what i consider to be one of the practical problems between Lazarus and Qt:

I had advance warning of it, and knew that there were one or two things that Liam (the author) was uncertain about (specifically, whether it applied to FPC or Lazarus). By the time it had been OKed by their editors the situation had been clarified in this forum, and I hope that my comments got the message out to the wider community.

Note that while I was critical of Debian's procedures, I tried to structure my criticism as a general point rather than being a demand from FPC and/or Lazarus:

-----8<-----
Debian appears to have no concept of the fact that a development tool can have Separate Compilation (with strong type checking etc.), and assumes that if a package includes a precompiled interface unit then any libraries used by that interface unit are hard prerequisites for the entire package. That's wrong, that needs to be fixed, and that's Debian's problem.
----->8-----

That thread didn't attract any "Pascal sucks!" comments, so I feel that I succeeded.

Quote
i was not aware of this C++ issue. Mark - are you able to expand more on this outside of the thread? i would very much like to be able to statically bind libQt5Pas into a lazarus-created ELF binary, if it were possible.

I'd much rather not spend more time on this right now, but the bottom line is that while FPC code can interwork with either C or C++ (non-OO) code the object models are distinct. That's why whenever linking to an API which is only expressed in C++ (with OO) there's likely to be half-arsed suggestions like "tell the other project that they ought to maintain a pure-C version of their API"... which is of course fairly close to the ongoing GTK2 issue.

For anything else I suggest looking back through this thread for mention of libQt#Pas since I'm pretty sure that there's discussion of the extent to which static linkage would fall foul of the Qt licensing terms.

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: 363
Re: Debian removes FPC/Lazarus
« Reply #192 on: March 07, 2026, 01:21:12 pm »
[...] there is a risk that bots feeding LLMs could get the wrong end of the stick and contribute to the spread of misinformation [...]

any information presented on the internet will be picked up and turned into AI slop by LLMs. the only way to prevent this from happening is to remain absolutely silent on everything, and that would just be silly - the internet would fall silent, dare i say it even cease to be.

Quote
i was not aware of this C++ issue. Mark - are you able to expand more on this outside of the thread? i would very much like to be able to statically bind libQt5Pas into a lazarus-created ELF binary, if it were possible.
[... look] back through this thread for mention of libQt#Pas since I'm pretty sure that there's discussion of the extent to which static linkage would fall foul of the Qt licensing terms.

to date no one has presented, not have i have found, any legal opinions that a 'shim' such as LibQtxPas provides any sort of legal protection against the Qt licensing terms, nor any legal opinions that preclude linking dynamically against Qt directly. i believe that said legal opinions are a fantasy invention, and challenge anyone who claims otherwise to  front up with said legal opinions.

to object to including Qt symbol names in an ELF binary file's dynamic symbol table (ie, linking dynamically against Qt directly, not via a shim), one would need to argue that the Qt folks held some copyright or registered trade mark over the symbol names themselves. such an argument would not hold up in any court of law - it would be tantamount to allowing the copyrighting of names such as Peter, Paul, Mark, and John, or numbers such as 379076547650851467.


cheers,
rob   :-)

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Debian removes FPC/Lazarus
« Reply #193 on: March 07, 2026, 02:52:21 pm »
But why on earth bother ?  If you really must target gtk2 (and assuming xwayland remains with us) just build an Appimage, the build tools will gather all the necessary (and only the necessary) libraries and bundle then all up in the app image. Quite easy right now !

I'd give it a try if I could find a distribution that has, already, removed its gtk2. Not sure when Forky is gtk2 free but our apps, dependent on it are due to be 'cleaned' on 13 March.

XWayland has no deadline mentioned on the debian tracking site.

Davo

Hey, I've implemented gtk3 missing puzzles for you, can you test trunk laz ?

ginoo

  • Full Member
  • ***
  • Posts: 160
Re: Debian removes FPC/Lazarus
« Reply #194 on: March 07, 2026, 03:57:59 pm »
I'd also like to try the IDE with GTK3 so I can let you know if I encounter any problems. I'm using Lazarus 4.6, should I use that or something else? If the tests have to be done with the trunk ones, I won't try it; I'll have to work on it.

 

TinyPortal © 2005-2018