[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1125345: libcoarrays-openmpi-dev: postinst for amd64 fails because it refers to aarch64-linux-gnu



Package: libcoarrays-openmpi-dev
Version: 2.10.3-2+b1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: debian-amd64@lists.debian.org, invernomuto@paranoici.org
User: debian-amd64@lists.debian.org
Usertags: amd64

Hello,
I've encountered an issue while upgrading libcoarrays-openmpi-dev:

    [UPGRADE] libcoarrays-openmpi-dev:amd64 2.10.2+ds-4 -> 2.10.3-2+b1

The error is:

    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Setting up libcoarrays-openmpi-dev:amd64 (2.10.3-2+b1)…
    update-alternatives: error: alternative path /usr/lib/aarch64-linux-gnu/open-coarrays/openmpi/bin/caf does not exist
    dpkg: error processing package libcoarrays-openmpi-dev:amd64 (--configure):
     old libcoarrays-openmpi-dev:amd64 package postinst maintainer script subprocess failed with exit status 2
    Errors were encountered while processing:
     libcoarrays-openmpi-dev:amd64


Probably because of a recent [commit], the postinst script for amd64
tries to update alternatives referring to aarch64-linux-gnu.

[commit]: <https://salsa.debian.org/science-team/open-coarrays/-/commit/1567d62eb3f14ebbac5c21bc8c6759fe6040db3d>

I see:

    $ cat /var/lib/dpkg/info/libcoarrays-openmpi-dev\:amd64.postinst 
    #!/bin/sh
    
    set -e
    
    # Note  two-level system
    
    if [ "$1" = "configure" ]; then
    
    update-alternatives \
        --install /usr/bin/caf.openmpi    caf-openmpi    /usr/lib/aarch64-linux-gnu/open-coarrays/openmpi/bin/caf 50 \
        --slave   /usr/bin/cafrun.openmpi cafrun-openmpi /usr/lib/aarch64-linux-gnu/open-coarrays/openmpi/bin/cafrun 
    
    update-alternatives \
        --install /usr/bin/caf    caf    /usr/bin/caf.openmpi   50 \
        --slave   /usr/bin/cafrun cafrun /usr/bin/cafrun.openmpi
    
    fi


Manually modifying ( s/aarch64/x86_64/ ) the script in 
'/var/lib/dpkg/info/libcoarrays-openmpi-dev:amd64.postinst'
fixes the issue.

Please investigate what went wrong with the pre-computed DEB_HOST_MULTIARCH
and fix the bug in the Debian package.

Thanks for your time and dedication!



-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.13+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_DIE, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcoarrays-openmpi-dev depends on:
ii  gfortran [fortran-compiler]  4:15.2.0-4
ii  libc6                        2.42-7
ii  libcaf-openmpi-3t64          2.10.3-2+b1
ii  libcoarrays-dev              2.10.3-2+b1
ii  libgcc-s1                    15.2.0-12
ii  libgfortran5                 15.2.0-12
ii  libopenmpi40                 5.0.9-1
ii  openmpi-bin                  5.0.9-1

libcoarrays-openmpi-dev recommends no packages.

libcoarrays-openmpi-dev suggests no packages.

-- no debconf information

Reply to: