Bug#977408: libstdc++-11-doc: missing Conflicts: libstdc++-10-doc

2020-12-14 Thread Andreas Beckmann
Followup-For: Bug #977408

Add libgccjit-11-doc which misses a Conflicts: libgccjit-10-doc to the list.

There are file conflicts on .png files with very generic names:

usr/share/info/factorial.png
usr/share/info/factorial1.png
usr/share/info/libgccjit.info.gz
usr/share/info/sum-of-squares.png
usr/share/info/sum-of-squares1.png

which could easily lead to clashes with other packages in the future.


Andreas



Bug#977408: libstdc++-11-doc: missing Conflicts: libstdc++-10-doc

2020-12-14 Thread Andreas Beckmann
Package: libstdc++-11-doc
Version: 11-20201208-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' 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#overwriting-files-and-replacing-packages-replaces

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

  Preparing to unpack .../libstdc++-11-doc_11-20201208-1_all.deb ...
  Unpacking libstdc++-11-doc (11-20201208-1) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libstdc++-11-doc_11-20201208-1_all.deb (--unpack):
   trying to overwrite '/usr/share/man/man3/C++Intro.3cxx.gz', which is also in 
package libstdc++-10-doc 10.2.1-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/libstdc++-11-doc_11-20201208-1_all.deb

You should consider adding Conflicts+Replaces+Provides on some (internally
used) virtual package to avoid running into this problem again in the
future.


cheers,

Andreas


libstdc++-10-doc=10.2.1-1_libstdc++-11-doc=11-20201208-1.log.gz
Description: application/gzip