Debian Patches

Status for lazarus/4.8+dfsg-2

Patch Description Author Forwarded Bugs Origin Last update
default_config.diff Fix system wide configuration file to fit Debian paths This patch fixes system wide default Lazarus configuration. It adds the needed
configuration to adapt Lazarus to Debian and makes it running out of the box
without need of any user's pre-configuration.
not-needed Debian 2023-05-20
lcl-with-multple-widget-sets.diff Enable building all linux supported LCL widget sets This patch enable building all linux supported LCL widget sets.

===================================================================
not-needed Debian 2017-05-22
drop_carbon_from_Makefiles.patch With carbon stripped from the source tree, we need to strip the carbon dir from the clean targets

===================================================================
Paul Gevers <elbrus@debian.org> not-needed Debian 2023-12-20
Fixed-compilation-of-testsuite-on-armel.patch Fixed compilation of test suite on armel. The crash was due to a source file disabling FPU emulation.
However, on armel, FPU emulation is needed as no hardware FPU
is present.
.
This patch removed the compiler flag that disabled the FPU emulation.
This should not harm, as on other targets, the compiler will by default use
the hardware FPU.

diff --git a/components/lazreport/source/addons/addfunction/frFuncNum.pas b/components/lazreport/source/addons/addfunction/frFuncNum.pas
index 769a340d..75e9c037 100644
Abou Al Montacir <abou.almontacir@sfr.fr> yes upstream Debian 2023-04-01
Fixed-lcl-docs-installation-path.patch Fixed LCL docs installation path. Path where LCL docs were installation was wrong.
It contains an extra lcl level which needs to be removed.

diff --git a/docs/html/Makefile b/docs/html/Makefile
index 05875b79..8f28ae7e 100644
Abou Al Montacir <abou.almontacir@sfr.fr> not-needed Debian 2023-12-22
Replaced-instantfpc-by-ifpc.patch Replaced instantfpc by ifpc. Debian renames instantfpc into ifpc, so we need to patch Lazarus sources.

diff --git a/components/instantfpc/instantfpcregisterlaz.pas b/components/instantfpc/instantfpcregisterlaz.pas
index 8d6962a0..91284b07 100644
Abou Al Montacir <abou.almontacir@sfr.fr> not-needed Debian 2024-01-01
Fixed-files-encoding.patch Fixed files encoding Some files are distributed by upstream in national encoding. This patch
converts them to unicode.
.
The conversion was done using the following commands:
recode latin1..UTF-8 components/dbexport/demo/simple/firstnames.txt
recode latin1..UTF-8 components/dbexport/demo/simple/lastnames.txt
recode latin1..UTF-8 components/dbexport/demo/stdexports/firstnames.txt
recode latin1..UTF-8 components/dbexport/demo/stdexports/lastnames.txt
recode Windows-1252..UTF-8 components/freetype/FTL.TXT
recode KOI8-R..UTF-8 components/lazreport/source/addons/addfunction/doc/HISTORY.RUS
recode KOI8-R..UTF-8 components/lazreport/source/addons/addfunction/doc/README.RUS
recode latin1..UTF-8 components/lazreport/source/barcode.pas
recode latin1..UTF-8 components/lazreport/source/lr_rrect.pas
recode latin1..UTF-8 components/lclextensions/delphicompat.pas
recode latin1..UTF-8 components/lclextensions/oleutils.pas
recode latin1..UTF-8 components/onlinepackagemanager/opkman_contributors.txt
recode latin1..UTF-8 components/virtualtreeview/CHANGES.txt
recode latin1..UTF-8 components/virtualtreeview/laz.vtaccessibilityfactory.pas
recode latin1..UTF-8 components/virtualtreeview/units/win32/laz.virtualpanningwindow.pas
recode latin1..UTF-8 examples/virtualtreeview/vst_advanced/GeneralAbilitiesDemo.pas
recode latin1..UTF-8 lcl/interfaces/qt/qtwsdialogs.pp
recode latin1..UTF-8 lcl/interfaces/win32/win32winapi.inc
recode latin1..UTF-8 lcl/interfaces/wince/wincewsforms.pp

diff --git a/components/dbexport/demo/simple/firstnames.txt b/components/dbexport/demo/simple/firstnames.txt
index 2097f9bc..bee730b4 100644
Abou Al Montacir <abou.almontacir@sfr.fr> yes upstream 2025-01-30
remove-build-time.patch make build reproducible by not logging the build time .
In Debian, fpc is patched to honor the SOURCE_DATE_EPOCH for %date%, but not
yet for %time%. Until that happens, just strip out the build time, it's
mostly useless anyways.

