From: Kefu Chai Date: Fri, 19 Aug 2016 02:31:40 +0000 (+0800) Subject: debian: enable dh_python3 for python3 packages X-Git-Tag: v11.0.1~429^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49a4bd92f234ef2d148fc6046c7fce24b449b02c;p=ceph.git 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 --- diff --git a/debian/rules b/debian/rules index 766ece9baa68..b2120e6bdb4a 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: