Commit e2faef47 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

pkgdep: Install liburing regardless if it's in the ld cache



Some distros may already provide liburing (e.g. fedora34) as a
package. In case given system has it installed, without the devel
portion, we would skip building our own version leaving system
without proper include files needed for the tests.

Signed-off-by: default avatarMichal Berger <michalx.berger@intel.com>
Change-Id: I7b07ba8d1c3c6b97d6b114935dfe472cc7902bf6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9543


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent f105046f
Loading
Loading
Loading
Loading
+9 −13
Original line number Diff line number Diff line
@@ -4,9 +4,6 @@ install_liburing() {
	local GIT_REPO_LIBURING=https://github.com/axboe/liburing.git
	local liburing_dir=/usr/local/src/liburing

	if [[ $(ldconfig -p) == *liburing.so* ]]; then
		echo "liburing is already installed. skipping"
	else
	if [[ -d $liburing_dir ]]; then
		echo "liburing source already present, not cloning"
	else
@@ -18,7 +15,6 @@ install_liburing() {
	(cd "$liburing_dir" && ./configure --libdir=/usr/lib64 && make install)
	echo /usr/lib64 > /etc/ld.so.conf.d/spdk-liburing.conf
	ldconfig
	fi
}

install_shfmt() {