From d19ead1f76425e373f9b826c79b7efb8217e3d49 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 15 Jul 2021 11:33:23 +0200 Subject: [PATCH] pkgdep/git: Patch refspdk repos 36b5a69bb0 "trace: fix the snprintf warning issue" 2ac1521581 "test/compress: fix Wstringop-overflow warnings" These patches are needed to make sure SPDK's refs can be compiled under GCC 11 (e.g. fedora34). Signed-off-by: Michal Berger Change-Id: I7e3800351b02506c99ba8ac7f4d40312867e1ab9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8790 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Tomasz Zawadzki Reviewed-by: Ziye Yang Reviewed-by: Jim Harris --- test/common/config/pkgdep/git | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index c2e6c817c..e14059469 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -40,6 +40,13 @@ function install_refspdk() { git -C "$output_dir" checkout "$release" git -C "$output_dir" submodule update --init + if ((gcc_version >= 11)) && le "${release#v}" 21.04; then + git -C "$output_dir" config --global user.name "spdk" + git -C "$output_dir" config --global user.email "hotpatch@spdk.io" + curl -s https://github.com/spdk/spdk/commit/36b5a69bb0699694b53a2f08a13cc0de620450a9.patch | git -C "$output_dir" am + curl -s https://github.com/spdk/spdk/commit/2ac152158116a17b863270a4731977d9ddedf50d.patch | git -C "$output_dir" am + fi + cat > $HOME/autorun-spdk.conf <<- EOF SPDK_BUILD_SHARED_OBJECT=1 SPDK_TEST_AUTOBUILD=1