Skip to content

Commit a9692dc

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing openssl-devel to build maturin
``` Could not find openssl via pkg-config: pkg-config exited with status code 1 > PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags openssl The system library `openssl` required by crate `openssl-sys` was not found. The file `openssl.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. PKG_CONFIG_PATH contains the following: - /usr/local/lib/pkgconfig/ HINT: you may need to install a package such as openssl, openssl-dev or openssl-devel. ... Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the `OPENSSL_DIR` environment variable for the compilation process. Make sure you also have the development packages of openssl installed. For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora. ... warning: build failed, waiting for other jobs to finish... 💥 maturin failed Caused by: Failed to build a native library through cargo Caused by: Cargo build finished with "exit status: ```
1 parent 00a777f commit a9692dc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,15 @@ EOF
389389
RUN /bin/bash <<'EOF'
390390
set -Eeuxo pipefail
391391
if [ "${TARGETARCH}" = "ppc64le" ]; then
392-
# required to compile pillow
393392
packages=(
393+
# required to compile pillow
394394
zlib-devel libjpeg-turbo-devel
395395
# optional pillow deps https://pillow.readthedocs.io/en/latest/installation/building-from-source.html#external-libraries
396396
#libtiff-devel libwebp-devel openjpeg2-devel lcms2-devel freetype-devel
397397
#libimagequant-devel harfbuzz-devel fribidi-devel
398+
399+
# required to compile maturin
400+
openssl-devel
398401
)
399402
dnf install -y "${packages[@]}"
400403
fi

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,15 @@ EOF
383383
RUN /bin/bash <<'EOF'
384384
set -Eeuxo pipefail
385385
if [ "${TARGETARCH}" = "ppc64le" ]; then
386-
# required to compile pillow
387386
packages=(
387+
# required to compile pillow
388388
zlib-devel libjpeg-turbo-devel
389389
# optional pillow deps https://pillow.readthedocs.io/en/latest/installation/building-from-source.html#external-libraries
390390
#libtiff-devel libwebp-devel openjpeg2-devel lcms2-devel freetype-devel
391391
#libimagequant-devel harfbuzz-devel fribidi-devel
392+
393+
# required to compile maturin
394+
openssl-devel
392395
)
393396
dnf install -y "${packages[@]}"
394397
fi

0 commit comments

Comments
 (0)