From af90a5fe618d96869ca7691c6b91ca0e7824c5fb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 17 Nov 2018 01:25:47 +0800 Subject: [PATCH] test/dashboard: fix segfault when importing dm.xmlsec.binding python-saml depends on dm.xmlsec.binding which is a python binding of xmlsec C library. but without -DXMLSEC_NO_SIZE_T the compiled dm.xmlsec.binding segfaults when `import dm.xmlsec.binding`. see https://github.com/onelogin/python-saml/issues/30 and https://github.com/4teamwork/ftw.saml2auth/issues/3 . in long term, we might want to switch to python-saml, see http://tracker.ceph.com/issues/37081 Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/tox.ini b/src/pybind/mgr/dashboard/tox.ini index 9e137693503..f1602ec8eb0 100644 --- a/src/pybind/mgr/dashboard/tox.ini +++ b/src/pybind/mgr/dashboard/tox.ini @@ -10,6 +10,7 @@ deps = py27: -r{toxinidir}/requirements-py27.txt py3: -r{toxinidir}/requirements-py3.txt setenv= + CFLAGS = -DXMLSEC_NO_SIZE_T UNITTEST = true WEBTEST_INTERACTIVE = false LD_LIBRARY_PATH = {toxinidir}/../../../../build/lib -- 2.39.5