]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/dashboard: fix segfault when importing dm.xmlsec.binding 25139/head
authorKefu Chai <kchai@redhat.com>
Fri, 16 Nov 2018 17:25:47 +0000 (01:25 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 16 Nov 2018 17:25:50 +0000 (01:25 +0800)
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 <kchai@redhat.com>
src/pybind/mgr/dashboard/tox.ini

index 9e13769350393d1fb0313254b2f71453e241e852..f1602ec8eb0ac6420acd3edd4d6981e77a6f6079 100644 (file)
@@ -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