Control: tags -1 + patch
Control: forwarded -1 https://github.com/systemd/package-notes/pull/49

On Sun, 05 Oct 2025 at 12:18:36 +0100, Simon McVittie wrote:
I'll open a pull request with the obvious change when I have a bug
number to close in it

Please see link above.

    smcv
>From 220f0b69f8ccba3d01863ae6c10c5408f52d9c98 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Sun, 5 Oct 2025 17:14:54 +0100
Subject: [PATCH] dh_dlopenlibdeps: Debian package names can contain dots
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

According to Debian Policy ยง5.6.1 and 5.6.7, all other characters that
are allowed in a Debian package name were already covered by the regex
used here, but the dot was missing.

For example this fixes the ability to generate dependencies from
ELF notes that point to libsndio.so.7 (libsndio7.0 package) or
libpipewire-0.3.so.0 (libpipewire-0.3-0 package).

Closes: #1117245
Signed-off-by: Simon McVittie <[email protected]>
---
 debian/dh_dlopenlibdeps | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/dh_dlopenlibdeps b/debian/dh_dlopenlibdeps
index 2fce48c..1a6bf29 100755
--- a/debian/dh_dlopenlibdeps
+++ b/debian/dh_dlopenlibdeps
@@ -102,7 +102,7 @@ on_pkgs_in_parallel {
 					if ($line =~ m/^local diversion |^diversion by/) {
 						next;
 					}
-					if ($line =~ m/^([-a-z0-9+]+):/) {
+					if ($line =~ m/^([-a-z0-9+.]+):/) {
 						$required_packages{$1} = 1;
 					}
 				}
@@ -115,7 +115,7 @@ on_pkgs_in_parallel {
 					if ($line =~ m/^local diversion |^diversion by/) {
 						next;
 					}
-					if ($line =~ m/^([-a-z0-9+]+):/) {
+					if ($line =~ m/^([-a-z0-9+.]+):/) {
 						$recommended_packages{$1} = 1;
 					}
 				}
@@ -128,7 +128,7 @@ on_pkgs_in_parallel {
 					if ($line =~ m/^local diversion |^diversion by/) {
 						next;
 					}
-					if ($line =~ m/^([-a-z0-9+]+):/) {
+					if ($line =~ m/^([-a-z0-9+.]+):/) {
 						$suggested_packages{$1} = 1;
 					}
 				}
-- 
2.51.0

Reply via email to