Skip to content

Commit 83a9f60

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing libjpeg-turbo-devel to build pillow
``` The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation/basic-installation.html ```
1 parent fc4a3e8 commit 83a9f60

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,13 @@ RUN /bin/bash <<'EOF'
390390
set -Eeuxo pipefail
391391
if [ "${TARGETARCH}" = "ppc64le" ]; then
392392
# required to compile pillow
393-
dnf install -y zlib-devel
393+
packages=(
394+
zlib-devel libjpeg-turbo-devel
395+
# optional pillow deps https://pillow.readthedocs.io/en/latest/installation/building-from-source.html#external-libraries
396+
#libtiff-devel libwebp-devel openjpeg2-devel lcms2-devel freetype-devel
397+
#libimagequant-devel harfbuzz-devel fribidi-devel
398+
)
399+
dnf install -y "${packages[@]}"
394400
fi
395401
EOF
396402

jupyter/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,13 @@ RUN /bin/bash <<'EOF'
384384
set -Eeuxo pipefail
385385
if [ "${TARGETARCH}" = "ppc64le" ]; then
386386
# required to compile pillow
387-
dnf install -y zlib-devel
387+
packages=(
388+
zlib-devel libjpeg-turbo-devel
389+
# optional pillow deps https://pillow.readthedocs.io/en/latest/installation/building-from-source.html#external-libraries
390+
#libtiff-devel libwebp-devel openjpeg2-devel lcms2-devel freetype-devel
391+
#libimagequant-devel harfbuzz-devel fribidi-devel
392+
)
393+
dnf install -y "${packages[@]}"
388394
fi
389395
EOF
390396

0 commit comments

Comments
 (0)