Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-15 Thread Samuel Thibault
Hello,

Guillem Jover, le lun. 14 déc. 2020 01:51:58 +0100, a ecrit:
> and then conditionally run rm_conffile in speech-dispatcher
> iff speech-dispatcher-kali is not present?

Right, that seems to be doing the job.

Thanks!
Samuel



Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-13 Thread Guillem Jover
On Tue, 2020-12-08 at 01:25:30 +0100, Samuel Thibault wrote:
> I moved a configuration file kali.conf from the speech-dispatcher
> package to the speech-dispatcher-kali package (as well as others, but
> let's keep that example only).
> 
> The thing is: speech-dispatcher does not depend on
> speech-dispatcher-kali (and cannot: the former is in main, the latter is
> in contrib). It means that we either have
> 
> - a system with speech-dispatcher only, we want kali.conf to go away.
> 
> - a system with speech-dispatcher and speech-dispatcher-kali, we want to
>   keep kali.conf and reassign it to speech-dispatcher-kali.

> Do you have any other idea?

I'd probably try adding a Breaks to speech-dispatcher against the
older speech-dispatcher-kali versions not owning the file, to force
the upgrade, and add a Replaces to speech-dispatcher-kali against
speech-dispatcher, but I assume you already have these. Then just
drop the file from speech-dispatcher and let dpkg handle the conffile
takeover, and then conditionally run rm_conffile in speech-dispatcher
iff speech-dispatcher-kali is not present?

Thanks,
Guillem



Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-07 Thread Samuel Thibault
Hello debian-dpkg,

I moved a configuration file kali.conf from the speech-dispatcher
package to the speech-dispatcher-kali package (as well as others, but
let's keep that example only).

The thing is: speech-dispatcher does not depend on
speech-dispatcher-kali (and cannot: the former is in main, the latter is
in contrib). It means that we either have

- a system with speech-dispatcher only, we want kali.conf to go away.

- a system with speech-dispatcher and speech-dispatcher-kali, we want to
  keep kali.conf and reassign it to speech-dispatcher-kali.

Using mv_conffile only in speech-dispatcher-kali does not remove
kali.conf in the first case. Using mv_conffile only in speech-dispatcher
leaves kali.conf.dpkg-new. Using rm_conffile in speech-dispatcher and
mv_conffile in speech-dispatcher-kali breaks: 

Removing obsolete conffile /etc/speech-dispatcher/modules/kali.conf ...
[...]
Preserving user changes to /etc/speech-dispatcher/modules/kali.conf (renamed 
from /etc/speech-dispatcher/modules/kali.conf)...
mv: cannot stat '/etc/speech-dispatcher/modules/kali.conf': No such file or 
directory

Do you have any other idea?

Samuel



Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-05 Thread Paul Wise
On Sat, 2020-12-05 at 16:37 +0100, Samuel Thibault wrote:

> If I use mv_conffile in speech-dispatcher-{kali,ibmtts,baratinoo} and
> rm_conffile in speech-dispatcher, will that "just work"?

TBH, I do not know the answer here, so probably it would be best to
discuss this with guillem on #debian-dpkg or the mailing list.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-05 Thread Samuel Thibault
Hello,

Paul Wise, le mer. 02 déc. 2020 12:53:05 +0800, a ecrit:
> The recent upgrade did not deal with obsolete conffiles properly.
> Please use the dpkg-maintscript-helper support provided by
> dh_installdeb to remove these obsolete conffiles on upgrade,
> or to move them to speech-dispatcher-{kali,ibmtts,baratinoo}.

Mmmm.

I however wonder how to tell maintscript what we need: we don't want to
make the new speech-dispatcher package depend on these non-free package,
so there are two cases:

- the user had only speech-dispatcher installed, upgrading should remove the
  obsolete configuration file

- the user had both speech-dispatcher and
  speech-dispatcher-{kali,ibmtts,baratinoo} installed, upgrading should
  just transfer ownership to the latter package(s).

If I use mv_conffile in speech-dispatcher-{kali,ibmtts,baratinoo} and
rm_conffile in speech-dispatcher, will that "just work"?

Samuel



Bug#976247: speech-dispatcher: conffiles not removed: /etc/speech-dispatcher/modules/ kali.conf ibmtts.conf baratinoo.conf

2020-12-01 Thread Paul Wise
Package: speech-dispatcher
Version: 0.10.2-1
Severity: normal
User: debian...@lists.debian.org
Usertags: obsolete-conffile adequate

The recent upgrade did not deal with obsolete conffiles properly.
Please use the dpkg-maintscript-helper support provided by
dh_installdeb to remove these obsolete conffiles on upgrade,
or to move them to speech-dispatcher-{kali,ibmtts,baratinoo}.

https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
https://manpages.debian.org/man/1/dh_installdeb

This bug report brought to you by adequate:

https://bonedaddy.net/pabs3/log/2013/02/23/inadequate-software/

$ p=speech-dispatcher ; adequate $p ; dpkg-query -W -f='${Conffiles}\n' $p | 
grep obsolete
speech-dispatcher: obsolete-conffile /etc/speech-dispatcher/modules/kali.conf
speech-dispatcher: obsolete-conffile /etc/speech-dispatcher/modules/ibmtts.conf
speech-dispatcher: obsolete-conffile 
/etc/speech-dispatcher/modules/baratinoo.conf
 /etc/speech-dispatcher/modules/kali.conf f2bb689fe05aa29ec830c65ad30189e4 
obsolete
 /etc/speech-dispatcher/modules/ibmtts.conf 4d7812b0b95020ffa19be4ea7e53c06a 
obsolete
 /etc/speech-dispatcher/modules/baratinoo.conf 7595456c249126d7f5cc31f9628b32aa 
obsolete

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-4-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages speech-dispatcher depends on:
ii  adduser  3.118
ii  init-system-helpers  1.59
ii  libc6    2.31-5
ii  libdotconf0  1.3-0.3
ii  libglib2.0-0 2.66.3-1
ii  libltdl7 2.4.6-14
ii  libsndfile1  1.0.28-8
ii  libspeechd2  0.10.2-1
ii  lsb-base 11.1.0
ii  speech-dispatcher-audio-plugins  0.10.2-1

Versions of packages speech-dispatcher recommends:
ii  pulseaudio   13.0-5
pn  sound-icons  
pn  speech-dispatcher-espeak-ng  

Versions of packages speech-dispatcher suggests:
ii  espeak  1.48.04+dfsg-9
pn  libttspico-utils    
pn  mbrola  
pn  speech-dispatcher-cicero    
pn  speech-dispatcher-doc-cs    
pn  speech-dispatcher-espeak    
pn  speech-dispatcher-festival  
pn  speech-dispatcher-flite 

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part