Skip to content

Commit 999d9a7

Browse files
authored
Updated xz to 5.8.0 on manylinux2014 by removing po4a dependency (#8848)
1 parent b1f7ba0 commit 999d9a7

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ HARFBUZZ_VERSION=11.0.0
4242
LIBPNG_VERSION=1.6.47
4343
JPEGTURBO_VERSION=3.1.0
4444
OPENJPEG_VERSION=2.5.3
45-
if [[ $MB_ML_VER == 2014 ]]; then
46-
XZ_VERSION=5.6.4
47-
else
48-
XZ_VERSION=5.8.0
49-
fi
45+
XZ_VERSION=5.8.0
5046
TIFF_VERSION=4.7.0
5147
LCMS2_VERSION=2.17
5248
ZLIB_VERSION=1.3.1
@@ -56,6 +52,20 @@ BZIP2_VERSION=1.0.8
5652
LIBXCB_VERSION=1.17.0
5753
BROTLI_VERSION=1.1.0
5854

55+
if [[ $MB_ML_VER == 2014 ]]; then
56+
function build_xz {
57+
if [ -e xz-stamp ]; then return; fi
58+
yum install -y gettext-devel
59+
fetch_unpack https://tukaani.org/xz/xz-$XZ_VERSION.tar.gz
60+
(cd xz-$XZ_VERSION \
61+
&& ./autogen.sh --no-po4a \
62+
&& ./configure --prefix=$BUILD_PREFIX \
63+
&& make -j4 \
64+
&& make install)
65+
touch xz-stamp
66+
}
67+
fi
68+
5969
function build_pkg_config {
6070
if [ -e pkg-config-stamp ]; then return; fi
6171
# This essentially duplicates the Homebrew recipe

0 commit comments

Comments
 (0)