summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuval Lifshitz <yuvalif@yahoo.com>2019-09-04 12:47:00 +0200
committerYuval Lifshitz <yuvalif@yahoo.com>2019-09-04 15:14:56 +0200
commite17e4bfcc048abd1757c3efd12c7443169d67477 (patch)
tree31d8a2cb2fbe9d9de611774d9e744f86222de807
parentMerge pull request #29889 from smithfarm/wip-clay-typo-fwdport (diff)
downloadceph-e17e4bfcc048abd1757c3efd12c7443169d67477.tar.xz
ceph-e17e4bfcc048abd1757c3efd12c7443169d67477.zip
build-doc: allow building docs on fedora 30
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
-rwxr-xr-xadmin/build-doc3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/build-doc b/admin/build-doc
index 80bf14564f4..0c2a3a70f15 100755
--- a/admin/build-doc
+++ b/admin/build-doc
@@ -20,7 +20,8 @@ if command -v dpkg >/dev/null; then
exit 1
fi
elif command -v yum >/dev/null; then
- for package in python36-devel python36-pip python36-virtualenv doxygen ditaa ant libxml2-devel libxslt-devel python36-Cython graphviz; do
+ python_package="python$(rpm --eval '%{python3_pkgversion}')"
+ for package in "$python_package"-devel "$python_package"-pip "$python_package"-virtualenv doxygen ditaa ant libxml2-devel libxslt-devel "$python_package"-Cython graphviz; do
if ! rpm -q --whatprovides $package >/dev/null ; then
missing="${missing:+$missing }$package"
fi