1Dpkg::Arch(3)                    libdpkg-perl                    Dpkg::Arch(3)
2
3
4

NAME

6       Dpkg::Arch - handle architectures
7

DESCRIPTION

9       The Dpkg::Arch module provides functions to handle Debian
10       architectures, wildcards, and mapping from and to GNU triplets.
11
12       No symbols are exported by default. The :all tag can be used to import
13       all symbols. The :getters, :parsers, :mappers and :operators tags can
14       be used to import specific symbol subsets.
15

FUNCTIONS

17       $arch = get_raw_build_arch()
18           Get the raw build Debian architecture, without taking into account
19           variables from the environment.
20
21       $arch = get_build_arch()
22           Get the build Debian architecture, using DEB_BUILD_ARCH from the
23           environment if available.
24
25       $arch = get_raw_host_arch()
26           Get the raw host Debian architecture, without taking into account
27           variables from the environment.
28
29       $arch = get_host_arch()
30           Get the host Debian architecture, using DEB_HOST_ARCH from the
31           environment if available.
32
33       @arch_list = get_valid_arches()
34           Get an array with all currently known Debian architectures.
35
36       $multiarch = gnutriplet_to_multiarch($gnutriplet)
37           Map a GNU triplet into a Debian multiarch triplet.
38
39       $multiarch = debarch_to_multiarch($arch)
40           Map a Debian architecture into a Debian multiarch triplet.
41
42       $gnutriplet = debarch_to_gnutriplet($arch)
43           Map a Debian architecture into a GNU triplet.
44
45       $arch = gnutriplet_to_debarch($gnutriplet)
46           Map a GNU triplet into a Debian architecture.
47
48       $bool = debarch_eq($arch_a, $arch_b)
49           Evaluate the equality of a Debian architecture, by comparing with
50           another Debian architecture. No wildcard matching is performed.
51
52       $bool = debarch_is($arch, $arch_wildcard)
53           Evaluate the identity of a Debian architecture, by matching with an
54           architecture wildcard.
55
56       $bool = debarch_is_wildcard($arch)
57           Evaluate whether a Debian architecture is an architecture wildcard.
58
59       $bool = debarch_is_illegal($arch)
60           Validate an architecture name.
61
62       $bool = debarch_is_concerned($arch, @arches)
63           Evaluate whether a Debian architecture applies to the list of
64           architecture restrictions, as usually found in dependencies inside
65           square brackets.
66
67       @array = debarch_list_parse($arch_list, %options)
68           Parse an architecture list.
69

CHANGES

71   Version 1.02 (dpkg 1.18.19)
72       New import tags: ":all", ":getters", ":parsers", ":mappers",
73       ":operators".
74
75   Version 1.01 (dpkg 1.18.5)
76       New functions: debarch_is_illegal(), debarch_list_parse().
77
78   Version 1.00 (dpkg 1.18.2)
79       Mark the module as public.
80

SEE ALSO

82       dpkg-architecture(1).
83
84
85
861.18.25                           2018-06-26                     Dpkg::Arch(3)
Impressum