Skip to content

Commit 7bdb82e

Browse files
smcvbluca
authored andcommitted
dh_dlopenlibdeps: Debian package names can contain dots
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]>
1 parent 24884f0 commit 7bdb82e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

debian/dh_dlopenlibdeps

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ on_pkgs_in_parallel {
102102
if ($line =~ m/^local diversion |^diversion by/) {
103103
next;
104104
}
105-
if ($line =~ m/^([-a-z0-9+]+):/) {
105+
if ($line =~ m/^([-a-z0-9+.]+):/) {
106106
$required_packages{$1} = 1;
107107
}
108108
}
@@ -115,7 +115,7 @@ on_pkgs_in_parallel {
115115
if ($line =~ m/^local diversion |^diversion by/) {
116116
next;
117117
}
118-
if ($line =~ m/^([-a-z0-9+]+):/) {
118+
if ($line =~ m/^([-a-z0-9+.]+):/) {
119119
$recommended_packages{$1} = 1;
120120
}
121121
}
@@ -128,7 +128,7 @@ on_pkgs_in_parallel {
128128
if ($line =~ m/^local diversion |^diversion by/) {
129129
next;
130130
}
131-
if ($line =~ m/^([-a-z0-9+]+):/) {
131+
if ($line =~ m/^([-a-z0-9+.]+):/) {
132132
$suggested_packages{$1} = 1;
133133
}
134134
}

0 commit comments

Comments
 (0)