[Resolvconf-devel] Bug#887176: resolvconf should depend on e2fsprogs explicitly

Andreas Henriksson andreas at fatal.se
Sat Jan 20 00:41:56 UTC 2018


Hello,

On Sun, Jan 14, 2018 at 08:10:44PM +0100, Helmut Grohne wrote:
> Package: resolvconf
[...]
> /usr/share/resolvconf/dump-debug-info contains lsattr. According to file it is a POSIX shell script, ASCII text executable

This one uses lsattr, but guards the execution with checking if it
exists first, so no strict dependency needed for this. Basing my
assumption on the file name a Suggests would likely be more warranted
than a Recommends.

> DEBIAN/postinst contains chattr and lsattr. According to file it is a POSIX shell script, ASCII text executable
[...]

The postinst maintainerscript does indeed use both chattr and lsattr.
Both of them are guarded with the debconf variable
resolvconf/linkify-resolvconf having to be TRUE, which is the default.
A dependency is thus currently needed here!

An alternative approach if there's a reason to consider avoiding adding
a strict dependency would be to refactor the debian/config to check
for chattr/lsattr existance and if they're not available force the
debconf variable resolvconf/linkify-resolvconf to false (likely together
with a debconf prompt stating that). I'm not sure if the extra
complexity is worth it and it would be great if maintainer(s) could
comment on this.

My conclusion is that a e2fsprogs dependency is likely the best
solution.

Regards,
Andreas Henriksson



More information about the Resolvconf-devel mailing list