Skip to content

Commit f2fbc82

Browse files
committed
fix (hook-timeseries-chronix-conversion) Add bzip2 and nlohmann-json dependency install in dockerfiles
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
1 parent 29d453c commit f2fbc82

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

packaging/deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ if ! cmake --find-package -DNAME=ghc_filesystem -DCOMPILER_ID=GNU -DLANGUAGE=CXX
602602
fi
603603

604604
# Build and install nlohmann/josn required for hook create_chronics
605-
if ! find ${PREFIX}/{include,share} -name "*nlohmann*" 2>/dev/null | grep -q . && \
605+
if ! pkg-config "nlohmann_json" && \
606606
should_build "nlohman_json" "for the delta-sharing node-type"; then
607607
git clone https://github.com/nlohmann/json.git json
608608
mkdir -p json/build
@@ -613,15 +613,15 @@ if ! find ${PREFIX}/{include,share} -name "*nlohmann*" 2>/dev/null | grep -q . &
613613
fi
614614

615615
# Build and install Bzip2 required for hook create_chronics
616-
if ! { [ -f /usr/local/include/bzlib.h ] && ldconfig -p | grep -q libbz2; } && \
616+
if ! pkg-config "bzip2" && \
617617
should_build "BZip2" "for create_chronics hook"; then
618618
git clone https://github.com/libarchive/bzip2.git bzip2
619619
mkdir -p bzip2/build
620620
pushd bzip2/build
621621
cmake ..
622622
make ${MAKE_OPTS} install
623623
popd
624-
fi
624+
fi
625625

626626
popd >/dev/null
627627

packaging/docker/Dockerfile.debian

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ RUN apt-get update && \
5252
libssl-dev \
5353
libusb-1.0-0-dev \
5454
libzmq3-dev \
55-
uuid-dev
55+
uuid-dev \
56+
libbz2-dev \
57+
nlohmann-json3-dev
5658

5759
# Install unpackaged dependencies from source
5860
ADD packaging/patches /deps/patches

packaging/docker/Dockerfile.debian-multiarch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ RUN apt-get update && \
5858
libssl-dev:${ARCH} \
5959
libusb-1.0-0-dev:${ARCH} \
6060
libzmq3-dev:${ARCH} \
61-
uuid-dev:${ARCH}
61+
uuid-dev:${ARCH} \
62+
nlohmann-json3-dev:${ARCH} \
63+
libbz2:${ARCH}
6264

6365
ADD cmake/toolchains/debian-${ARCH}.cmake /
6466

packaging/docker/Dockerfile.fedora

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ RUN dnf -y install \
6464
protobuf-c-devel \
6565
protobuf-devel \
6666
spdlog-devel \
67-
zeromq-devel
67+
zeromq-devel \
68+
bzip2-devel \
69+
json-devel
6870

6971
# Install unpackaged dependencies from source
7072
# TODO: We currently need to build with GCC 14 to get OpenDSSC working

packaging/docker/Dockerfile.rocky

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ RUN dnf -y install \
5353
nanomsg-devel \
5454
libnice-devel \
5555
libre-devel \
56-
libwebsockets-devel
56+
libwebsockets-devel \
57+
bzip2-devel \
58+
json-devel
5759

5860
# Install unpackaged dependencies from source
5961
ADD packaging/patches /deps/patches

packaging/docker/Dockerfile.rocky9

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ RUN dnf -y install \
4848
lua-devel \
4949
hiredis-devel \
5050
libnice-devel \
51-
libmodbus-devel
51+
libmodbus-devel \
52+
bzip2-devel \
53+
json-devel
5254

5355
# Install unpackaged dependencies from source
5456
ADD packaging/patches /deps/patches

packaging/docker/Dockerfile.ubuntu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ RUN apt-get update && \
5959
libusb-1.0-0-dev \
6060
libwebsockets-dev \
6161
libzmq3-dev \
62-
uuid-dev
62+
uuid-dev \
63+
libbz2-dev \
64+
nlohmann-json-dev
6365

6466
# Install unpackaged dependencies from source
6567
ADD packaging/patches /deps/patches

0 commit comments

Comments
 (0)