1Dpkg::Arch(3perl) libdpkg-perl Dpkg::Arch(3perl)
2
3
4
6 Dpkg::Arch - handle architectures
7
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
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, %options)
60 Validate an architecture name.
61
62 If the "positive" option is set to a true value, only positive
63 architectures will be accepted, otherwise negated architectures are
64 allowed.
65
66 $bool = debarch_is_concerned($arch, @arches)
67 Evaluate whether a Debian architecture applies to the list of
68 architecture restrictions, as usually found in dependencies inside
69 square brackets.
70
71 @array = debarch_list_parse($arch_list, %options)
72 Parse an architecture list.
73
74 If the "positive" option is set to a true value, only positive
75 architectures will be accepted, otherwise negated architectures are
76 allowed.
77
79 Version 1.03 (dpkg 1.19.1)
80 New argument: Accept a "positive" option in debarch_is_illegal() and
81 debarch_list_parse().
82
83 Version 1.02 (dpkg 1.18.19)
84 New import tags: ":all", ":getters", ":parsers", ":mappers",
85 ":operators".
86
87 Version 1.01 (dpkg 1.18.5)
88 New functions: debarch_is_illegal(), debarch_list_parse().
89
90 Version 1.00 (dpkg 1.18.2)
91 Mark the module as public.
92
94 dpkg-architecture(1).
95
96
97
981.19.7 2020-02-18 Dpkg::Arch(3perl)