This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=38095fa33420e32a089bbd4ddf8de58bb9d37298 commit 38095fa33420e32a089bbd4ddf8de58bb9d37298 Author: Guillem Jover <guil...@debian.org> AuthorDate: Sat Sep 11 12:36:42 2021 +0200 Dpkg::Shlibs::Symbol: Emit a warning on fully qualified symver patterns When using the symver tag, we cannot use fully qualified patterns that include a version tag and a symbol name, or the entry will not match. This should ideally be an error, but that would produce build failures for entries that might not currently be relevant for a build. Emit a warning for now which can be promoted later on as an error. Closes: #993991 --- scripts/Dpkg/Shlibs/Symbol.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Dpkg/Shlibs/Symbol.pm b/scripts/Dpkg/Shlibs/Symbol.pm index 142992b89..b6e9d832f 100644 --- a/scripts/Dpkg/Shlibs/Symbol.pm +++ b/scripts/Dpkg/Shlibs/Symbol.pm @@ -166,6 +166,10 @@ sub initialize { # Each symbol is matched against its version rather than full # name@version string. $type = (defined $type) ? 'generic' : 'alias-symver'; + if ($self->get_symbolname() =~ /@/) { + warning(g_('symver tag with versioned symbol will not match: %s'), + $self->get_symbolspec(1)); + } if ($self->get_symbolname() eq 'Base') { error(g_("you can't use symver tag to catch unversioned symbols: %s"), $self->get_symbolspec(1)); -- Dpkg.Org's dpkg