commit:     47e69c6030f657db9b8c4db84fc767d6e8b172e1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 14 08:12:22 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 14 08:12:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47e69c60

gnome-base/gnome-keyring: add Valgrind annotation support

The headers are needed to get Valgrind annotations.

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

 gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild | 8 ++++++--
 gnome-base/gnome-keyring/metadata.xml                 | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild 
b/gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild
index a4656870452a..ae869bbc2eaf 100644
--- a/gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild
+++ b/gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring";
 
 LICENSE="GPL-2+ LGPL-2+"
 SLOT="0"
-IUSE="pam selinux +ssh-agent systemd test"
+IUSE="pam selinux +ssh-agent systemd test valgrind"
 RESTRICT="!test? ( test )"
 KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 
~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
 
@@ -27,7 +27,10 @@ RDEPEND="
        selinux? ( sec-policy/selinux-gnome )
        ssh-agent? ( virtual/openssh )
 "
-DEPEND="${RDEPEND}"
+DEPEND="
+       ${RDEPEND}
+       valgrind? ( dev-util/valgrind )
+"
 BDEPEND="
        >=app-eselect/eselect-pinentry-0.5
        app-text/docbook-xml-dtd:4.3
@@ -58,6 +61,7 @@ src_configure() {
                $(use_enable selinux) \
                $(use_enable ssh-agent) \
                $(use_with systemd) \
+               $(use_enable valgrind) \
                --enable-doc
 }
 

diff --git a/gnome-base/gnome-keyring/metadata.xml 
b/gnome-base/gnome-keyring/metadata.xml
index 2e0522eb0b7f..0e1085a6f4b0 100644
--- a/gnome-base/gnome-keyring/metadata.xml
+++ b/gnome-base/gnome-keyring/metadata.xml
@@ -16,6 +16,7 @@
   </longdescription>
   <use>
     <flag name="ssh-agent">Use GNOME Keyring to unlock SSH keys. Recommended 
unless you are using ECDSA or Ed25519 keys.</flag>
+    <flag name="valgrind">Support Valgrind (<pkg>dev-util/valgrind</pkg>) with 
annotations to improve results for memcheck.</flag>
   </use>
   <upstream>
     <remote-id type="gnome-gitlab">GNOME/gnome-keyring</remote-id>

Reply via email to