Skip to content

Commit 01a2047

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 e5bf561 commit 01a2047

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)