Perl version strings do not accept values such as "12.10ubuntu1", so only compare the digits and "." parts at the beginning. Tested-by: Stefan Metzmacher <metze@xxxxxxxxx> Link: https://lore.kernel.org/io-uring/8ccd3b34-bd3a-6c9f-fdb6-64d1b3b43f64@xxxxxxxxx/ Signed-off-by: Eric Wong <e@xxxxxxxxx> --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index cd41bb8..d0b4eea 100755 --- a/debian/rules +++ b/debian/rules @@ -84,7 +84,8 @@ binary-arch: install-arch # --add-udeb is needed for < 12.3, and breaks with auto-detection # on debhelper 13.3.4, at least if perl -MDebian::Debhelper::Dh_Version -e \ - 'exit(eval("v$$Debian::Debhelper::Dh_Version::version") lt v12.3)'; \ + '($$v) = ($$Debian::Debhelper::Dh_Version::version =~ /\A([\d\.]+)/);' \ + -e 'exit(eval("v$$v") lt v12.3)'; \ then dh_makeshlibs -a; else \ dh_makeshlibs -a --add-udeb '$(libudeb)'; fi