mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Workaround for pycryptodome using RTLD_DEEPBIND
This breaks ASAN, see https://github.com/google/sanitizers/issues/611 So, patch it out when installing. Upstream pycryptodome issue: https://github.com/Legrandin/pycryptodome/issues/376
This commit is contained in:
parent
5f6dcd9e8b
commit
32e9dc32b2
@ -7,5 +7,10 @@ set -xe
|
|||||||
|
|
||||||
pacman -S --noconfirm --needed base-devel sudo git sip pyqt-builder chmlib icu jxrlib hunspell libmtp libusb libwmf optipng podofo python-apsw python-beautifulsoup4 python-cssselect python-css-parser python-dateutil python-jeepney python-dnspython python-dukpy python-feedparser python-html2text python-html5-parser python-lxml python-markdown python-mechanize python-msgpack python-netifaces python-unrardll python-pillow python-psutil python-pygments python-pyqt5 python-regex python-zeroconf python-pyqtwebengine qt5-x11extras qt5-svg qt5-imageformats udisks2 hyphen python-pychm python-pycryptodome speech-dispatcher python-sphinx python-urllib3 python-py7zr python-pip python-cchardet libstemmer
|
pacman -S --noconfirm --needed base-devel sudo git sip pyqt-builder chmlib icu jxrlib hunspell libmtp libusb libwmf optipng podofo python-apsw python-beautifulsoup4 python-cssselect python-css-parser python-dateutil python-jeepney python-dnspython python-dukpy python-feedparser python-html2text python-html5-parser python-lxml python-markdown python-mechanize python-msgpack python-netifaces python-unrardll python-pillow python-psutil python-pygments python-pyqt5 python-regex python-zeroconf python-pyqtwebengine qt5-x11extras qt5-svg qt5-imageformats udisks2 hyphen python-pychm python-pycryptodome speech-dispatcher python-sphinx python-urllib3 python-py7zr python-pip python-cchardet libstemmer
|
||||||
|
|
||||||
|
# See https://github.com/Legrandin/pycryptodome/issues/376
|
||||||
|
file_to_patch=$(pacman -Ql python-pycryptodome | grep _raw_api.py$ | cut -d" " -f2)
|
||||||
|
echo "Patching $file_to_patch"
|
||||||
|
sed -i 's/RTLD_DEEPBIND/RTLD_DEEPBIND_DISABLED_BY_KOVID/g' "$file_to_patch"
|
||||||
|
|
||||||
useradd -m ci
|
useradd -m ci
|
||||||
chown -R ci:users $GITHUB_WORKSPACE
|
chown -R ci:users $GITHUB_WORKSPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user