Skip to content

Commit 3989418

Browse files
committed
feat(deps): Install componentorchestra library via dpkg
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
1 parent 5a87bc7 commit 3989418

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

cmake/FindOpalOrchestra.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
find_path(OPAL_ORCHESTRA_INCLUDE_DIR
88
NAMES RTAPI.h
99
PATHS
10-
/usr/opalrt/common/bin
10+
/usr/opalrt/common/include
11+
/usr/opalrt/exportedOrchestra/include
1112
)
1213

1314
find_library(OPAL_ORCHESTRA_LIBRARY
1415
NAMES OpalOrchestra
1516
PATHS
16-
/usr/opalrt/common/include
17+
/usr/opalrt/common/bin
18+
/usr/opalrt/exportedOrchestra/lib
1719
)
1820

1921
include(FindPackageHandleStandardArgs)

packaging/deps.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,17 @@ if ! pkg-config "libmodbus >= 3.1.0" && \
490490
popd
491491
fi
492492

493-
if ! find /usr/{local/,}{lib,bin} -name "libOpenDSSC.so" | grep -q . &&
493+
# Install componentorchestra
494+
if has_command dpkg && \
495+
! dpkg --status componentorchestra 2> /dev/null && \
496+
[ "$(uname -m)" == "x86_64" ] && \
497+
should_build "componentorchestra" "for the orchestra node-type"; then
498+
COMPONENT_ORCHESTRA_DEB_URL="https://blob.opal-rt.com/softwares/rt-lab-archives/componentorchestra_7.6.2_amd64.deb?sp=r&st=2024-10-30T06:31:59Z&se=2034-11-30T14:31:59Z&spr=https&sv=2022-11-02&sr=b&sig=cnKY8RxZf8hv91gWLIBG6iBGSVziXkKR3%2BOYIE6MSkI%3D"
499+
curl -L -o componentorchestra.deb "${COMPONENT_ORCHESTRA_DEB_URL}"
500+
dpkg --install componentorchestra.deb
501+
fi
502+
503+
if ! find /usr/{local/,}{lib,bin} -name "libOpenDSSC.so" 2>/dev/null | grep -q . &&
494504
should_build "opendss" "For opendss node-type"; then
495505
git svn clone -r 4020:4020 https://svn.code.sf.net/p/electricdss/code/trunk/VersionC OpenDSS-C
496506
mkdir -p OpenDSS-C/build

0 commit comments

Comments
 (0)