testing/hyprland: upgrade to 0.43.0

This commit is contained in:
Zach DeCook 2024-09-12 20:13:39 -04:00 committed by Patrycja Rosa
parent 3569812eb7
commit 3f41fec4fa
3 changed files with 20 additions and 61 deletions

View file

@ -1,9 +1,9 @@
# Contributor: Zach DeCook <zachdecook@librem.one>
# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=hyprland
pkgver=0.42.0
pkgver=0.43.0
pkgrel=0
_commit="9a09eac79b85c846e3a865a9078a3f8ff65a9259"
_commit="0f594732b063a90d44df8c5d402d658f27471dfe"
pkgdesc="Independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks."
url="https://hyprland.org"
arch="all"
@ -11,7 +11,7 @@ license="BSD-3-Clause"
source="
https://github.com/hyprwm/Hyprland/archive/v$pkgver/Hyprland-v$pkgver.tar.gz
use-system-installed-udis86.patch
strncpy-include-cstring.patch
fix_time_t.patch
"
builddir="$srcdir/Hyprland-$pkgver"
makedepends="
@ -87,7 +87,7 @@ wallpapers() {
}
sha512sums="
695d2f6ffc43e9e0620154c32e52a451492e3d093fe08d671273a56af219d38f7d061402997b6da53c95c15ab68caaa652fc8964bfaefd248f48ae62989ae544 Hyprland-v0.42.0.tar.gz
0e8851e1afde0a51b7a097dbff8315e713ad14e70559291a08a44915f90f6e1e16352ce475da4c4b0b1750463140e8a85d01a4dfd124f43216bde917f7d24bc4 Hyprland-v0.43.0.tar.gz
d2f7b35552fa0a3e992b9050f7066d983b3b7c193a888018b2e0d6fa9e17fc3deff922fa3989d0bb79e8bd82df2bc16ff0c27a82759ad0ce2e72789506eb07db use-system-installed-udis86.patch
52ca7d010e39a90e1d8a9c6031f162de5b61d8a7fce6ed854b15e98dfa017f29ec3ac1850fcf70e9012f0d8bb6a7b8d1c54e3454dd9d03f8edf08c2ccee5650f strncpy-include-cstring.patch
f072a663a09c01b47e84177b9d4d22582a7acfb1834b7773a20112d9626eb068c63e7218c4ab0c85c8ce747d0cca511832f49238b7eba4c7d78253ef2f57aaaf fix_time_t.patch
"

View file

@ -0,0 +1,15 @@
diff --git a/src/protocols/PresentationTime.cpp b/src/protocols/PresentationTime.cpp
index e1ff52cd..71f74cd5 100644
--- a/src/protocols/PresentationTime.cpp
+++ b/src/protocols/PresentationTime.cpp
@@ -58,8 +58,8 @@ void CPresentationFeedback::sendQueued(SP<CQueuedPresentationData> data, timespe
if (reportedFlags & Aquamarine::IOutput::AQ_OUTPUT_PRESENT_HW_COMPLETION)
flags |= WP_PRESENTATION_FEEDBACK_KIND_HW_COMPLETION;
- __time_t tv_sec = 0;
- if (sizeof(__time_t) > 4)
+ time_t tv_sec = 0;
+ if (sizeof(time_t) > 4)
tv_sec = when->tv_sec >> 32;
if (data->wasPresented)

View file

@ -1,56 +0,0 @@
commit 2c93331ca20469582c57c8bcf834e2b0022cb598
Author: Zach DeCook <zachdecook@librem.one>
Date: Fri Aug 9 08:53:44 2024 -0400
Include cstring whenever strncpy is used
Fixes ppc64le build in alpine
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index c86406fc..5d5113b8 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -26,6 +26,7 @@
#include <regex>
#include <sys/socket.h>
#include <hyprutils/string/String.hpp>
+#include <cstring>
using namespace Hyprutils::String;
#include "Strings.hpp"
diff --git a/src/helpers/SdDaemon.cpp b/src/helpers/SdDaemon.cpp
index 25e0ca3b..48c23e6b 100644
--- a/src/helpers/SdDaemon.cpp
+++ b/src/helpers/SdDaemon.cpp
@@ -8,6 +8,7 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <string.h>
+#include <cstring>
namespace Systemd {
int SdBooted(void) {
diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp
index 75c98e2a..079a6b68 100644
--- a/src/managers/EventManager.cpp
+++ b/src/managers/EventManager.cpp
@@ -8,6 +8,7 @@
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
+#include <cstring>
CEventManager::CEventManager() {
m_iSocketFD = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index cec582f6..200bec70 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -19,6 +19,7 @@
#include <sys/un.h>
#include <unistd.h>
#include <filesystem>
+#include <cstring>
// TODO: cleanup
static bool set_cloexec(int fd, bool cloexec) {