From 95ee8c5b9eefef1d6e6c1ed45e9ec7758efb1e8c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 4 Apr 2019 12:07:25 +0800 Subject: [PATCH] rpm: pass %{python3_version} to cmake to force cmake to use the python3 and python3 modules for building python3 bindings on the debian side, it's okay to continue using "-DWITH_PYTHON3=ON", as - cmake does normalize "ON" to 3 - debian's cmake extension lives on /usr/lib/python3/dist-packages/ not in a specific /usr/lib/python3.x/dist-packages directory Signed-off-by: Kefu Chai (cherry picked from commit 7681a38ce51743a19ec5679d49b362f04e271ddb) --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 5844a5af3c5d..4981d69472ef 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1112,7 +1112,7 @@ ${CMAKE} .. \ -DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ -DWITH_MANPAGE=ON \ - -DWITH_PYTHON3=ON \ + -DWITH_PYTHON3=%{python3_version} \ -DWITH_MGR_DASHBOARD_FRONTEND=OFF \ %if %{with python2} -DWITH_PYTHON2=ON \ -- 2.47.3