Commit 5af08adc authored by Boris Glimcher's avatar Boris Glimcher Committed by Jim Harris
Browse files

scripts/pkgdep: fix markdownlint for ubuntu focal



The gem mdl 0.11.0 depends on mixlib-shellout,
which requires Ruby ≥ 3.0.

While 20.04.6 LTS (Focal Fossa) has Ruby 2.7.0.

tested using:
```
    ./scripts/pkgdep.sh --all
    ./configure --enable-coverage
    source ./scripts/common.sh
    make -j
```

and those images:
  - docker.io/library/ubuntu:20.04
  - docker.io/library/ubuntu:22.04
  - docker.io/library/ubuntu:24.04
  - docker.io/library/debian:12.12
  - docker.io/library/debian:11.11

Change-Id: I38d8c176ff63c15c749c367b41472abf176a033c
Signed-off-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26618


Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarMichal Berger <michal.berger@nutanix.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@nutanix.com>
parent 54c7f8ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -260,6 +260,8 @@ if [[ $INSTALL_DEV_TOOLS == true ]]; then
	install_shfmt
	install_spdk_bash_completion
	if [[ $ID != centos && $ID != rocky && $ID != sles ]]; then
		# The gem mdl 0.11.0 depends on mixlib-shellout, which requires Ruby ≥ 3.0. While 20.04.6 LTS (Focal Fossa) has Ruby 2.7.0.
		[[ $ID == ubuntu && $VERSION_CODENAME == focal ]] && gem install mixlib-shellout -v 3.3.8
		install_markdownlint
	else
		echo "mdl not supported on $ID, disabling"