Skip to content

Commit 15c4ce4

Browse files
committed
Downgrade patchelf version from 0.18.0 to 0.17.2 due to patchelf regression
Patchelf shipped a regression in 0.18.0 and has since yanked the pypi release pointing to 0.17.2 as the most recent version. However, 0.18.0 is still the version shipped in both the apt and yum repositories, thus we must use pip to install the version we want. See mayeut/patchelf-pypi#87
1 parent 180420c commit 15c4ce4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,14 @@ def dockerfile_for_linux(output_file):
123123
zip \
124124
ca-certificates \
125125
curl \
126-
patchelf \
127126
python3-pip \
128127
git \
129128
gnupg \
130129
gnupg1 \
131130
openssl-devel
132131
132+
RUN pip3 install --upgrade pip \
133+
&& pip3 install patchelf==0.17.2
133134
"""
134135
else:
135136
df += """
@@ -143,13 +144,15 @@ def dockerfile_for_linux(output_file):
143144
curl \
144145
libcurl4-openssl-dev \
145146
libssl-dev \
146-
patchelf \
147147
python3-dev \
148148
python3-pip \
149149
git \
150150
gnupg \
151151
gnupg1
152152
153+
RUN pip3 install --upgrade pip \
154+
&& pip3 install patchelf==0.17.2
155+
153156
# Install dependencies from
154157
# onnxruntime/dockerfiles/scripts/install_common_deps.sh.
155158
RUN apt update -q=2 \\

0 commit comments

Comments
 (0)