Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1111505

Bug#1015263: libidn2-0: Depends sgml-base

From Chris Hofstaedtler <zeha@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1015263: libidn2-0: Depends sgml-base
Date 2022-07-31 02:30 +0200
Message-ID <EP50d-eVNt-1@gated-at.bofh.it> (permalink)
References <EP2vn-eUeR-11@gated-at.bofh.it> <EKAHn-ccTq-1@gated-at.bofh.it> <EP2vn-eUeR-9@gated-at.bofh.it> <EKAHn-ccTq-1@gated-at.bofh.it> <EP2vn-eUeR-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Control: reassign -1 debhelper
Control: found -1 13.7
Control: affects -1 libidn2-0

Hi Niels,

* Simon Josefsson <simon@josefsson.org>:
> Thorsten Glaser <tg@mirbsd.de> writes:
> 
> > A new dependency on sgml-base was introduced to the shared library
> > package, and it’s not documented in the changelog. This raises red
> > flags.
> 
> Hi.  Thanks for the report.  Indeed, this looks strange, and there is no
> modification of the libidn2/debian/ files that would explain this.  It
> seems sgml-base is added via the 'Depends: ${misc:Depends},
> ${shlibs:Depends}' and/or 'Pre-Depends: ${misc:Pre-Depends}' clauses, so
> I guess something changed in 'dh' to cause this new behaviour.  Any
> ideas?

https://salsa.debian.org/debian/debhelper/-/commit/99892be481c1dd06d9866854a2c14e6a70ae12b7
looks suspicious, as it rewrites the addsubstvar function, which is
used by dh_installcatalogs. Indeed if I remove the addsubstvar call
with remove=1 from dh_installcatalogs, sgml-base no longer shows up
in misc:Depends of libidn2-0.

Judging by the current list of `apt-cache rdepends sgml-base`, this
problem has already spread quite a bit.

I think this is a bug in debhelper, and maybe it could be "fixed"
twice:

dh_installcatalogs is not supposed to be idempotent, so the
addsubstvar to "remove the dependency" could just go away?

Then, addsubstvar could maybe also lose its "remove" argument? A
quick codesearch search didn't find me any callers using that, apart
from dh_installcatalogs.

But this is all me typing into a bug report without knowing anything
about debhelper API :-)

Best,
Chris

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1015263: libidn2-0: Depends sgml-base Thorsten Glaser <tg@mirbsd.de> - 2022-07-18 17:20 +0200
  Bug#1015263: libidn2-0: Depends sgml-base Simon Josefsson <simon@josefsson.org> - 2022-07-30 23:50 +0200
    Bug#1015263: libidn2-0: Depends sgml-base Thorsten Glaser <tg@mirbsd.de> - 2022-07-31 01:10 +0200
    Bug#1015263: libidn2-0: Depends sgml-base Chris Hofstaedtler <zeha@debian.org> - 2022-07-31 02:30 +0200
      Bug#1015263: libidn2-0: Depends sgml-base Cyril Brulebois <kibi@debian.org> - 2022-08-11 01:00 +0200
        Bug#1015263: libidn2-0: Depends sgml-base Cyril Brulebois <kibi@debian.org> - 2022-08-11 02:40 +0200

csiph-web