From 25680021ee2422f8b8b4075b3ab77af39126eecc Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 21 Oct 2025 11:25:00 +0800 Subject: [PATCH] debian: Use system packages for cephadm bundled dependencies Configure the Debian build to use CEPHADM_BUNDLED_DEPENDENCIES=deb, which instructs the cephadm build script to bundle dependencies from system-installed Debian packages instead of downloading from PyPI. This change addresses build failures in restricted network environments where Debian build tools do not permit internet access. By leveraging the Debian package support added in commit 9378a2988e1, the build now uses python3-markupsafe, python3-jinja2, and python3-yaml packages that are already installed as build dependencies. This approach mirrors the existing RPM packaging workflow, ensuring consistent behavior across different distribution package formats. Signed-off-by: Kefu Chai --- debian/control | 2 ++ debian/rules | 1 + 2 files changed, 3 insertions(+) diff --git a/debian/control b/debian/control index 954b3dd4dc1..7d30e1faa70 100644 --- a/debian/control +++ b/debian/control @@ -107,6 +107,8 @@ Build-Depends: automake, python3-requests , python3-scipy , python3-onelogin-saml2 , + python3-jinja2, + python3-markupsafe, python3-setuptools, python3-sphinx, python3-venv, diff --git a/debian/rules b/debian/rules index b935efaa8cd..ee4eff2bdc5 100755 --- a/debian/rules +++ b/debian/rules @@ -30,6 +30,7 @@ extraopts += -DWITH_CEPHFS_JAVA=ON extraopts += -DWITH_CEPHFS_SHELL=ON extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default extraopts += -DWITH_GRAFANA=ON +extraopts += -DCEPHADM_BUNDLED_DEPENDENCIES=deb ifeq ($(DEB_HOST_ARCH), amd64) extraopts += -DWITH_RBD_RWL=ON else -- 2.39.5