Debian Patches

Status for lazarus/4.6+dfsg-4

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
0001-Converter-Convert-dotted-unit-names.-Optimization.-I.patch [PATCH 01/32] Converter: Convert dotted unit names. Optimization. Issue #40979.

(cherry picked from commit aa154300729e0c96996ff11ab427a840a74dd218)
Juha <juha@lazarus-ide.org> no 2026-02-18
0002-Converter-Change-missing-types-correctly.-LoadLFM-wa.patch [PATCH 02/32] Converter: Change missing types correctly. LoadLFM was wrongly added 3 years ago in 68eb8b0232. Issue #41625.

(cherry picked from commit dec62700ed55d611da3e250394c3f31105939f40)
Juha <juha@lazarus-ide.org> no 2026-02-21
0007-IdeIntf-Mark-form-as-modified-when-setting-default-p.patch [PATCH 07/32] IdeIntf: Mark form as modified when setting default property value via popup menu in OI. Issue #42069.

(cherry picked from commit bdaea522f87376f69f3b489330d163cba20aaa7d)
Juha <juha@lazarus-ide.org> no 2026-02-24
0008-IdeIntf-Simplify-setting-default-property-value-via-.patch [PATCH 08/32] IdeIntf: Simplify setting default property value via popup menu in OI. Issue #42069.

(cherry picked from commit dde02ba95b75dd1604e6a7216402ab6db4b20162)
Juha <juha@lazarus-ide.org> no 2026-02-24
0009-TAChart-Fix-incorrect-axis-ZPosition-when-chart-is-s.patch [PATCH 09/32] TAChart: Fix incorrect axis ZPosition when chart is scaled. Issue #42061, patch by Joeny Ang.

(cherry picked from commit 38c0bd0f5820b450485ee5ba5bd079c9bc9af0ed)
wp_xyz <wp_xxyyzzz@gmx.net> no 2026-02-16
0010-LCL-TBitBtn-Fix-Delphi-imcompatibility-related-to-Gl.patch [PATCH 10/32] LCL/TBitBtn: Fix Delphi imcompatibility related to Glyph and bkCustom. Issue #34261, based on patch by @onpok

(cherry picked from commit f35f8ee8eaa2ab602f46767312b1f671ad8a0a58)
wp_xyz <wp_xxyyzzz@gmx.net> no 2026-02-25
0011-LCL-fix-the-issue-that-ItemHeight-could-not-be-set-w.patch [PATCH 11/32] LCL: fix the issue that ItemHeight could not be set when there were no items in the TListBox rich2014 <rich2014.git@outlook.com> no 2026-02-28
0015-LCL-TTabControl-Fix-access-after-free-of-FCanvas-in-.patch [PATCH 15/32] LCL: TTabControl, Fix access-after-free of FCanvas in DestroyWnd

(cherry picked from commit e781937d8c6aa6032a4c6c31939fca1005e8a709)
Martin <laz.git@mfriebe.de> no 2026-03-05
0016-LCL-adjusted-IFDEF-in-Graphics-unit-to-match-the-cur.patch [PATCH 16/32] LCL: adjusted IFDEF in Graphics unit to match the current situation in FPC, issue #42097

(cherry picked from commit d51677601429cba78faa7fe9fd4fb850dc727e3e)
Maxim Ganetsky <maxim@lazarus-ide.org> no 2026-03-08
0017-LCL-adjusted-one-more-IFDEF-in-Graphics-unit-to-matc.patch [PATCH 17/32] LCL: adjusted one more IFDEF in Graphics unit to match the current situation in FPC, issue #42097

(cherry picked from commit c6fedc680fd18797220696103ba3e579cc4cad98)
Maxim Ganetsky <maxim@lazarus-ide.org> no 2026-03-08
0021-IDE-Options-Do-not-disable-the-New-project-type-opti.patch [PATCH 21/32] IDE/Options: Do not disable the "New project type" option when the "Open last project on startup" is checked

(cherry picked from commit c76bafbce75fc814e5d0659c3360189dff514ca5)
Maxim Ganetsky <maxim@lazarus-ide.org> not-needed 2026-03-10
0022-IDE-Debugger-Watch-navigation-don-t-show-word-wrap-b.patch [PATCH 22/32] IDE, Debugger: Watch navigation, don't show "word wrap" button, unless enabled by containing frame (hide in inspect dlg)

(cherry picked from commit 55c1b64fb017358abc94ad675783184213f60514)
Martin <laz.git@mfriebe.de> not-needed 2026-03-10
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