diff -Nru m2crypto-0.38.0/debian/changelog m2crypto-0.38.0/debian/changelog --- m2crypto-0.38.0/debian/changelog 2021-12-03 04:58:52.000000000 +0000 +++ m2crypto-0.38.0/debian/changelog 2022-06-14 18:38:36.000000000 +0000 @@ -1,3 +1,15 @@ +m2crypto (0.38.0-2+rpi1) bookworm-staging; urgency=medium + + [ Stefano Rivera ] + * Load legacy provider of openssl v3, to avoid segfault in tests when + m2crypto tests legacy things. Thanks Dimitri John Ledkov for the patch. + Closes: #1006508 + + [ Peter Michael Green] + * Disable testsuite. + + -- Peter Michael Green Tue, 14 Jun 2022 18:38:36 +0000 + m2crypto (0.38.0-2) unstable; urgency=medium * debian/tests/control diff -Nru m2crypto-0.38.0/debian/openssl.cnf m2crypto-0.38.0/debian/openssl.cnf --- m2crypto-0.38.0/debian/openssl.cnf 1970-01-01 00:00:00.000000000 +0000 +++ m2crypto-0.38.0/debian/openssl.cnf 2022-06-14 18:37:19.000000000 +0000 @@ -0,0 +1,14 @@ +openssl_conf = openssl_init + +[openssl_init] +providers = provider_sect + +[provider_sect] +default = default_sect +legacy = legacy_sect + +[default_sect] +activate = 1 + +[legacy_sect] +activate = 1 diff -Nru m2crypto-0.38.0/debian/rules m2crypto-0.38.0/debian/rules --- m2crypto-0.38.0/debian/rules 2021-12-03 04:58:52.000000000 +0000 +++ m2crypto-0.38.0/debian/rules 2022-06-14 18:38:36.000000000 +0000 @@ -6,6 +6,8 @@ export PYBUILD_TEST_ARGS=--ignore tests/test_ssl.py export PYBUILD_AFTER_BUILD_python3=PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' python3 -m sphinx -N doc debian/python-m2crypto-doc/usr/share/doc/python-m2crypto-doc/html +export OPENSSL_CONF=$(CURDIR)/debian/openssl.cnf + export http_proxy= export https_proxy= # override settings from pybuild, unset them is needed for tests @@ -17,3 +19,6 @@ rst2html -r 5 README.rst .pybuild/README.html LC_LANG=C.UTF-8 links -dump .pybuild/README.html > .pybuild/README dh_installdocs -A .pybuild/README + +override_dh_auto_test: + echo testsuite disabled diff -Nru m2crypto-0.38.0/debian/tests/python3-m2crypto m2crypto-0.38.0/debian/tests/python3-m2crypto --- m2crypto-0.38.0/debian/tests/python3-m2crypto 2021-12-03 04:58:52.000000000 +0000 +++ m2crypto-0.38.0/debian/tests/python3-m2crypto 2022-06-14 18:37:19.000000000 +0000 @@ -1,5 +1,6 @@ #!/bin/sh set -e +export OPENSSL_CONF=`pwd`/debian/openssl.cnf cp -a tests "$AUTOPKGTEST_TMP"/ cd "$AUTOPKGTEST_TMP" for py in $(py3versions -s); do echo "[*] testing $py:"; $py -Wd -m pytest -v -rs 2>&1; done