.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Dpkg::Arch 3" .TH Dpkg::Arch 3 "2017-05-17" "1.18.24" "libdpkg-perl" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Dpkg::Arch \- handle architectures .SH "DESCRIPTION" .IX Header "DESCRIPTION" The Dpkg::Arch module provides functions to handle Debian architectures, wildcards, and mapping from and to \s-1GNU\s0 triplets. .PP 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. .SH "FUNCTIONS" .IX Header "FUNCTIONS" .ie n .IP "$arch = \fIget_raw_build_arch()\fR" 4 .el .IP "\f(CW$arch\fR = \fIget_raw_build_arch()\fR" 4 .IX Item "$arch = get_raw_build_arch()" Get the raw build Debian architecture, without taking into account variables from the environment. .ie n .IP "$arch = \fIget_build_arch()\fR" 4 .el .IP "\f(CW$arch\fR = \fIget_build_arch()\fR" 4 .IX Item "$arch = get_build_arch()" Get the build Debian architecture, using \s-1DEB_BUILD_ARCH\s0 from the environment if available. .ie n .IP "$arch = \fIget_raw_host_arch()\fR" 4 .el .IP "\f(CW$arch\fR = \fIget_raw_host_arch()\fR" 4 .IX Item "$arch = get_raw_host_arch()" Get the raw host Debian architecture, without taking into account variables from the environment. .ie n .IP "$arch = \fIget_host_arch()\fR" 4 .el .IP "\f(CW$arch\fR = \fIget_host_arch()\fR" 4 .IX Item "$arch = get_host_arch()" Get the host Debian architecture, using \s-1DEB_HOST_ARCH\s0 from the environment if available. .ie n .IP "@arch_list = \fIget_valid_arches()\fR" 4 .el .IP "\f(CW@arch_list\fR = \fIget_valid_arches()\fR" 4 .IX Item "@arch_list = get_valid_arches()" Get an array with all currently known Debian architectures. .ie n .IP "$multiarch = gnutriplet_to_multiarch($gnutriplet)" 4 .el .IP "\f(CW$multiarch\fR = gnutriplet_to_multiarch($gnutriplet)" 4 .IX Item "$multiarch = gnutriplet_to_multiarch($gnutriplet)" Map a \s-1GNU\s0 triplet into a Debian multiarch triplet. .ie n .IP "$multiarch = debarch_to_multiarch($arch)" 4 .el .IP "\f(CW$multiarch\fR = debarch_to_multiarch($arch)" 4 .IX Item "$multiarch = debarch_to_multiarch($arch)" Map a Debian architecture into a Debian multiarch triplet. .ie n .IP "$gnutriplet = debarch_to_gnutriplet($arch)" 4 .el .IP "\f(CW$gnutriplet\fR = debarch_to_gnutriplet($arch)" 4 .IX Item "$gnutriplet = debarch_to_gnutriplet($arch)" Map a Debian architecture into a \s-1GNU\s0 triplet. .ie n .IP "$arch = gnutriplet_to_debarch($gnutriplet)" 4 .el .IP "\f(CW$arch\fR = gnutriplet_to_debarch($gnutriplet)" 4 .IX Item "$arch = gnutriplet_to_debarch($gnutriplet)" Map a \s-1GNU\s0 triplet into a Debian architecture. .ie n .IP "$bool = debarch_eq($arch_a, $arch_b)" 4 .el .IP "\f(CW$bool\fR = debarch_eq($arch_a, \f(CW$arch_b\fR)" 4 .IX Item "$bool = debarch_eq($arch_a, $arch_b)" Evaluate the equality of a Debian architecture, by comparing with another Debian architecture. No wildcard matching is performed. .ie n .IP "$bool = debarch_is($arch, $arch_wildcard)" 4 .el .IP "\f(CW$bool\fR = debarch_is($arch, \f(CW$arch_wildcard\fR)" 4 .IX Item "$bool = debarch_is($arch, $arch_wildcard)" Evaluate the identity of a Debian architecture, by matching with an architecture wildcard. .ie n .IP "$bool = debarch_is_wildcard($arch)" 4 .el .IP "\f(CW$bool\fR = debarch_is_wildcard($arch)" 4 .IX Item "$bool = debarch_is_wildcard($arch)" Evaluate whether a Debian architecture is an architecture wildcard. .ie n .IP "$bool = debarch_is_illegal($arch)" 4 .el .IP "\f(CW$bool\fR = debarch_is_illegal($arch)" 4 .IX Item "$bool = debarch_is_illegal($arch)" Validate an architecture name. .ie n .IP "$bool = debarch_is_concerned($arch, @arches)" 4 .el .IP "\f(CW$bool\fR = debarch_is_concerned($arch, \f(CW@arches\fR)" 4 .IX Item "$bool = debarch_is_concerned($arch, @arches)" Evaluate whether a Debian architecture applies to the list of architecture restrictions, as usually found in dependencies inside square brackets. .ie n .IP "@array = debarch_list_parse($arch_list, %options)" 4 .el .IP "\f(CW@array\fR = debarch_list_parse($arch_list, \f(CW%options\fR)" 4 .IX Item "@array = debarch_list_parse($arch_list, %options)" Parse an architecture list. .SH "CHANGES" .IX Header "CHANGES" .SS "Version 1.02 (dpkg 1.18.19)" .IX Subsection "Version 1.02 (dpkg 1.18.19)" New import tags: \*(L":all\*(R", \*(L":getters\*(R", \*(L":parsers\*(R", \*(L":mappers\*(R", \*(L":operators\*(R". .SS "Version 1.01 (dpkg 1.18.5)" .IX Subsection "Version 1.01 (dpkg 1.18.5)" New functions: \fIdebarch_is_illegal()\fR, \fIdebarch_list_parse()\fR. .SS "Version 1.00 (dpkg 1.18.2)" .IX Subsection "Version 1.00 (dpkg 1.18.2)" Mark the module as public. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIdpkg\-architecture\fR\|(1).