Bug#993531: lintian: doesn't know about conffile remove-on-upgrade tag

2021-09-05 Thread Felix Lechner
Hi,

On Thu, Sep 2, 2021 at 11:03 AM Baptiste Beauplat  wrote:
>
> There is currently only one flag supported, remove-on-upgrade

Lintian's internal data structures currently hold only one value for
each conffile (the name) and have to be modified. I am working on a
solution.

As for Lintian triggering the tag, I did not see it locally on
bullseye. It only happens when the package is built in
unstable—presumably due to updated versions of Debhelper and Dpkg
there.

Kind regards
Felix Lechner



Bug#993531: lintian: doesn't know about conffile remove-on-upgrade tag

2021-09-02 Thread Baptiste Beauplat
Package: lintian
Version: 2.104.0
Severity: normal

Dear Maintainer,

I was building my package (chkboot 1.3-8) when lintian reported the
following tags:

```
E: chkboot: conffile-is-not-in-package remove-on-upgrade 
/etc/kernel/postinst.d/zzz-chkboot
E: chkboot: conffile-is-not-in-package remove-on-upgrade 
/etc/kernel/postrm.d/zzz-chkboot
E: chkboot: non-etc-file-marked-as-conffile remove-on-upgrade 
/etc/kernel/postinst.d/zzz-chkboot
E: chkboot: non-etc-file-marked-as-conffile remove-on-upgrade 
/etc/kernel/postrm.d/zzz-chkboot
E: chkboot: relative-conffile remove-on-upgrade 
/etc/kernel/postinst.d/zzz-chkboot
E: chkboot: relative-conffile remove-on-upgrade /etc/kernel/postrm.d/zzz-chkboot
```

Based on the following conffile generated by dpkg 1.20.9 and debhelper
13.5.1:

```
remove-on-upgrade /etc/kernel/postinst.d/zzz-chkboot
remove-on-upgrade /etc/kernel/postrm.d/zzz-chkboot
/etc/apt/apt.conf.d/05chkboot
/etc/default/chkboot
/etc/init.d/chkboot
/etc/profile.d/chkboot-profilealert.sh
```

The remove-on-upgrade tag is a new feature from dpkg 1.20.6 as stated in
deb-conffiles(5):

```
There is currently only one flag supported, remove-on-upgrade, to mark
that a conffile needs to be removed on the next upgrade (since dpkg
1.20.6).  These files must not exist in the binary package, as both
dpkg(1) and dpkg-deb(1) will not accept building nor processing such
binary packages.
```

Lintian should skip the tag if present while checking for the given
tags.

Best,

-- 
Baptiste Beauplat - lyknode


signature.asc
Description: PGP signature