mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
gui-apps/deskflow: Backport patch to fix build with GCC 16
Closes: https://bugs.gentoo.org/960455 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
parent
5d1d59ae42
commit
4346a4dcf3
@ -60,6 +60,7 @@ DOCS=(
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-default-proto.patch
|
||||
"${FILESDIR}"/${P}-limit-includes.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
|
||||
79
gui-apps/deskflow/files/deskflow-1.23.0-limit-includes.patch
Normal file
79
gui-apps/deskflow/files/deskflow-1.23.0-limit-includes.patch
Normal file
@ -0,0 +1,79 @@
|
||||
From 7d022615a576b228f9fc8473f05967455a0d9bd9 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Mon, 4 Aug 2025 22:21:23 +0100
|
||||
Subject: [PATCH] fix: update inclusion of climits and cstdint headers
|
||||
|
||||
For INT_MAX and SIZE_MAX.
|
||||
--- a/src/lib/base/String.cpp
|
||||
+++ b/src/lib/base/String.cpp
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdarg>
|
||||
+#include <cstdint>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
--- a/src/lib/client/Client.cpp
|
||||
+++ b/src/lib/client/Client.cpp
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "net/TCPSocket.h"
|
||||
|
||||
#include <algorithm>
|
||||
-#include <climits>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
--- a/src/lib/client/Client.h
|
||||
+++ b/src/lib/client/Client.h
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "mt/CondVar.h"
|
||||
#include "net/NetworkAddress.h"
|
||||
|
||||
+#include <climits>
|
||||
#include <memory>
|
||||
|
||||
class EventQueueTimer;
|
||||
--- a/src/lib/gui/VersionChecker.cpp
|
||||
+++ b/src/lib/gui/VersionChecker.cpp
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <QNetworkRequest>
|
||||
#include <QProcess>
|
||||
#include <QRegularExpression>
|
||||
+#include <climits>
|
||||
#include <memory>
|
||||
|
||||
VersionChecker::VersionChecker(QObject *parent) : QObject(parent), m_network{new QNetworkAccessManager(this)}
|
||||
--- a/src/lib/server/InputFilter.cpp
|
||||
+++ b/src/lib/server/InputFilter.cpp
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "server/PrimaryClient.h"
|
||||
#include "server/Server.h"
|
||||
|
||||
+#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
--- a/src/lib/server/Server.cpp
|
||||
+++ b/src/lib/server/Server.cpp
|
||||
@@ -30,7 +30,6 @@
|
||||
#ifdef _WIN32
|
||||
#include <array>
|
||||
#endif
|
||||
-#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
--- a/src/lib/server/Server.h
|
||||
+++ b/src/lib/server/Server.h
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "deskflow/ServerArgs.h"
|
||||
#include "server/Config.h"
|
||||
|
||||
+#include <climits>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user