[Pkg-pascal-devel] Going to remove dependency of FPC on GTK2

David Bannon dbannon at internode.on.net
Fri Feb 13 12:07:41 GMT 2026


Abou, thanks heaps for what you are doing here but I am afraid it may 
not make the problem go away.

By changing the dependency of the [fpc]/packages/gtk2 on gtk2, yes, its 
acceptable to Debian.

However, it will not, now, build Lazarus using (eg) Qt6 because the 
fp-unit-gtk2 is no longer a dependency of fpc.. The other widget sets 
make use of cairocanvas (and pango, pangocairo) and they depend on FPC 
units that live (for what ever reason) in that same packages/gtk2 
directory. They are not gtk2 packages and don't themselves depend on 
gtk2, are widely used elsewhere.

I have just tried it in an unstable box, installed fpc, libqt6pas6 and 
then downloaded the source for Lazarus 4.4. Run the command

$> make bigide LCL_PLATFORM=qt6 <enter>

and after most of the build, I get this -

.....

/usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -dLCL -dLCLqt6 
-Fu. -Fu../../packager/units/x86_64-linux 
-Fu../lazutils/lib/x86_64-linux -Fu../freetype/lib/x86_64-linux 
-Fu../../lcl/units/x86_64-linux -Fu../../lcl/units/x86_64-linux/qt6 -FE. 
-FUlib/x86_64-linux/qt6 -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/15 -dx86_64 
cairocanvas_pkg.pas
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2+dfsg-47 [2026/02/12] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling cairocanvas_pkg.pas
(3104) Compiling cairocanvasall.pas
(3104) Compiling cairocanvas.pas
/home/dbannon/bin/Lazarus/lazarus_4_4/components/cairocanvas/cairocanvas.pas(36,3) 
Fatal: (10022) Can't find unit Cairo used by CairoCanvas
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:3520: cairocanvas_pkg.ppu] Error 1
make[2]: Leaving directory 
'/home/dbannon/bin/Lazarus/lazarus_4_4/components/cairocanvas'
make[1]: *** [Makefile:1956: bigide] Error 2
make[1]: Leaving directory 
'/home/dbannon/bin/Lazarus/lazarus_4_4/components'
make: *** [Makefile:3167: bigidecomponents] Error 2

IMHO, at least the non-gtk2 specific files from that directory need to 
be returned to the RTL unit and built when it is is built.

I suspect it would build without the "bigide" clause but most end user 
codes will require the missing units, sooner or later. Please, can we 
have those important files back in the RTL unit ? PLEASE ??

Davo

ps : I am afraid I will be away for a few days, may be unable to connect ...


On 13/2/26 05:11, Matija Nalis wrote:
> On Sat, 24 Jan 2026 18:35:18 +0100 Abou Al Montacir<abou.almontacir at sfr.fr> wrote:
>> I'm going to remove any dependency of fp-units-gtk2* into gtk2 libs.
>> This will imply that users will need to install the libs manually.
>>
>> This will be only a first step.
> That would be great Abou!
>
> Note that according tohttps://tracker.debian.org/pkg/fpc the whole
> of fpc is "marked for autoremoval from testing on Fri 13 Mar 2026"
> because of this "Severity: serious" bug.
>
> As I maintain a package "ironseed" which build-depends on "fpc", it
> would be great if autoremoval of fpc could be avoided in time.
>
> Thanks for your efforts !
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20260213/4f918525/attachment.htm>


More information about the Pkg-pascal-devel mailing list