]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: install python3-devel for python related rpm macros
authorKefu Chai <kchai@redhat.com>
Thu, 10 Oct 2019 02:40:53 +0000 (10:40 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 10 Oct 2019 03:00:52 +0000 (11:00 +0800)
python3-devel depends on python-rpm-macros, which in turn depends on
python-srpm-macros. the latter offers `python3_pkgversion` macro, which
is necessary for prepare the build dependencies of rpm packages.

this change avoids the unnecessary `$yumdnf` calls, and to simplify the
code.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 53a536ca77baa3693512521d333c10bffa1b5165..7c4732efc306ca2d03170a59cfb3c611631cc650 100755 (executable)
@@ -372,7 +372,6 @@ else
                 $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
                 $SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
                 if test $ID = centos -a $MAJOR_VERSION = 7 ; then
-                   $SUDO $yumdnf install -y python36-devel
                    case "$ARCH" in
                        x86_64)
                            $SUDO yum -y install centos-release-scl
@@ -398,8 +397,8 @@ else
                 ;;
         esac
         munge_ceph_spec_in $with_seastar $for_make_check $DIR/ceph.spec
-        # for python3_pkgversion
-        $SUDO $yumdnf install -y python-srpm-macros
+        # for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel
+        $SUDO $yumdnf install -y python3-devel
         $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
         [ ${PIPESTATUS[0]} -ne 0 ] && exit 1
        if [ -n "$dts_ver" ]; then