From d7771002ef9a455390aadbcc84287dd9b738c629 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 28 Aug 2021 00:14:55 +0800 Subject: [PATCH] cmake: use ceph repo with tag 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 --- cmake/modules/BuildFIO.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/BuildFIO.cmake b/cmake/modules/BuildFIO.cmake index 4b07e6816cd56..481f3edf09d22 100644 --- a/cmake/modules/BuildFIO.cmake +++ b/cmake/modules/BuildFIO.cmake @@ -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 /configure -- 2.39.5