[neon/snap-packaging/kf6-core-sdk/work.core24] /: try and hack around qt not being found
Carlos De Maine
null at kde.org
Mon Dec 8 09:49:54 GMT 2025
Git commit de3777933839f7123d26bdd5a5ee6b65165d4b05 by Carlos De Maine.
Committed on 08/12/2025 at 09:49.
Pushed by carlosdem into branch 'work.core24'.
try and hack around qt not being found
A +12 -0 patches/kwidgetsaddons/add_qmetamethod_include.diff
M +3 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kf6-core-sdk/-/commit/de3777933839f7123d26bdd5a5ee6b65165d4b05
diff --git a/patches/kwidgetsaddons/add_qmetamethod_include.diff b/patches/kwidgetsaddons/add_qmetamethod_include.diff
new file mode 100644
index 0000000..bed8f53
--- /dev/null
+++ b/patches/kwidgetsaddons/add_qmetamethod_include.diff
@@ -0,0 +1,12 @@
+diff --git a/python/bindings.h b/python/bindings.h
+index 3b2bdf7b..9af165b3 100644
+--- a/python/bindings.h
++++ b/python/bindings.h
+@@ -6,6 +6,7 @@
+ // Make "signals:", "slots:" visible as access specifiers
+ #define QT_ANNOTATE_ACCESS_SPECIFIER(a) __attribute__((annotate(#a)))
+
++#include <QMetaMethod>
+ #include "pysidesignal.h"
+
+ #include <KAcceleratorManager>
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 4e2d373..d663da4 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -505,6 +505,9 @@ parts:
cmake-generator: Ninja
cmake-parameters: *cmakeparameters-kf6withpyside6
build-environment: *buildenvironment-kf6withpyside6
+ override-pull: |
+ craftctl default
+ patch -p1 < $CRAFT_PROJECT_DIR/patches/kwidgetsaddons/add_qmetamethod_include.diff
ki18n:
after:
More information about the Neon-commits
mailing list