Dpkg::Arch man page
Dpkg::Arch — handle architectures
The Dpkg::Arch module provides functions to handle Debian architectures, wildcards, and mapping from and to GNU triplets.
No symbols are exported by default. The :all tag can be used to import all symbols. The :getters, :parsers, :mappers and :operators tags can be used to import specific symbol subsets.
Get the raw build Debian architecture, without taking into account variables from the environment.
Get the build Debian architecture, using DEB_BUILD_ARCH from the environment if available.
Get the raw host Debian architecture, without taking into account variables from the environment.
Get the host Debian architecture, using DEB_HOST_ARCH from the environment if available.
Get an array with all currently known Debian architectures.
Map a GNU triplet into a Debian multiarch triplet.
Map a Debian architecture into a Debian multiarch triplet.
Map a Debian architecture into a GNU triplet.
Map a GNU triplet into a Debian architecture.
Evaluate the equality of a Debian architecture, by comparing with another Debian architecture. No wildcard matching is performed.
Evaluate the identity of a Debian architecture, by matching with an architecture wildcard.
Evaluate whether a Debian architecture is an architecture wildcard.
Validate an architecture name.
Evaluate whether a Debian architecture applies to the list of architecture restrictions, as usually found in dependencies inside square brackets.
Parse an architecture list.
Version 1.02 (dpkg 1.18.19)
New import tags: “:all”, “:getters”, “:parsers”, “:mappers”, “:operators”.
Version 1.01 (dpkg 1.18.5)
New functions: debarch_is_illegal(), debarch_list_parse().
Version 1.00 (dpkg 1.18.2)
Mark the module as public.