hyprland/debian/patches/005-libcpp-port.patch

33 lines
1.6 KiB
Diff

Description: Fix FTBFS around a missing operator+
There seems to be a missing operator+(std::string, std::string_view) or
something, so cast it to std:;string.
Origin: https://github.com/cpiber/hyprland-ppa/blob/0dcd5f3101f7ced40879d0f34f337b1a2cdd79ae/hyprland/debian/patches/05-libcpp-port
Author: Constantin Piber <cp.piber@gmail.com>
Forwarded: not-needed
Index: hyprland/hyprctl/main.cpp
===================================================================
--- hyprland.orig/hyprctl/main.cpp 2025-09-11 12:44:35.586930526 +0800
+++ hyprland/hyprctl/main.cpp 2025-09-11 12:44:35.579795828 +0800
@@ -270,7 +270,7 @@
sockaddr_un serverAddress = {0};
serverAddress.sun_family = AF_UNIX;
- std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + filename;
+ std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + std::string(filename);
strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1);
Index: hyprland/src/xwayland/XWM.hpp
===================================================================
--- hyprland.orig/src/xwayland/XWM.hpp 2025-09-11 12:44:35.586930526 +0800
+++ hyprland/src/xwayland/XWM.hpp 2025-09-11 12:44:35.580353844 +0800
@@ -213,7 +213,7 @@
std::vector<SP<CX11DataOffer>> m_dndDataOffers;
inline xcb_connection_t* getConnection() {
- return m_connection ? *m_connection : nullptr;
+ return m_connection ? static_cast<xcb_connection_t*>(*m_connection) : nullptr;
}
struct {
CHyprSignalListener newWLSurface;