Usually Architecture: any
is recommended in debian/control except upstream explicitly doesn't/won't support that architecture.
In practical use case, linux-any
is useful to exclude hurd architecture. (Previously it is also useful to exclude kfreebsd)
Here is the simple script to check whether specific architecutre matches linux-any or not.
2024/12/28: UPDATE
I've got feedback that the following command should be used. (Thanks Cyril Brulebois and Guillem Jover)
dpkg-architecture -L -W linux-any
or
dpkg-architecture --match-wildcard linux-any --list-known
NOTE: the following example is wrong, but for a record what I did wrongly, keep it as is:
#!usr/bin/bash TARGETS=" amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x alpha hppa hurd-amd64 hurd-i386 loong64 m68k powerpc ppc64 sh4 sparc64 x32 " for d in $TARGETS; do dpkg-architecture -i linux-any -a $d if [ $? -eq 0 ]; then echo -e "[\e[32m\e[40mOK\e[0m] $d is linux-any (dpkg-architecture -i linux-any -a $d)" else echo -e "[\e[31m\e[40mNG\e[0m] $d is NOT linux-any (dpkg-architecture -i linux-any -a $d)" fi done