Source: libguestfs
Version: 1:1.44.2-1
Severity: important
Tags: patch bookworm sid
User: debian-r...@lists.debian.org
Usertags: ruby3.0


Dear Maintainer,

debian/rules currently employs a flawed way of detecting which ruby
versions to build for: it looks for /usr/bin/ruby[12], what doesn't work
now that we are moving to ruby3.0. Please apply the attached patch to
make it future proof.

This is currenly one of the last blockers in the transition to add
support for ruby3.0, which blocks the subsequent transition to switch to
ruby3.0 as default.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (500, 
'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru libguestfs-1.44.2/debian/rules libguestfs-1.44.2/debian/rules
--- libguestfs-1.44.2/debian/rules	2021-09-24 20:50:37.000000000 -0300
+++ libguestfs-1.44.2/debian/rules	2021-11-05 07:53:25.000000000 -0300
@@ -26,8 +26,7 @@
 include /usr/share/dpkg/architecture.mk
 
 PYTHON_VERSIONS := $(shell py3versions --installed)
-RUBY_VERSIONS   := $(shell find /usr/bin/ -name 'ruby[12]*' \
-			| xargs -n1 readlink -f | xargs -r -n1 basename)
+RUBY_VERSIONS   := $(shell dh_ruby --print-supported)
 LUA_VERSIONS    := $(shell find /usr/bin/ -name 'lua5.?' \
 			| xargs -n1 readlink -f | xargs -r -n1 basename)
 PHP_VERSIONS    := $(subst -config,,\

Attachment: signature.asc
Description: PGP signature

Reply via email to