diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-05-13 22:19:20 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-05-19 01:03:58 +0200 |
commit | a7efa314e0dfc8738a80b60e984eed762a98803b (patch) | |
tree | 043eb37b3f0933fdffda8661a9c5a9e614c17792 | |
parent | 70b7ddbb516c10624bedc87f3d4af887ad55bc19 (diff) | |
download | python-lxml-a7efa314e0dfc8738a80b60e984eed762a98803b.tar.gz |
Work around a bug in the configure script of libxslt. See https://gitlab.gnome.org/GNOME/libxslt/-/commit/90c34c8bb90e095a8a8fe8b2ce368bd9ff1837cc
-rw-r--r-- | buildlibxml.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/buildlibxml.py b/buildlibxml.py index f45c8608..169502bd 100644 --- a/buildlibxml.py +++ b/buildlibxml.py @@ -437,6 +437,15 @@ def build_libxml2xslt(download_dir, build_dir, if not has_current_lib("libxml2", libxml2_dir): cmmi(libxml2_configure_cmd, libxml2_dir, multicore, **call_setup) + # Fix up libxslt configure script (needed up to and including 1.1.34) + # https://gitlab.gnome.org/GNOME/libxslt/-/commit/90c34c8bb90e095a8a8fe8b2ce368bd9ff1837cc + with open(os.path.join(libxslt_dir, "configure"), 'rb') as f: + config_script = f.read() + if b' --libs print ' in config_script: + config_script = config_script.replace(b' --libs print ', b' --libs ') + with open(os.path.join(libxslt_dir, "configure"), 'wb') as f: + f.write(config_script) + # build libxslt libxslt_configure_cmd = configure_cmd + [ '--without-python', |