Bug#842083: fai-client: fails to upgrade from 'jessie' - trying to overwrite /usr/lib/fai/mount2dir

2016-10-25 Thread Thomas Lange
I've only moved the mount2dir executable from the fai-nfsroot package
to the fai-client package. The fai-client does not replace
fai-nfsroot.

To fix this bug is it only possible by defining a breaks or replaces?
Which breaks do I have to define then?

BTW, fai-nfsroot is never installed on a normal system. It will only
be installed inside a nfsroot.
-- 
regards Thomas



Bug#842083: fai-client: fails to upgrade from 'jessie' - trying to overwrite /usr/lib/fai/mount2dir

2016-10-25 Thread Andreas Beckmann
Package: fai-client
Version: 5.2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts
Control: affects -1 + fai-nfsroot

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces

>From the attached log (scroll to the bottom...):

  Preparing to unpack .../fai-client_5.2_all.deb ...
  Unpacking fai-client (5.2) over (4.3.1+deb8u1) ...
  dpkg: error processing archive /var/cache/apt/archives/fai-client_5.2_all.deb 
(--unpack):
   trying to overwrite '/usr/lib/fai/mount2dir', which is also in package 
fai-nfsroot 4.3.1+deb8u1
  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)


cheers,

Andreas


fai-nfsroot_5.2.log.gz
Description: application/gzip