diff --git a/net-wireless/qflipper/files/qflipper_define_operator_qt6.9.patch b/net-wireless/qflipper/files/qflipper_define_operator_qt6.9.patch new file mode 100644 index 000000000..bc3b17768 --- /dev/null +++ b/net-wireless/qflipper/files/qflipper_define_operator_qt6.9.patch @@ -0,0 +1,40 @@ +From 57316893037d119931011d9abd4a05ed158c7a24 Mon Sep 17 00:00:00 2001 +From: Michal Suchanek +Date: Tue, 8 Apr 2025 17:06:42 +0200 +Subject: [PATCH] Define == for DeviceInfo + +Looks like some newer Qt versions require == instead of !=. + +Define both. +--- + backend/flipperzero/deviceinfo.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/backend/flipperzero/deviceinfo.h b/backend/flipperzero/deviceinfo.h +index deaa18b1..3cfd5f91 100644 +--- a/backend/flipperzero/deviceinfo.h ++++ b/backend/flipperzero/deviceinfo.h +@@ -31,6 +31,7 @@ struct HardwareInfo { + + // Needed in order to work with QVariant + bool operator !=(const HardwareInfo &other) const { Q_UNUSED(other) return true; } ++ bool operator ==(const HardwareInfo &other) const { Q_UNUSED(other) return false; } + }; + + struct SoftwareInfo { +@@ -50,6 +51,7 @@ struct SoftwareInfo { + + // Needed in order to work with QVariant + bool operator !=(const SoftwareInfo &other) const { Q_UNUSED(other) return true; } ++ bool operator ==(const SoftwareInfo &other) const { Q_UNUSED(other) return false; } + }; + + struct StorageInfo { +@@ -67,6 +69,7 @@ struct StorageInfo { + + // Needed in order to work with QVariant + bool operator !=(const StorageInfo &other) const { Q_UNUSED(other) return true; } ++ bool operator ==(const StorageInfo &other) const { Q_UNUSED(other) return false; } + }; + + struct ProtobufInfo { diff --git a/net-wireless/qflipper/qflipper-1.3.3-r2.ebuild b/net-wireless/qflipper/qflipper-1.3.3-r3.ebuild similarity index 96% rename from net-wireless/qflipper/qflipper-1.3.3-r2.ebuild rename to net-wireless/qflipper/qflipper-1.3.3-r3.ebuild index 0dac21e51..44df71d02 100644 --- a/net-wireless/qflipper/qflipper-1.3.3-r2.ebuild +++ b/net-wireless/qflipper/qflipper-1.3.3-r3.ebuild @@ -33,6 +33,7 @@ DEPEND="${RDEPEND}" # https://github.com/flipperdevices/qFlipper/issues/213 PATCHES=( + "${FILESDIR}/${PN}_define_operator_qt6.9.patch" "${FILESDIR}/${PN}-1.3.0_unbundle.patch" "${FILESDIR}/${P}_display_version.patch" )