From 49a4bd92f234ef2d148fc6046c7fce24b449b02c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 19 Aug 2016 10:31:40 +0800 Subject: [PATCH] debian: enable dh_python3 for python3 packages so we can use subvars like ${python3:Depends} in debian/control. this silences the warnings like: ``` warning: dpkg-gencontrol: Depends field of package python3-cephfs: unknown substitution variable ${python3:Depends} ``` Signed-off-by: Kefu Chai --- debian/rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 766ece9baa687..b2120e6bdb4a1 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,7 @@ ifeq ($(DEB_HOST_ARCH), armel) endif %: - dh $@ --buildsystem=cmake --with javahelper,python2,systemd --parallel + dh $@ --buildsystem=cmake --with javahelper,python2,python3,systemd --parallel override_dh_auto_configure: dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS) @@ -141,6 +141,12 @@ override_dh_python2: dh_python2 -p ceph-base dh_python2 -p ceph-osd +override_dh_python3: + for binding in rados cephfs rbd; do \ + dh_python3 -p python-$$binding; \ + done + dh_python3 -p python3-ceph-argparse + # do not run tests override_dh_auto_test: -- 2.39.5