From nobody Tue Mar 19 22:30:05 2024
X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tzmcs5tFsz5Fcdg;
	Tue, 19 Mar 2024 22:30:05 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4Tzmcs5JSwz4DGS;
	Tue, 19 Mar 2024 22:30:05 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1710887405;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=f+QMFC0KLBwab0U54tYdwcb8I5/mE+zCXsiUsJaXN8w=;
	b=a3CPkhk6CqH33hFZzjkT7rHxO19/z+8OmOb6AqhZVe7B5OnfoEAGKfbu8Oj6q63gP+xtfQ
	28MFxAGgWhj3X1nljD3r7nv23gIeF4QBC0kcHrz5mhOHuwh4itb4mh+LmhUg+u/XNQZWOi
	7WgeHhuwX3yUSa7MUKRUWPHsKgyVcKSFony0FF27Chtop5bIaMik0AD0otqEFd8gOyG1CT
	Y0rZVOFzf4XwGbHeNeFB2v4DWTMaw6wW79IiStNN8UoqZ8llCuQ5RTgZiLmdFDOWrLV3KZ
	/k1D/Xm6eRRYm7WAc7Zq/aTGRpJO35DOoBRku/BNZovBQv1E1UXJBk9VogT3qw==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710887405; a=rsa-sha256; cv=none;
	b=ZV5a0zpZDPJPzhHbMXjG+3vNicl1W3uhd2D/Yx+n9G87k5x5egxhYaz6KfxbPTTS9b9jGC
	dIPVkAvbDsZaxqZuxs0X1jVLf4PTOFviZrnqYzBliKvvk9nXfK7bLNV9t+ef4n2tHRTdqf
	5JYImdoxxGglVUjViu9uSPUCwGu9Ocr/jQs3KCdFAnEQMycUY4OqRO1BXy/qFrTSvhKgxg
	Pd8t6BSsk4NY+vU1aaEYrSUuWuxEwSU4cSaknTQdgqMZ8mC+LL6S0B66qClvbzf74vLNT+
	uTLnjBFNk+KXZUkdtHEnT3gTO8wjza662jGXHZ70ZKQybWYfed1/tWY88ObWRg==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1710887405;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=f+QMFC0KLBwab0U54tYdwcb8I5/mE+zCXsiUsJaXN8w=;
	b=IetqFClwehkhQWmuBz226J6xYqPduhRbD6QSjQ+9EH/6m9yEDA95a18FOkxKaaIylCWoMy
	Uh+gVwYjaJNBmQffzJ/omYv7j8ao1r9xagvBBfuK70IgwRGpqhAohSuqQrKwErVsOoX0Ht
	ZQJufyxi27UxsOBh2yrntXJvlyw+j88qqsfDGUtw9f78PtpF9OOVTJEv6GHxISFCaHNf1h
	coDVnIMP0pteuzoWZiB3ULzEl3W5Maup2xMeAvR2C/H4szc84kXbhh3UaXg3rDfVhyKJbX
	eZTfKFk1Nw+PqJ1Dw8usJtzUGER4DbRmJ/hQMGshyb7VRMYT337e80df6CWMFw==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tzmcs4nNtzQ48;
	Tue, 19 Mar 2024 22:30:05 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42JMU5Yf097427;
	Tue, 19 Mar 2024 22:30:05 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42JMU5fu097422;
	Tue, 19 Mar 2024 22:30:05 GMT
	(envelope-from git)
Date: Tue, 19 Mar 2024 22:30:05 GMT
Message-Id: <202403192230.42JMU5fu097422@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
        dev-commits-ports-main@FreeBSD.org
From: Jan Beich <jbeich@FreeBSD.org>
Subject: git: 96596ed77ada - main - accessibility/wl-gammarelay-rs:
  apply a crashfix
List-Id: Commit messages for all branches of the ports repository <dev-commits-ports-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help: <mailto:dev-commits-ports-all+help@freebsd.org>
List-Post: <mailto:dev-commits-ports-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-ports-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-ports-all+unsubscribe@freebsd.org>
Sender: owner-dev-commits-ports-all@freebsd.org
X-BeenThere: dev-commits-ports-all@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: jbeich
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 96596ed77adab94bd7c75da99cc6d95b12e9cfe8
Auto-Submitted: auto-generated

The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96596ed77adab94bd7c75da99cc6d95b12e9cfe8

commit 96596ed77adab94bd7c75da99cc6d95b12e9cfe8
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-03-19 22:13:33 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-03-19 22:28:33 +0000

    accessibility/wl-gammarelay-rs: apply a crashfix
    
    thread 'main' panicked at rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs:117:39:
    not yet implemented
---
 accessibility/wl-gammarelay-rs/Makefile             |  1 +
 .../wl-gammarelay-rs/files/patch-rustbus-service    | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/accessibility/wl-gammarelay-rs/Makefile b/accessibility/wl-gammarelay-rs/Makefile
index 23d940c47196..0a2802cd9d23 100644
--- a/accessibility/wl-gammarelay-rs/Makefile
+++ b/accessibility/wl-gammarelay-rs/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	wl-gammarelay-rs
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.4.0
+PORTREVISION=	1
 CATEGORIES=	accessibility wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
diff --git a/accessibility/wl-gammarelay-rs/files/patch-rustbus-service b/accessibility/wl-gammarelay-rs/files/patch-rustbus-service
new file mode 100644
index 000000000000..09b8ab171a54
--- /dev/null
+++ b/accessibility/wl-gammarelay-rs/files/patch-rustbus-service
@@ -0,0 +1,21 @@
+https://github.com/MaxVerevkin/wl-gammarelay-rs/issues/22
+https://github.com/MaxVerevkin/rustbus-service/commit/681b783ff093
+
+--- ../rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs.orig	2024-03-17 08:14:31 UTC
++++ ../rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs
+@@ -114,7 +114,14 @@ impl<D: 'static> Service<D> {
+                 MessageType::Signal => {
+                     eprintln!("todo: handle signal: {:?}", msg.dynheader.member);
+                 }
+-                MessageType::Error => todo!(),
++                MessageType::Error => {
++                    let error_name = msg.dynheader.error_name.expect("error without error_name");
++                    let error_message = msg.body.parser().get::<&str>().ok();
++                    eprintln!(
++                        "dbus error: {error_name}: {}",
++                        error_message.unwrap_or("<no message>")
++                    );
++                }
+                 MessageType::Call => {
+                     if let Some(cb) = get_call_handler(&self.root, &msg) {
+                         cb(MethodContext {