+solvespace (3.2+dfsg-5) UNRELEASED; urgency=medium
+
+ * Include Eigen before X11 headers to fix FTBFS on ppc64el.
+
+ -- Anton Gladky <gladk@debian.org> Sat, 03 Oct 2026 15:38:15 +0200
+
solvespace (3.2+dfsg-4) unstable; urgency=medium
* Reupload with libdxfrw tarball (Closes: #1149826)
--- /dev/null
+Description: Include solvespace.h before spnav.h in the GTK frontend
+ spnav.h includes <X11/Xlib.h>, which does "#define Complex 0". When Eigen
+ is included afterwards, its AltiVec backend (used on ppc64el) fails to
+ compile because it uses "bool Complex" as a template parameter name.
+ Include solvespace.h, and therefore Eigen, before the X11 headers.
+Author: Anton Gladky <gladk@debian.org>
+Forwarded: no
+Last-Update: 2026-10-03
+
+Index: src/platform/guigtk.cpp
+--- a/src/platform/guigtk.cpp
++++ b/src/platform/guigtk.cpp
+@@ -32,6 +32,11 @@
+ # include <gtkmm/filechoosernative.h>
+ #endif
+
++// Include solvespace.h (and thus Eigen) before spnav.h: the latter pulls in
++// <X11/Xlib.h>, which defines macros such as `Complex` that break Eigen's
++// AltiVec template code on ppc64el.
++#include "solvespace.h"
++
+ #if defined(HAVE_SPACEWARE)
+ # include <spnav.h>
+ # include <gdk/gdk.h>
+@@ -48,8 +53,6 @@
+ # endif
+ #endif
+
+-#include "solvespace.h"
+-
+ namespace SolveSpace {
+ namespace Platform {
+