]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use ceph repo with tag
authorKefu Chai <tchaikov@gmail.com>
Fri, 27 Aug 2021 16:14:55 +0000 (00:14 +0800)
committerTim Serong <tserong@suse.com>
Fri, 19 Aug 2022 07:39:51 +0000 (17:39 +1000)
to address following warning:

fatal: reference is not a tree: 7f02f21f53ccd5e2448086f8e9015489693dd2dc
CMake Error at /home/jenkins-build/build/workspace/ceph-pull-requests/build/fio_ext-prefix/tmp/fio_ext-gitclone.cmake:40 (message):
  Failed to checkout tag: '7f02f21f53ccd5e2448086f8e9015489693dd2dc'

it seems that the shallow option does not work with a sha1 tag option,
let's continue using the ceph repo with a tag.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit d7771002ef9a455390aadbcc84287dd9b738c629)

cmake/modules/BuildFIO.cmake

index dcd2f312dd9e8bedf35661e7a677c2162baf08a6..a64d639221700b3c7909d7c6a8d9f84e10be02fa 100644 (file)
@@ -13,10 +13,10 @@ function(build_fio)
   file(MAKE_DIRECTORY ${source_dir})
   ExternalProject_Add(fio_ext
     UPDATE_COMMAND "" # this disables rebuild on each run
-    GIT_REPOSITORY "https://github.com/axboe/fio.git"
+    GIT_REPOSITORY "https://github.com/ceph/fio.git"
     GIT_CONFIG advice.detachedHead=false
     GIT_SHALLOW 1
-    GIT_TAG "7f02f21f53ccd5e2448086f8e9015489693dd2dc"
+    GIT_TAG "fio-3.27-cxx"
     SOURCE_DIR ${source_dir}
     BUILD_IN_SOURCE 1
     CONFIGURE_COMMAND <SOURCE_DIR>/configure