@@ -406,7 +406,7 @@ RUN apt-get purge -y python-pip python3-pip python3-yaml
406
406
RUN pip2 install setuptools==40.8.0
407
407
RUN pip2 install wheel==0.35.1
408
408
RUN pip3 install setuptools==49.6.00
409
- RUN pip3 install wheel==0.35 .1
409
+ RUN pip3 install wheel==0.38 .1
410
410
411
411
# For building sonic-utilities
412
412
RUN pip2 install fastentrypoints
@@ -420,6 +420,19 @@ RUN pip3 install nose==1.3.7
420
420
RUN pip2 install mockredispy==2.9.3
421
421
RUN pip3 install mockredispy==2.9.3
422
422
423
+ # Fix CVE-2021-23437, need to build and install libjpeg-dev for armhf for pillow 9.4.0
424
+ {%- if CONFIGURED_ARCH == "armhf" %}
425
+ RUN TMP_DIR=$(mktemp -d) && \
426
+ cd $TMP_DIR && \
427
+ apt-get install -y nasm && \
428
+ apt-get source libjpeg-turbo && \
429
+ cd $(ls -d libjpeg-turbo*/) && \
430
+ dpkg-buildpackage -rfakeroot -b -us -uc > $TMP_DIR/libjpeg-dev.log && \
431
+ dpkg -i $TMP_DIR/libjpeg*-dev*.deb && \
432
+ rm -rf $TMP_DIR
433
+ {%- endif %}
434
+ RUN pip3 install pillow==9.4.0
435
+
423
436
# For Python 2 unit tests, we need ' mock ' . The last version of ' mock '
424
437
# which supports Python 2 is 3.0.5. In Python 3, ' mock ' is part of ' unittest '
425
438
# in the standard library
@@ -448,8 +461,8 @@ RUN pip3 install Jinja2==3.0.3
448
461
# For sonic-mgmt-framework
449
462
RUN pip2 install "PyYAML==5.4.1"
450
463
RUN pip3 install "PyYAML==5.4.1"
451
- RUN pip2 install "lxml==4.6.5 "
452
- RUN pip3 install "lxml==4.6.5 "
464
+ RUN pip2 install "lxml==4.9.1 "
465
+ RUN pip3 install "lxml==4.9.1 "
453
466
454
467
# For sonic-platform-common testing
455
468
RUN pip3 install redis
0 commit comments