Files
gentoo/dev-python/pyqt6/files/pyqt6-6.11.0-bluetooth.patch
Ionen Wolkens 19ca2e96ee dev-python/pyqt6: add missing INT128 check for bluetooth
qtconnectivity only defines this function when the compiler does not
define __SIZEOF_INT128__ (seems like a fallback), this may possibly
happen in generic Qt builds but that seems unlikely for our builds.

Just a quickfix, may not be correct but is better failling due to a
missing symbol.

Closes: https://bugs.gentoo.org/980692
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2026-08-10 21:05:51 -04:00

25 lines
696 B
Diff

https://bugs.gentoo.org/980692
--- a/config-tests/cfgtest_QtCore.cpp
+++ b/config-tests/cfgtest_QtCore.cpp
@@ -33,2 +33,6 @@
+#if !defined(QT_SUPPORTS_INT128)
+ out << "PyQt_INT128\n";
+#endif
+
#if QT_VERSION < 0x060500 || !QT_CONFIG(permissions)
--- a/sip/QtBluetooth/qbluetoothuuid.sip
+++ b/sip/QtBluetooth/qbluetoothuuid.sip
@@ -332,3 +332,5 @@
quint32 toUInt32(bool *ok = 0) const;
+%If (!PyQt_INT128)
quint128 toUInt128() const;
+%End
static QString serviceClassToString(QBluetoothUuid::ServiceClassUuid uuid);
--- a/sip/QtCore/QtCoremod.sip
+++ b/sip/QtCore/QtCoremod.sip
@@ -32,2 +32,3 @@
%Feature PyQt_qreal_double
+%Feature PyQt_INT128
%Feature PyQt_PrintDialog