Package: libyang-dev
Version: 3.7.8-4
Severity: serious
User: debian...@lists.debian.org
Usertags: fileconflict

libyang-dev fails to coinstall for amd64 and i386 (but likely also any 
other combination).

mmdebstrap --verbose --variant=apt '' /dev/null "deb 
http://deb.debian.org/debian unstable main" --architectures=amd64,i386 
--include=libyang-dev,libyang-dev:i386

Preparing to unpack .../23-libyang-dev_3.7.8-4_amd64.deb ...
Unpacking libyang-dev:amd64 (3.7.8-4) ...
dpkg: error processing archive 
/tmp/apt-dpkg-install-ZMmSnF/23-libyang-dev_3.7.8-4_amd64.deb (--unpack):
 trying to overwrite shared '/usr/include/libyang/ly_config.h', which is 
different from other instances of package libyang-dev:amd64
Errors were encountered while processing:
 /tmp/apt-dpkg-install-ZMmSnF/23-libyang-dev_3.7.8-4_amd64.deb

The simplest solution here is to remove "Multi-Arch: same" from the 
relevant binary package section and that certainly is a valid approach.

Another option would be moving the affected file to an 
architecture-dependent path such as 
/usr/include/${DEB_HOST_MULTIARCH}/libyang/ly_config.h hoping that it 
still will be found. In addition, the html documentation also differs 
per architecture. There an option could be creating a libyang-doc 
package.

A third option is to investigate the architecture-differences and trying 
to remove them.

I don't think coinstallation is important for this package and given the 
freeze timing recommend dropping Multi-Arch: same at least for trixie.

Helmut

Reply via email to