aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2024-05-04 05:49:45 +0000
committerJason E. Hale <jhale@FreeBSD.org>2024-05-04 06:00:15 +0000
commit574f1d78b9432abc5e0e46befa91958417c80648 (patch)
tree85842b72a4a682d95b728c7c64dedaca96aafc1b
parent76a11ee01d23bec7ce1cad995e15434da9f80c05 (diff)
downloadports-574f1d78b9432abc5e0e46befa91958417c80648.tar.gz
ports-574f1d78b9432abc5e0e46befa91958417c80648.zip
deskutils/plasma6-xdg-desktop-portal-kde: Fix build on 13.2
src/session.h:186:10: error: no template named 'unordered_map' in namespace 'std' PR: 278658 MFH: 2024Q2
-rw-r--r--deskutils/plasma6-xdg-desktop-portal-kde/files/patch-src_session.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/deskutils/plasma6-xdg-desktop-portal-kde/files/patch-src_session.h b/deskutils/plasma6-xdg-desktop-portal-kde/files/patch-src_session.h
new file mode 100644
index 000000000000..cf5796fc5bcc
--- /dev/null
+++ b/deskutils/plasma6-xdg-desktop-portal-kde/files/patch-src_session.h
@@ -0,0 +1,19 @@
+Fix build on FreeBSD 13.2
+
+In file included from /wrkdirs/usr/ports/deskutils/plasma6-xdg-desktop-portal-kde/work/.build/src/xdg-desktop-portal-kde_autogen/mocs_compilation.cpp:29:
+In file included from /wrkdirs/usr/ports/deskutils/plasma6-xdg-desktop-portal-kde/work/.build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_session.cpp:9:
+/wrkdirs/usr/ports/deskutils/plasma6-xdg-desktop-portal-kde/work/.build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/../../../../xdg-desktop-portal-kde-6.0.4/src/session.h:186:10: error: no template named 'unordered_map' in namespace 'std'
+ std::unordered_map<QString, std::unique_ptr<QAction>> m_shortcuts;
+ ~~~~~^
+
+--- src/session.h.orig 2024-04-16 10:39:21 UTC
++++ src/session.h
+@@ -9,6 +9,8 @@
+ #ifndef XDG_DESKTOP_PORTAL_KDE_SESSION_H
+ #define XDG_DESKTOP_PORTAL_KDE_SESSION_H
+
++#include <unordered_map>
++
+ #include <QAction>
+ #include <QDBusVirtualObject>
+ #include <QObject>