From: Kefu Chai Date: Fri, 16 Nov 2018 17:25:47 +0000 (+0800) Subject: test/dashboard: fix segfault when importing dm.xmlsec.binding X-Git-Tag: v14.1.0~889^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=af90a5fe618d96869ca7691c6b91ca0e7824c5fb;p=ceph.git 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 --- diff --git a/src/pybind/mgr/dashboard/tox.ini b/src/pybind/mgr/dashboard/tox.ini index 9e1376935039..f1602ec8eb0a 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