Skip to content

Commit fd2a4e4

Browse files
authored
Downgrade patchelf version from 0.18.0 to 0.17.2 (#295)
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 fd2a4e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ 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 patchelf==0.17.2
133133
"""
134134
else:
135135
df += """
@@ -143,13 +143,14 @@ def dockerfile_for_linux(output_file):
143143
curl \
144144
libcurl4-openssl-dev \
145145
libssl-dev \
146-
patchelf \
147146
python3-dev \
148147
python3-pip \
149148
git \
150149
gnupg \
151150
gnupg1
152151
152+
RUN pip3 install patchelf==0.17.2
153+
153154
# Install dependencies from
154155
# onnxruntime/dockerfiles/scripts/install_common_deps.sh.
155156
RUN apt update -q=2 \\

0 commit comments

Comments
 (0)