commit:     530887720157dc3f205273cedc92128150e7813d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 18 21:03:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 21:03:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53088772

net-misc/ntpsec: skip test on s390x

It seems to depend on OpenSSL allocation behaviour. Skip as Debian
have done.

Bug: https://bugs.gentoo.org/966091
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../ntpsec/files/ntpsec-1.2.4-s390x-tests.patch    | 28 ++++++++++++++++++++++
 net-misc/ntpsec/ntpsec-1.2.4.ebuild                |  1 +
 net-misc/ntpsec/ntpsec-9999.ebuild                 |  1 +
 3 files changed, 30 insertions(+)

diff --git a/net-misc/ntpsec/files/ntpsec-1.2.4-s390x-tests.patch 
b/net-misc/ntpsec/files/ntpsec-1.2.4-s390x-tests.patch
new file mode 100644
index 000000000000..d838ec70f3bd
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-1.2.4-s390x-tests.patch
@@ -0,0 +1,28 @@
+https://gitlab.com/NTPsec/ntpsec/-/issues/846
+https://sources.debian.org/patches/ntpsec/1.2.3+dfsg1-8/disable-libaes-siv-malloc-test.patch/
+
+Bug: https://github.com/dfoxfranke/libaes_siv/issues/17
+Bug-Debian: https://bugs.debian.org/1102745
+Bug-NTPsec: https://gitlab.com/NTPsec/ntpsec/-/issues/846
+Origin: vendor
+Author: Richard Laager <[email protected]>
+Last-Update: 2025-04-14
+--- a/libaes_siv/tests.c
++++ b/libaes_siv/tests.c
+@@ -572,7 +572,16 @@
+ }
+ 
+ int main(void) {
++/* This is disabled, because on some platforms, OpenSSL presumably makes an
++ * allocation right away, so CRYPTO_set_mem_functions() fails.
++ *
++ * https://bugs.debian.org/1102745
++ * https://gitlab.com/NTPsec/ntpsec/-/issues/846
++ * https://github.com/dfoxfranke/libaes_siv/issues/17
++ */
++#if 0
+         test_malloc_failure();
++#endif
+       test_cleanup_before_free();
+         test_vector_1();
+         test_vector_2();

diff --git a/net-misc/ntpsec/ntpsec-1.2.4.ebuild 
b/net-misc/ntpsec/ntpsec-1.2.4.ebuild
index 7752288a8d59..c90e1f83aaae 100644
--- a/net-misc/ntpsec/ntpsec-1.2.4.ebuild
+++ b/net-misc/ntpsec/ntpsec-1.2.4.ebuild
@@ -73,6 +73,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
        "${FILESDIR}/${PN}-1.2.2-logrotate.patch"
        "${FILESDIR}/${PN}-1.2.4-pep517-no-egg.patch"
+       "${FILESDIR}/${PN}-1.2.4-s390x-tests.patch"
 )
 
 WAF_BINARY="${S}/waf"

diff --git a/net-misc/ntpsec/ntpsec-9999.ebuild 
b/net-misc/ntpsec/ntpsec-9999.ebuild
index 21d3dfb63db6..ebb65ee7d04a 100644
--- a/net-misc/ntpsec/ntpsec-9999.ebuild
+++ b/net-misc/ntpsec/ntpsec-9999.ebuild
@@ -73,6 +73,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
        "${FILESDIR}/${PN}-1.2.2-logrotate.patch"
        "${FILESDIR}/${PN}-1.2.4-pep517-no-egg.patch"
+       "${FILESDIR}/${PN}-1.2.4-s390x-tests.patch"
 )
 
 WAF_BINARY="${S}/waf"

Reply via email to