From ab7607e1275eaee5da839da049690f17f0de5bdc Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 16 Jan 2023 16:15:31 +0100 Subject: [PATCH] rpmbuild: Try to initialize submodules prior running the build In case someone clones bare SPDK repo and attempts to execute the RPM build, it will fail due to missing submodules. Since it's cheap, just make sure submodules are in place before the build starts. Signed-off-by: Michal Berger Change-Id: I910949ae5fc5ef19c40f4abfc6f39ebb3fe8929a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16307 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Kamil Godzwon --- rpmbuild/spdk.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/rpmbuild/spdk.spec b/rpmbuild/spdk.spec index 107de827d..4ac8bc236 100644 --- a/rpmbuild/spdk.spec +++ b/rpmbuild/spdk.spec @@ -85,6 +85,7 @@ _PKGDEP_OPTS="$_PKGDEP_OPTS --rbd" %endif # Rely mainly on CONFIG +git submodule update --init ./configure --disable-unit-tests --disable-tests %{configure} make %{make} make DESTDIR=%{buildroot} install %{make}