summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-14 09:12:22 +0100
committerSam James <sam@gentoo.org>2023-05-14 09:12:22 +0100
commit47e69c6030f657db9b8c4db84fc767d6e8b172e1 (patch)
treea5d71713f8651c432e5f58148651a1a5c80f22c3 /gnome-base
parentdev-vcs/cssc: fix disable-valgrind flag (diff)
downloadgentoo-47e69c6030f657db9b8c4db84fc767d6e8b172e1.tar.gz
gentoo-47e69c6030f657db9b8c4db84fc767d6e8b172e1.tar.bz2
gentoo-47e69c6030f657db9b8c4db84fc767d6e8b172e1.zip
gnome-base/gnome-keyring: add Valgrind annotation support
The headers are needed to get Valgrind annotations. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gnome-base')
-rw-r--r--gnome-base/gnome-keyring/gnome-keyring-42.1-r2.ebuild8
-rw-r--r--gnome-base/gnome-keyring/metadata.xml1
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>