Skip to content

Commit b16e5bc

Browse files
authored
[Pillow] Removed python symlink (#12326)
Pillow's oss-fuzz is currently failing, because Pillow main has [dropped support for Python 3.8](python-pillow/Pillow#8183). #12027 attempts to resolve this by upgrading the base builder to Python 3.10, but the [latest status update](#12027 (comment)) over there says that Pillow [fails in that branch with](https://oss-fuzz-gcb-logs.storage.googleapis.com/log-e19625fb-a984-47b1-be32-f92b4c76fc7f.txt) > Step 17: Step 6/11 : RUN ln -s /usr/local/bin/python3 /usr/local/bin/python && ln -s /bin/true /usr/local/bin/yum_install && ln -s /bin/true /usr/local/bin/yum && cd $SRC/Pillow && git submodule update --init wheels/multibuild && bash $SRC/build_depends.sh Step 17: ---> Running in 932abd1dc89a Step 17: �[91mln: failed to create symbolic link '/usr/local/bin/python': File exists So this pull request removes the python symlink in order to try and help. cc @hugovk --------- Co-authored-by: Andrew Murray <[email protected]>
1 parent e1163fe commit b16e5bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/pillow/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ RUN $SRC/Pillow/Tests/oss-fuzz/build_dictionaries.sh
2929

3030
COPY build_depends.sh $SRC
3131

32-
RUN ln -s /usr/local/bin/python3 /usr/local/bin/python \
33-
&& ln -s /bin/true /usr/local/bin/yum_install \
32+
RUN ln -s /bin/true /usr/local/bin/yum_install \
3433
&& ln -s /bin/true /usr/local/bin/yum \
3534
&& cd $SRC/Pillow \
3635
&& git submodule update --init wheels/multibuild \
@@ -44,7 +43,8 @@ RUN python3 -m pip install --upgrade pip
4443
COPY build.sh $SRC/
4544

4645
# pillow optional runtime dependencies
47-
RUN apt-get install -y \
46+
RUN apt-get update && \
47+
apt-get install -y \
4848
python3-tk \
4949
tcl8.6-dev \
5050
tk8.6-dev

0 commit comments

Comments
 (0)