===================================================================
Paul Gevers <elbrus@debian.org> not-needed
0023-GTK3-Backported-CanvasScaleFactor-changes-from-main-.patch [PATCH 23/32] GTK3: Backported `CanvasScaleFactor` changes from `main` branch.

These changes were initially added to `main` in these 3 commits:
- 34844aa9340: _LCL: SetDeviceScaleRatio renamed to SetCanvasScaleFactor_ by _zeljan1_
- 6d55565da20: _Gtk3: renamed deviceScaleRatio to canvasScaleFactor_ by _zeljan1_
- 2f94ecea696: _LCL: renamed param_ by _zeljan1_

This change is a preparation to merge all the `lcl/interfaces/gtk3` from `main`.
Mazen Neifer <mazen.neifer@edgepulsar.com> not-needed 2026-03-07
0024-LCL-GTK2-3-Improve-handling-of-font-stretch-and-weig.patch [PATCH 24/32] LCL-GTK2&3: Improve handling of font stretch and weight in font name. Issue #29596, patch by Juliette. Juha <juha@lazarus-ide.org> not-needed 2025-02-23
0025-GTK3-Imported-all-in-lcl-interfaces-gtk3-changes-fro.patch [PATCH 25/32] GTK3: Imported all in `lcl/interfaces/gtk3` changes from `main` branch.

Files are now identical between `main` and `fixes_4` branches in GTK3 LCL
interface directory except for calls to `NotifyApplicationUserInput` which
remain with integer message ID instead of `PLMessage` instance.

This fixes the IDE main window that has now a good shape even if it is still
not fully functional, but at least menu and buttons are already functional.
Mazen Neifer <mazen.neifer@edgepulsar.com> not-needed 2026-03-07
0026-Gtk3-take-borders-and-padding-into-account-when-calc.patch [PATCH 26/32] Gtk3: take borders and padding into account when calculating default clientRect of TPageControl. zeljan1 <zeljko@holobit.hr> not-needed 2026-03-07
0027-Gtk3-fixed-discrepancy-in-TTabSheet-clientRect-betwe.patch [PATCH 27/32] Gtk3: fixed discrepancy in TTabSheet clientRect between gtk and lcl. zeljan1 <zeljko@holobit.hr> not-needed 2026-03-07
0028-Gtk3-improved-SetScrollinfo-in-case-of-automatic-scr.patch [PATCH 28/32] Gtk3: improved SetScrollinfo in case of automatic scrollbars when the'y should not be visible because there's no valid range to
scroll.
zeljan1 <zeljko@holobit.hr> not-needed 2026-03-07
0029-Gtk3-detect-if-viewport-size-is-changed-in-ScrolledL.patch [PATCH 29/32] Gtk3: detect if viewport size is changed in ScrolledLayoutSizeAllocate, improved debugging zeljan1 <zeljko@holobit.hr> not-needed 2026-03-07
0030-Gtk3-added-queue-resize-messaging-similar-to-the-gtk.patch [PATCH 30/32] Gtk3: added queue resize messaging (similar to the gtk2 philosophy), for now default is still synchro messaging, especially because
of wayland.
zeljan1 <zeljko@holobit.hr> not-needed 2026-03-07
0031-GTK3-Fix-IDE-layout-regression-and-width-expansion-l.patch [PATCH 31/32] GTK3: Fix IDE layout regression and width expansion loop.

- TGtk3Window.SetBounds: Soften geometry hints (min/max width) for sizeable windows to allow the window manager to shrink the window even if the LCL configuration is large.
- TGtk3Window.SetBounds: Clamp initial resize() call to Screen.Width to prevent starting wider than the monitor.
- LCLGtkFixed (Toolbars) & LCLGtkScrolledWindow: Implement Truly Soft Width (10px) preferred size to break the feedback loop caused by child positions in docked layouts.
- Maintain Hard Height floors in SetBounds and GetPreferredHeight to prevent 1px height collapse.
Mazen Neifer <mazen.neifer@edgepulsar.com> not-needed 2026-03-08
0032-GTK3-Restore-vertical-resizability-to-all-windows-ex.patch [PATCH 32/32] GTK3: Restore vertical resizability to all windows except the main IDE bar.

- TGtk3Window.SetBounds: Selectively soften FCentralWidget height request.
- If the window is Application.MainForm, keep the hardened height floor to prevent layout collapse.
- If the window is any other (e.g., Code Editor, Dialogs), use flexible height (-1) to allow the user full resizability.
Mazen Neifer <mazen.neifer@edgepulsar.com> not-needed 2026-03-08

All known versions for source package 'lazarus'

Links