Bug#768939: startpar: obsolete conffiles /etc/init/startpar-bridge.conf
[2018-11-27 17:33] Ivan Shmakov > I’m not going to claim I’m that familiar with Debian packaging > practices, but wouldn’t .postinst alone be enough? .postrm > isn’t going to do anything if .postinst has already removed the > file, and there seem to be nothing to warrant a .preinst, either. Manual page of dpkg-maintscript-helper suggests so: Many of those tasks require coordinated actions from several maintainer scripts (preinst, postinst, prerm, postrm). To avoid mistakes the same call simply needs to be put in all scripts and the program will automatically adapt its behaviour based on the environment variable DPKG_MAINTSCRIPT_NAME and on the maintainer scripts arguments that you have to forward after a double hyphen.
Bug#768939: startpar: obsolete conffiles /etc/init/startpar-bridge.conf
> Dmitry Bogatov writes: >> /etc/init/startpar-bridge.conf aab4f8aed4d4803ba1f6d97f6b1152da >> obsolete >> Please use the dpkg-maintscript-helper support provided by >> dh_installdeb to remove these obsolete conffiles on upgrade. > I believe following patch would solve issue. I published it at > https://salsa.debian.org/debian/startpar at branch `bug-768939'. > Opinions? […] > +++ b/debian/startpar.postinst > @@ -0,0 +1,3 @@ > +#!/bin/sh -eu > +#DEBHELPER# > +dpkg-maintscript-helper rm_conffile /etc/init/startpar-bridge.conf > 0.61~beta-1~ startpar -- "$@" […] I’m not going to claim I’m that familiar with Debian packaging practices, but wouldn’t .postinst alone be enough? .postrm isn’t going to do anything if .postinst has already removed the file, and there seem to be nothing to warrant a .preinst, either. -- FSF associate member #7257 http://am-1.org/~ivan/
Bug#768939: startpar: obsolete conffiles /etc/init/startpar-bridge.conf
> /etc/init/startpar-bridge.conf aab4f8aed4d4803ba1f6d97f6b1152da obsolete > > Please use the dpkg-maintscript-helper support provided by dh_installdeb > to remove these obsolete conffiles on upgrade. Hi! I believe following patch would solve issue. I published it at https://salsa.debian.org/debian/startpar at branch `bug-768939'. Opinions? commit 339bfa8fab86399325bc9f3ba786f76daa360868 Author: Dmitry Bogatov Date: Mon Nov 26 20:04:26 2018 + Remove obsolete conffile (Closes: #768939) diff --git a/debian/changelog b/debian/changelog index bd0a158..ba05e01 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ startpar (0.61-1) UNRELEASED; urgency=medium * New upstream release * Update upstread signing key + * Remove obsolete conffile (Closes: #768939) -- Dmitry Bogatov Sun, 25 Nov 2018 00:00:59 + diff --git a/debian/startpar.postinst b/debian/startpar.postinst new file mode 100644 index 000..abf6ca5 --- /dev/null +++ b/debian/startpar.postinst @@ -0,0 +1,3 @@ +#!/bin/sh -eu +#DEBHELPER# +dpkg-maintscript-helper rm_conffile /etc/init/startpar-bridge.conf 0.61~beta-1~ startpar -- "$@" diff --git a/debian/startpar.postrm b/debian/startpar.postrm new file mode 100644 index 000..abf6ca5 --- /dev/null +++ b/debian/startpar.postrm @@ -0,0 +1,3 @@ +#!/bin/sh -eu +#DEBHELPER# +dpkg-maintscript-helper rm_conffile /etc/init/startpar-bridge.conf 0.61~beta-1~ startpar -- "$@" diff --git a/debian/startpar.preinst b/debian/startpar.preinst new file mode 100644 index 000..abf6ca5 --- /dev/null +++ b/debian/startpar.preinst @@ -0,0 +1,3 @@ +#!/bin/sh -eu +#DEBHELPER# +dpkg-maintscript-helper rm_conffile /etc/init/startpar-bridge.conf 0.61~beta-1~ startpar -- "$@"
Bug#768939: startpar: obsolete conffiles /etc/init/startpar-bridge.conf
Package: startpar Version: 0.59-3 Severity: normal -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 When upgrading from Wheezy to Jessie, the following obsolete config was found using (dpkg-query --show --showformat='${Conffiles}\n' | grep obsolete): /etc/init/startpar-bridge.conf aab4f8aed4d4803ba1f6d97f6b1152da obsolete Please use the dpkg-maintscript-helper support provided by dh_installdeb to remove these obsolete conffiles on upgrade. http://www.debian.org/doc/debian-policy/ch-files.html#s-config-files http://manpages.debian.net/man/1/dh_installdeb - -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (1001, 'testing'), (1001, 'oldstable') Architecture: i386 (i686) Kernel: Linux 3.16-3-686-pae (SMP w/1 CPU core) Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages startpar depends on: ii libc6 2.19-12 startpar recommends no packages. Versions of packages startpar suggests: ii insserv 1.14.0-5 ii sysv-rc 2.88dsf-57 - -- no debconf information -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQIcBAEBCAAGBQJUYJVxAAoJEK4fgnfEtNe27kYQAIBFtp63Zf4tKO0/ULV8E2ZH uNunxx2oTL/Mj7R23WVUq9v7ESNbVUaYicQZaTf5dx6C6GCHjguRtcOhyL5N+xz4 nDBbJjU8NqxYjRSQrQO7OwAFwPmLijAX/n47j5UMCHs2DEVcP6MpTMujQFLTWGzZ VM8QNuxYWZ2ySAYcRdowMcmvVkv2ScQpZDdZvSEo7IMEY7bLx976xydYu7e/y3nS II3RNN2Xyqy+QSpHEIT0u1eWJX9FXp4UnvPVNiJFa5ynbwPdxRzNPkvLKJxibI9k Sz3vWchrJ2KvJIWfLDUm49x4bxHALPp2MfIzcOmIN58KNA4RpfxnKJ7SkFUm3cZR f1cwvDg0Bi8l+DVcp3n7ORx9M8fTu22akvzn2aUqi9Z4fRdl1LU7xYy4UAi6x2a3 3DCkbzRzLdH/Na+L3pliQ1aWZqOualiSY1JMBiuu4lJsP8qZLE7/yV5vTFEKd1hM nEjDt6Zck1RAGJkbtuGI1FWjKYlWqhddiRdq8vDnH1mdv86Jsk7zhjh7988tMUlH pwn15ayIMJuE56um/0cUVPar/eCD9tlbd9pJAs7RgGdlzhvM4p1gO3436O2I67G/ 940/HNg6TYMrO7Wd5ja3Xq93W2Tb5YUjpf/Y7S/nEbcKqvL7quACVtQSY94E3Ecw RHmIbf1XP4akhz4aZm6l =FK0O -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/debian-bugs-dist