Skip to content

Commit 0821d40

Browse files
committed
OpenCV package does not distribute zlib. Roll back to manylinux version to presume binary compatibility.
1 parent 339bca5 commit 0821d40

File tree

4 files changed

+6
-72
lines changed

4 files changed

+6
-72
lines changed

docker/manylinux2014/Dockerfile_aarch64

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version: 20221205
1+
# Version: 20230117
22
# Image name: quay.io/opencv-ci/opencv-python-manylinux2014-aarch64
33

44
FROM quay.io/pypa/manylinux2014_aarch64:latest
@@ -11,28 +11,16 @@ ARG NASM_VERSION=2.15.04
1111
ARG OPENSSL_VERSION=1_1_1s
1212
ARG QT_VERSION=5.15.0
1313
ARG YASM_VERSION=1.3.0
14-
ARG ZLIB_VERSION=1.2.13
1514

1615
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
1716

1817
# epel-release need for aarch64 to get openblas packages
19-
RUN yum install bzip2-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel epel-release -y && \
18+
RUN yum install curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel epel-release -y && \
2019
yum install openblas-devel dejavu-sans-fonts -y && \
2120
cp /usr/include/lapacke/lapacke*.h /usr/include/ && \
2221
curl https://raw.githubusercontent.com/xianyi/OpenBLAS/v0.3.3/cblas.h -o /usr/include/cblas.h && \
2322
# libpng will be built from source
24-
yum remove libpng zlib-devel bzip2-devel -y
25-
26-
RUN mkdir ~/zlib_sources && \
27-
cd ~/zlib_sources && \
28-
curl -O -L https://www.zlib.net/zlib-${ZLIB_VERSION}.tar.gz && \
29-
tar -xf zlib-${ZLIB_VERSION}.tar.gz && \
30-
cd zlib-${ZLIB_VERSION} && \
31-
./configure --prefix=/usr/local && \
32-
make && \
33-
make install && \
34-
cd .. && \
35-
rm -rf ~/zlib_sources
23+
yum remove libpng -y
3624

3725
RUN mkdir ~/libpng_sources && \
3826
cd ~/libpng_sources && \

docker/manylinux2014/Dockerfile_x86_64

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version: 20221205
1+
# Version: 20230117
22
# Image name: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64
33

44
FROM quay.io/pypa/manylinux2014_x86_64:latest
@@ -16,23 +16,12 @@ ARG ZLIB_VERSION=1.2.13
1616
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
1717

1818
# epel-release need for aarch64 to get openblas packages
19-
RUN yum install bzip2-devel curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel epel-release -y && \
19+
RUN yum install curl-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel lapack-devel epel-release -y && \
2020
yum install openblas-devel dejavu-sans-fonts -y && \
2121
cp /usr/include/lapacke/lapacke*.h /usr/include/ && \
2222
curl https://raw.githubusercontent.com/xianyi/OpenBLAS/v0.3.3/cblas.h -o /usr/include/cblas.h && \
2323
# libpng will be built from source
24-
yum remove libpng zlib-devel bzip2-devel -y
25-
26-
RUN mkdir ~/zlib_sources && \
27-
cd ~/zlib_sources && \
28-
curl -O -L https://www.zlib.net/zlib-${ZLIB_VERSION}.tar.gz && \
29-
tar -xf zlib-${ZLIB_VERSION}.tar.gz && \
30-
cd zlib-${ZLIB_VERSION} && \
31-
./configure --prefix=/usr/local && \
32-
make && \
33-
make install && \
34-
cd .. && \
35-
rm -rf ~/zlib_sources
24+
yum remove libpng -y
3625

3726
RUN mkdir ~/libpng_sources && \
3827
cd ~/libpng_sources && \

patch_auditwheel_whitelist.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

travis_config.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ function bdist_wheel_cmd {
2323
TOOLS_PATH=/opt/_internal/pipx/venvs/auditwheel
2424
/opt/python/cp39-cp39/bin/python -m venv $TOOLS_PATH
2525
source $TOOLS_PATH/bin/activate
26-
python patch_auditwheel_whitelist.py
2726
deactivate
2827
fi
2928
if [ -n "$USE_CCACHE" -a -z "$BREW_BOOTSTRAP_MODE" ]; then ccache -s; fi

0 commit comments

Comments
 (0)