#1102731 nwchem-mpich and nwchem-openmpi have an undeclared file conflict on /usr/bin/nwchem

#1102731#5
Date:
2025-04-12 11:37:36 UTC
From:
To:
nwchem-mpich and nwchem-openmpi have an undeclared file conflict. This
may result in an unpack error from dpkg.

The file /usr/bin/nwchem is contained in the packages
 * nwchem-mpich/7.2.3-7+b1 as present in trixie|unstable
 * nwchem-openmpi/7.2.3-7+b1 as present in trixie|unstable

These packages can be unpacked concurrently, because there is no
relevant Replaces or Conflicts relation. Attempting to unpack these
packages concurrently results in an unpack error from dpkg, because none
of the packages installs a diversion for the affected file.

Kind regards

Helmut

#1102731#10
Date:
2025-04-12 16:28:55 UTC
From:
To:
Hi Helmut, can you give more information on where you find the file
conflict?

/usr/bin/nwchem is a symlink to the build for the default MPI for the
given architecture.

On 64-bit systems openmpi is default, so /usr/bin/nwchem is provided
by the nwchem-openmpi package and not provided by the nwchem-mpich
package.

Have you found a case where nwchem-mpich also provides /usr/bin/nwchem ?
(apart from the 32-bit arches, for which nwchem-openmpi should not be
providing /usr/bin/nwchem)

/usr/bin/nwchem is not actually provided by both nwchem-openmpi and
nwchem-mpich on a normal installation, so downgrading severity.

#1102731#19
Date:
2025-04-21 06:15:51 UTC
From:
To:
Control: tags -1 - moreinfo

Please Cc bug submitters if you want them to reply. I noticed your mail
by chance.

I think you answered your own question.

What you are describing here is a cross-architecture file conflict.
Attempting to unpack nwchem-openmpi:64bit and nwchem-mpich:32bit is not
prevent by packaging metadata and causes the described unpack error.

They are, as soon as you enable multiarch.

I agree that my report template is lacking in this regard as it did not
clearly spell out the need to combine different architectures. It is
rare for a conflict to be specific to particular architecture
combinations. I shall look into improving future reports.

Helmut