From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1518306-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0A28F158164
	for <garchives@archives.gentoo.org>; Sun, 14 May 2023 00:31:55 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1284BE07F2;
	Sun, 14 May 2023 00:31:54 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C2C26E07F2
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 00:31:53 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9B45C340DD9
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 00:31:52 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id F3FC0A5A
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 00:31:50 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1684024278.90a396ff71deb6800c74d33d27a9c47809b7b99c.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dbus/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/dbus/dbus-1.15.4-r1.ebuild sys-apps/dbus/metadata.xml
X-VCS-Directories: sys-apps/dbus/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 90a396ff71deb6800c74d33d27a9c47809b7b99c
X-VCS-Branch: master
Date: Sun, 14 May 2023 00:31:50 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: caba526e-6d8e-4953-b332-dee6b6c20af7
X-Archives-Hash: 6961e928b2b0fa7edf8c2f1bfd702c76

commit:     90a396ff71deb6800c74d33d27a9c47809b7b99c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 23:12:24 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 14 00:31:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90a396ff

sys-apps/dbus: add Valgrind annotation support

The headers are needed to get Valgrind annotations.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/dbus/dbus-1.15.4-r1.ebuild | 4 +++-
 sys-apps/dbus/metadata.xml          | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-apps/dbus/dbus-1.15.4-r1.ebuild b/sys-apps/dbus/dbus-1.15.4-r1.ebuild
index 9f1bd7c14747..9bf17a2cd2b7 100644
--- a/sys-apps/dbus/dbus-1.15.4-r1.ebuild
+++ b/sys-apps/dbus/dbus-1.15.4-r1.ebuild
@@ -25,7 +25,7 @@ SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.xz"
 LICENSE="|| ( AFL-2.1 GPL-2 )"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="debug doc elogind selinux static-libs systemd test X"
+IUSE="debug doc elogind selinux static-libs systemd test valgrind X"
 RESTRICT="!test? ( test )"
 
 REQUIRED_USE="?? ( elogind systemd )"
@@ -57,6 +57,7 @@ DEPEND="${COMMON_DEPEND}
 		${PYTHON_DEPS}
 		>=dev-libs/glib-2.40:2
 	)
+	valgrind? ( >=dev-util/valgrind-3.6 )
 	X? ( x11-base/xorg-proto )
 "
 RDEPEND="${COMMON_DEPEND}
@@ -149,6 +150,7 @@ multilib_src_configure() {
 		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
 		--with-systemduserunitdir="$(systemd_get_userunitdir)"
 		--with-dbus-user=messagebus
+		$(multilib_native_use_with valgrind)
 		$(use_with X x)
 	)
 

diff --git a/sys-apps/dbus/metadata.xml b/sys-apps/dbus/metadata.xml
index 010eeadbdd2c..7dc4c23f223c 100644
--- a/sys-apps/dbus/metadata.xml
+++ b/sys-apps/dbus/metadata.xml
@@ -7,6 +7,7 @@
 	<use>
 		<flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for session tracking.</flag>
 		<flag name="systemd">Build with <pkg>sys-apps/systemd</pkg> at_console support</flag>
+		<flag name="valgrind">Support Valgrind for <pkg>dev-util/valgrind</pkg> annotations to improve results for memcheck.</flag>
 	</use>
 	<upstream>
 		<remote-id type="cpe">cpe:/a:freedesktop:dbus</remote-id>