diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-08-17 15:06:35 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-08-17 15:07:10 +0200 |
commit | 657b220f0313ff9a1f1ba2a476e71597f4d67202 (patch) | |
tree | 3072d5ae95d2e3e8b57d4eadc8e0b2036d31cefc /dev-libs/libstrophe | |
parent | sys-apps/busybox: drop 1.35.0-r2 (diff) | |
download | gentoo-657b220f0313ff9a1f1ba2a476e71597f4d67202.tar.gz gentoo-657b220f0313ff9a1f1ba2a476e71597f4d67202.tar.bz2 gentoo-657b220f0313ff9a1f1ba2a476e71597f4d67202.zip |
dev-libs/libstrophe: fix tests
Closes: https://bugs.gentoo.org/912410
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-libs/libstrophe')
-rw-r--r-- | dev-libs/libstrophe/files/libstrophe-0.12.3-allow-tests-when-static.patch | 59 | ||||
-rw-r--r-- | dev-libs/libstrophe/libstrophe-0.12.3.ebuild | 4 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-libs/libstrophe/files/libstrophe-0.12.3-allow-tests-when-static.patch b/dev-libs/libstrophe/files/libstrophe-0.12.3-allow-tests-when-static.patch new file mode 100644 index 000000000000..b351bb0137c7 --- /dev/null +++ b/dev-libs/libstrophe/files/libstrophe-0.12.3-allow-tests-when-static.patch @@ -0,0 +1,59 @@ +From 9eba8e873847b6ed6e4aa8e9e887d45c2351f6ed Mon Sep 17 00:00:00 2001 +From: Steffen Jaeckel <jaeckel-floss@eyet-services.de> +Date: Wed, 9 Aug 2023 13:34:18 +0200 +Subject: [PATCH] Allow running tests when static library is disabled + +We then only run a subset of the tests, but still better than failing to +build. + +Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de> +--- a/Makefile.am ++++ b/Makefile.am +@@ -175,23 +175,29 @@ endif + + + ## Tests +-TESTS = \ ++STATIC_TESTS = \ + tests/check_parser \ ++ tests/test_hash \ ++ tests/test_jid \ ++ tests/test_ctx \ ++ tests/test_send_queue \ ++ tests/test_string \ ++ tests/test_resolver ++ ++TESTS = \ + tests/test_sha1 \ + tests/test_sha256 \ + tests/test_sha512 \ + tests/test_md5 \ + tests/test_rand \ + tests/test_scram \ +- tests/test_ctx \ + tests/test_base64 \ +- tests/test_hash \ +- tests/test_jid \ +- tests/test_send_queue \ + tests/test_snprintf \ +- tests/test_string \ +- tests/test_stanza \ +- tests/test_resolver ++ tests/test_stanza ++ ++if !DISABLE_STATIC ++TESTS += $(STATIC_TESTS) ++endif + + if !DISABLE_TLS + TESTS += tests/test_xmppaddr +--- a/configure.ac ++++ b/configure.ac +@@ -256,6 +256,7 @@ m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], + + AM_CONDITIONAL([PARSER_EXPAT], [test x$with_parser != xlibxml2]) + AM_CONDITIONAL([DISABLE_TLS], [test x$enable_tls = xno]) ++AM_CONDITIONAL([DISABLE_STATIC], [test x$enable_static = xno]) + AM_CONDITIONAL([NEED_SNPRINTF], [test x$have_snprintf = xno]) + AM_CONDITIONAL([TLS_WITH_GNUTLS], [test x$with_gnutls = xyes]) + AM_CONDITIONAL([TLS_WITH_SCHANNEL], [test x$with_schannel = xyes]) diff --git a/dev-libs/libstrophe/libstrophe-0.12.3.ebuild b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild index 84880fd6c622..e1970434de69 100644 --- a/dev-libs/libstrophe/libstrophe-0.12.3.ebuild +++ b/dev-libs/libstrophe/libstrophe-0.12.3.ebuild @@ -30,6 +30,10 @@ BDEPEND=" DOCS=( ChangeLog ) +PATCHES=( + "${FILESDIR}/${PN}-0.12.3-allow-tests-when-static.patch" +) + src_configure() { # shellcheck disable=SC2207 local myeconf=( |