]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
debian/rules: enable WITH_CRIMSON when pkg.ceph.crimson profile is set
authorKefu Chai <k.chai@proxmox.com>
Sat, 18 Oct 2025 14:23:56 +0000 (22:23 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 28 Oct 2025 15:29:14 +0000 (23:29 +0800)
Since commit 9b1d524839 ("debian: mark "crimson" specific deps with
"pkg.ceph.crimson""), crimson-specific build dependencies have been
gated by the Build-Profiles: <pkg.ceph.crimson> tag. However,
debian/rules was never updated to pass -DWITH_CRIMSON=ON when this
build profile is active.

This causes builds with the crimson profile enabled to fail during
dh_install, as the crimson-osd binary is never built but the install
file tries to package it:

  Failed to copy 'usr/bin/crimson-osd': No such file or directory
  dh_install: error: debian/ceph-crimson-osd.install returned exit code 127

Fix this by checking for pkg.ceph.crimson in DEB_BUILD_PROFILES and
enabling the CMake option accordingly, following the same pattern used
for pkg.ceph.arrow.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
debian/rules

index 99b8d5287379223987ff7038af6687fc79363346..8c0d38db4ea5dcabded36486c0c3b8367a0b4cdd 100755 (executable)
@@ -15,6 +15,9 @@ endif
 ifneq ($(filter pkg.ceph.arrow,$(DEB_BUILD_PROFILES)),)
   extraopts += -DWITH_SYSTEM_ARROW=ON
 endif
+ifneq ($(filter pkg.ceph.crimson,$(DEB_BUILD_PROFILES)),)
+  extraopts += -DWITH_CRIMSON=ON
+endif
 
 extraopts += -DWITH_JAEGER=ON
 extraopts += -DWITH_SYSTEM_UTF8PROC=ON