Skip to content

Commit 4509eb5

Browse files
committed
fix(rpm): require z3 runtime for package checks
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 6a31dbb commit 4509eb5

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/rpm-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
dnf install -y \
5757
packit rpm-build \
5858
rust cargo gcc gcc-c++ make cmake pkg-config \
59-
clang-devel z3-devel systemd-rpm-macros \
59+
clang-devel z3-libs z3-devel systemd-rpm-macros \
6060
pandoc python3-devel git-core \
6161
cargo-rpm-macros
6262

openshell.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ BuildRequires: make
4444
BuildRequires: cmake
4545
BuildRequires: pkg-config
4646
BuildRequires: clang-devel
47+
BuildRequires: z3-libs
4748
BuildRequires: z3-devel
4849
BuildRequires: systemd-rpm-macros
4950

python/openshell/release_formula_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def test_rpm_spec_uses_gateway_defaults_without_config_helper() -> None:
118118
repo_root = Path(__file__).resolve().parents[2]
119119
spec = (repo_root / "openshell.spec").read_text(encoding="utf-8")
120120

121+
assert "BuildRequires: z3-libs" in spec
122+
assert "Requires: z3-libs" in spec
121123
assert "init-gateway-config.sh" not in spec
122124
assert "init-pki.sh" not in spec
123125
assert "Environment=OPENSHELL_LOCAL_TLS_DIR=%%h/.local/state/openshell/tls" in spec

0 commit comments

Comments
 (0)