[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: PGP signature


Reply to: