diff options
author | Sam James <sam@gentoo.org> | 2023-11-14 11:34:32 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-14 11:41:27 +0000 |
commit | c677b813ee160584b543a2f94802d544264cc41d (patch) | |
tree | 69a38669e91e8817e7233bca280f93a26cd5b193 /dev-libs | |
parent | sys-devel/m4: backport race condition fix for tests (diff) | |
download | gentoo-c677b813ee160584b543a2f94802d544264cc41d.tar.gz gentoo-c677b813ee160584b543a2f94802d544264cc41d.tar.bz2 gentoo-c677b813ee160584b543a2f94802d544264cc41d.zip |
dev-libs/libgcrypt: don't try to use mlock in tests
Two tests (t-secmem and t-sexp) fail if we try to use mlock in e.g. a
systemd-nspawn container which denies that privilege by default.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild | 8 | ||||
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild | 8 | ||||
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild | 8 | ||||
-rw-r--r-- | dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild | 8 |
4 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild index e966ec63af10..8e315d592a7f 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild @@ -157,6 +157,14 @@ multilib_src_compile() { multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf } +multilib_src_test() { + # t-secmem and t-sexp need mlock which requires extra privileges; nspawn + # at least disallows that by default. + local -x GCRYPT_IN_ASAN_TEST=1 + + default +} + multilib_src_install() { emake DESTDIR="${D}" install multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild index f50e95fd6d3b..d2dccd75aed5 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild @@ -160,6 +160,14 @@ multilib_src_compile() { multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf } +multilib_src_test() { + # t-secmem and t-sexp need mlock which requires extra privileges; nspawn + # at least disallows that by default. + local -x GCRYPT_IN_ASAN_TEST=1 + + default +} + multilib_src_install() { emake DESTDIR="${D}" install multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild index fb3af0f2b1e9..1f99ec03e9d3 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild @@ -158,6 +158,14 @@ multilib_src_compile() { multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf } +multilib_src_test() { + # t-secmem and t-sexp need mlock which requires extra privileges; nspawn + # at least disallows that by default. + local -x GCRYPT_IN_ASAN_TEST=1 + + default +} + multilib_src_install() { emake DESTDIR="${D}" install multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild index 30988830e25f..040fad866c53 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild @@ -123,6 +123,14 @@ multilib_src_compile() { multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C doc gcrypt.pdf } +multilib_src_test() { + # t-secmem and t-sexp need mlock which requires extra privileges; nspawn + # at least disallows that by default. + local -x GCRYPT_IN_ASAN_TEST=1 + + default +} + multilib_src_install() { emake DESTDIR="${D}" install multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf |