Bug#981576: ghdl-common: missing Breaks+Replaces: ghdl (<< 0.37+dfsg2)
On Mon, Feb 01, 2021 at 06:20:18PM +0100, Andreas Beckmann wrote: > From the attached log (scroll to the bottom...): > > Preparing to unpack .../ghdl-common_0.37+dfsg2-1_amd64.deb ... > Unpacking ghdl-common (0.37+dfsg2-1) ... > dpkg: error processing archive > /var/cache/apt/archives/ghdl-common_0.37+dfsg2-1_amd64.deb (--unpack): >trying to overwrite '/usr/bin/ghdl', which is also in package ghdl:amd64 > 0.37+dfsg-3 > dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) > Errors were encountered while processing: >/var/cache/apt/archives/ghdl-common_0.37+dfsg2-1_amd64.deb Ah, I didn't notice that as I haven't tried installing ghdl-common on its own with the older ghdl packages installed. > BTW, did you really intend to move /usr/bin/ghdl to the -common package? > That's rather unusual. > (But you need the B+R also for splitting out the /usr/lib bits to -common.) /usr/bin/ghdl is a shell script that selects one of the installed ghdl variants and executes that, and it can be influenced by an environment variable. In hindsight, I could have let /usr/bin/ghdl be handled by the alternatives system and let users select a non-default ghdl by executing the desired executable (ghdl-mcode, ghdl-gcc or ghdl-llvm) directly. But as it is now it is in -common so that every ghdl installation also provides /usr/bin/ghdl.
Bug#981576: ghdl-common: missing Breaks+Replaces: ghdl (<< 0.37+dfsg2)
Package: ghdl-common Version: 0.37+dfsg2-1 Severity: serious User: debian...@lists.debian.org Usertags: piuparts Hi, during a test with piuparts I noticed your package fails to upgrade from 'testing'. It installed fine in 'testing', then the upgrade to 'sid' 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 .../ghdl-common_0.37+dfsg2-1_amd64.deb ... Unpacking ghdl-common (0.37+dfsg2-1) ... dpkg: error processing archive /var/cache/apt/archives/ghdl-common_0.37+dfsg2-1_amd64.deb (--unpack): trying to overwrite '/usr/bin/ghdl', which is also in package ghdl:amd64 0.37+dfsg-3 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/ghdl-common_0.37+dfsg2-1_amd64.deb BTW, did you really intend to move /usr/bin/ghdl to the -common package? That's rather unusual. (But you need the B+R also for splitting out the /usr/lib bits to -common.) cheers, Andreas ghdl=0.37+dfsg-3_ghdl-common=0.37+dfsg2-1.log.gz Description: application/gzip