Debian Patches

Status for freecad/1.1.0+dfsg-2

Patch Description Author Forwarded Bugs Origin Last update
2100-run_single-instance.patch Change XDG desktop entry to only run single instance of FreeCAD. This ensure invoking it to open different files only start the
program once, and load new files into the already running instance.

Related to https://bugs.debian.org/1029846 and
https://github.com/FreeCAD/FreeCAD/commit/c7a21ecbeecefe7c2dfc9e950b3d6bb42351d476 .

Partly applied upstream. Arguments applied, program name change is not.
HÃ¥vard Flaget Aasen <haavard_aasen@yahoo.no> yes 2024-12-21
2010-exclude_ply.patch exclude ply from build-sources, use packaged version Anton Gladky <gladk@debian.org>, Sebastian Hoogen <sebastian@hoogen.de> not-needed 2013-09-25
2020-fix-cmake-extra-license.patch Don't include extra license file in package Kurt Kremitzki <kkremitzki@debian.org> not-needed 2018-06-13
2040-ftbfs-macappbundle.patch Do not cmake add_subdirectory on removed directory. Avoids a FTBFS. Tobias Frost <tobi@debian.org> not-needed 2023-12-09
2070-use-nlohmann-json3-dev.patch Use packaged json3 library. Tobias Frost <tobi@debian.org> no 2026-03-25
1000-use-packages-pycxx.patch Allow using of packaged PyCXX, located using pkgconfig Tobias Frost <tobi@debian.org> yes 2026-03-26
1010-fix-thumbnailer-path.patch Fix absoulte path of the thumbnailer. (not yet upstreamable, the path shouldn't be hardcoded but come
from CMake variables. Also, the thumbnailer itself should be part of cmake
install)
Bug-<Vendor>: <URL to the vendor bug report if any, optional>
Tobias Frost <tobi@debian.org> invalid upstream <upstream|backport|vendor|other>, <URL, required except if Author is present> 2026-03-27
1020-missing-include-E57.patch Fix compile issue on armhf -- missing include to "limits"Bug-<Vendor>: <URL to the vendor bug report if any, optional> Tobias Frost <tobi@debian.org> invalid upstream 2026-03-29
1030-fix-armhf-opengl-macro-conflict.patch Fix armhf build failure: OpenGL macro conflict with Coin3D headers

On armhf, Qt5 uses GLES2 headers (<GLES2/gl2.h>) rather than desktop
<GL/gl.h>. As a consequence, the desktop GL include guard (__gl_h_) is
never set when <QOpenGLExtraFunctions> is processed.

OpenGlWrapper.h redefines standard GL function names as macros:
#define glClearColor gSimWindow->glClearColor

When Gui/View3DInventorViewer.h is included *after* MillSimulation.h
(which pulls in OpenGlWrapper.h), the Coin3D headers it depends on
include <GL/gl.h> for the first time on armhf. The macro substitution
then corrupts the C function declarations inside <GL/gl.h>, e.g.:
extern void glClearColor(GLfloat, ...)
becomes
extern void CAMSimulator::DlgCAMSimulator::GetInstance()->glClearColor(...)
which is invalid C++, producing "expected type-specifier before 'glClearColor'".

On x86/amd64, Qt5 desktop includes <GL/gl.h> via <QOpenGLExtraFunctions>,
so its include guard is set before Coin3D's include attempt, which then
becomes a no-op.

<GL/gl.h> (and its function declarations) is processed and guarded before
the gl* macros are defined.
Bastian Germann <bage@debian.org> yes debian
1040-fix-cmake-race.patch FTBFS on arm64 - race condition in CMakeLists.txt for Mod/Assembly Avoid race in Assembly file copying by removing overlap and enforcing target
order. Ensure AssemblyScripts runs before AssemblyTests to guarantee
directories exist. Fixes intermittent FTBFS on arm64.
Tobias Frost <tobi@debian.org> yes 2026-04-23

All known versions for source package 'freecad'

Links