catacomb/__init__.py: Awful bodge for symbol conflict.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 14 Jul 2017 22:19:41 +0000 (23:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:11 +0000 (22:18 +0000)
commit8854bd74bdb76307df1d695b6820ab4e25b7088f
treea4629e016f2578d1d328d78ae3406186eafc3bb7
parented7fea3d6f7f374818adee895174f8b09d5da016
catacomb/__init__.py: Awful bodge for symbol conflict.

It seems that, in Debian jessie and later, the main Python binary now
exports `md5_init' and friends.  Unfortunately, this overrides
Catacomb's existing `md5_init' with a rather different version, and the
result is a segfault (on i386) or wrong answers (on amd64).

So, as an unpleasant bodge (while this broken thing makes its way
through Debian, see bug #868366), try to force the `RTLD_DEEPBIND' flag
when loading the module.  This is unfortunate, because Python doesn't
actually advertise this flag, at least in my version.

(cherry picked from commit a3ae4a9f590ef84d8e6eac0bc94873a9fd943073)
catacomb/__init__.py