Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2026 09:25:52 +0000
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 71315a986ad4 - main - devel/hyprwire: Update to 0.3.0
Message-ID:  <698af9a0.468fe.55b7f6d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=71315a986ad402011d70a0b0d0c67b862233288e

commit 71315a986ad402011d70a0b0d0c67b862233288e
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-02-10 09:24:37 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-02-10 09:25:44 +0000

    devel/hyprwire: Update to 0.3.0
    
    Changelog: https://github.com/hyprwm/hyprwire/releases/tag/v0.3.0
    
    Reported by:    GitHub (watch releases)
---
 devel/hyprwire/Makefile                            |  4 +-
 devel/hyprwire/distinfo                            |  6 +--
 .../files/patch-src_core_client_ClientSocket.cpp   | 10 -----
 .../files/patch-src_core_server_ServerClient.cpp   | 48 ++++++++++++++++++----
 .../files/patch-src_core_server_ServerSocket.cpp   | 10 -----
 devel/hyprwire/files/patch-tests_Fork.cpp          | 10 +++++
 6 files changed, 56 insertions(+), 32 deletions(-)

diff --git a/devel/hyprwire/Makefile b/devel/hyprwire/Makefile
index efc6535644ad..cd4610b68ff9 100644
--- a/devel/hyprwire/Makefile
+++ b/devel/hyprwire/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	hyprwire
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.2.1
+DISTVERSION=	0.3.0
 CATEGORIES=	devel
 
 MAINTAINER=	tagattie@FreeBSD.org
@@ -22,7 +22,7 @@ GH_ACCOUNT=	hyprwm
 LDFLAGS+=	-pthread
 
 PLIST_SUB=	SOVERSION_FULL=${DISTVERSION} \
-		SOVERSION_MAJOR=2
+		SOVERSION_MAJOR=3
 PORTDOCS=	README.md
 
 OPTIONS_DEFINE=	DOCS
diff --git a/devel/hyprwire/distinfo b/devel/hyprwire/distinfo
index e702b02f70a3..553e4286223e 100644
--- a/devel/hyprwire/distinfo
+++ b/devel/hyprwire/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1765327591
-SHA256 (hyprwm-hyprwire-v0.2.1_GH0.tar.gz) = a6370db771213fe10ebca5a2da748070a7034b09131847f973fda5d60b473c11
-SIZE (hyprwm-hyprwire-v0.2.1_GH0.tar.gz) = 32624
+TIMESTAMP = 1770709987
+SHA256 (hyprwm-hyprwire-v0.3.0_GH0.tar.gz) = ba3ff4b82620209d5680ce0e771d0f2c41f78cdb96d5d84fa66e4f0709ca8de6
+SIZE (hyprwm-hyprwire-v0.3.0_GH0.tar.gz) = 41897
diff --git a/devel/hyprwire/files/patch-src_core_client_ClientSocket.cpp b/devel/hyprwire/files/patch-src_core_client_ClientSocket.cpp
deleted file mode 100644
index fb2c37a1aeab..000000000000
--- a/devel/hyprwire/files/patch-src_core_client_ClientSocket.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/core/client/ClientSocket.cpp.orig	2025-11-23 08:07:11 UTC
-+++ src/core/client/ClientSocket.cpp
-@@ -18,6 +18,7 @@
- #include <sys/socket.h>
- #include <sys/un.h>
- #include <netinet/in.h>
-+#include <unistd.h>
- 
- #include <filesystem>
- #include <hyprutils/utils/ScopeGuard.hpp>
diff --git a/devel/hyprwire/files/patch-src_core_server_ServerClient.cpp b/devel/hyprwire/files/patch-src_core_server_ServerClient.cpp
index e925ee87ce0b..aa05dfaec6dd 100644
--- a/devel/hyprwire/files/patch-src_core_server_ServerClient.cpp
+++ b/devel/hyprwire/files/patch-src_core_server_ServerClient.cpp
@@ -1,11 +1,45 @@
---- src/core/server/ServerClient.cpp.orig	2025-11-23 08:04:14 UTC
+--- src/core/server/ServerClient.cpp.orig	2026-02-04 11:08:13 UTC
 +++ src/core/server/ServerClient.cpp
-@@ -7,6 +7,8 @@
- #include "../../helpers/Log.hpp"
- #include "../../Macros.hpp"
+@@ -13,6 +13,11 @@
+ #include <sys/socket.h>
+ #include <sys/types.h>
  
-+#include <unistd.h>
++#if defined(__FreeBSD__)
++#include <sys/ucred.h>
++#include <sys/un.h>
++#endif
 +
- #include <hyprwire/core/implementation/ServerImpl.hpp>
- #include <hyprwire/core/implementation/Spec.hpp>
+ using namespace Hyprwire;
  
+ CServerClient::CServerClient(int fd) : m_fd(fd) {
+@@ -31,19 +36,29 @@ void CServerClient::dispatchFirstPoll() {
+ 
+     // get peer's pid
+ 
+-#if defined(__OpenBSD__)
++#if defined(__FreeBSD__)
++    struct xucred cred;
++#elif defined(__OpenBSD__)
+     struct sockpeercred cred;
+ #else
+     ucred cred;
+ #endif
+     socklen_t len = sizeof(cred);
+ 
++#if defined(__FreeBSD__)
++    if (getsockopt(m_fd.get(), SOL_SOCKET, LOCAL_PEERCRED, &cred, &len) == -1) {
++#else
+     if (getsockopt(m_fd.get(), SOL_SOCKET, SO_PEERCRED, &cred, &len) == -1) {
++#endif
+         TRACE(Debug::log(TRACE, "dispatchFirstPoll: failed to get pid"));
+         return;
+     }
+ 
++#if defined(__FreeBSD__)
++    m_pid = cred.cr_pid;
++#else
+     m_pid = cred.pid;
++#endif
+ }
+ 
+ void CServerClient::sendMessage(const IMessage& message) {
diff --git a/devel/hyprwire/files/patch-src_core_server_ServerSocket.cpp b/devel/hyprwire/files/patch-src_core_server_ServerSocket.cpp
deleted file mode 100644
index 680a7b75932d..000000000000
--- a/devel/hyprwire/files/patch-src_core_server_ServerSocket.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/core/server/ServerSocket.cpp.orig	2025-11-23 08:06:13 UTC
-+++ src/core/server/ServerSocket.cpp
-@@ -9,6 +9,7 @@
- #include <sys/socket.h>
- #include <sys/un.h>
- #include <netinet/in.h>
-+#include <unistd.h>
- 
- #include <filesystem>
- #include <hyprutils/utils/ScopeGuard.hpp>
diff --git a/devel/hyprwire/files/patch-tests_Fork.cpp b/devel/hyprwire/files/patch-tests_Fork.cpp
new file mode 100644
index 000000000000..eaf695a15ab2
--- /dev/null
+++ b/devel/hyprwire/files/patch-tests_Fork.cpp
@@ -0,0 +1,10 @@
+--- tests/Fork.cpp.orig	2026-02-10 08:21:03 UTC
++++ tests/Fork.cpp
+@@ -3,6 +3,7 @@
+ #include <sys/poll.h>
+ #include <sys/signal.h>
+ #include <sys/socket.h>
++#include <unistd.h>
+ 
+ #include "generated/test_protocol_v1-server.hpp"
+ #include "generated/test_protocol_v1-client.hpp"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698af9a0.468fe.55b7f6d>