man-pages/man3/Dpkg::Arch.3perl.html
2021-03-31 01:06:50 +01:00

208 lines
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Dpkg::Arch</TITLE>
</HEAD><BODY>
<H1>Dpkg::Arch</H1>
Section: libdpkg-perl (3perl)<BR>Updated: 2020-03-23<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Dpkg::Arch - handle architectures
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
The Dpkg::Arch module provides functions to handle Debian architectures,
wildcards, and mapping from and to <FONT SIZE="-1">GNU</FONT> triplets.
<P>
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.
<A NAME="lbAD">&nbsp;</A>
<H2>FUNCTIONS</H2>
<DL COMPACT>
<DT id="1">$arch = <B>get_raw_build_arch()</B><DD>
Get the raw build Debian architecture, without taking into account variables
from the environment.
<DT id="2">$arch = <B>get_build_arch()</B><DD>
Get the build Debian architecture, using <FONT SIZE="-1">DEB_BUILD_ARCH</FONT> from the environment
if available.
<DT id="3">$arch = <B>get_raw_host_arch()</B><DD>
Get the raw host Debian architecture, without taking into account variables
from the environment.
<DT id="4">$arch = <B>get_host_arch()</B><DD>
Get the host Debian architecture, using <FONT SIZE="-1">DEB_HOST_ARCH</FONT> from the environment
if available.
<DT id="5">@arch_list = <B>get_valid_arches()</B><DD>
Get an array with all currently known Debian architectures.
<DT id="6">$multiarch = gnutriplet_to_multiarch($gnutriplet)<DD>
Map a <FONT SIZE="-1">GNU</FONT> triplet into a Debian multiarch triplet.
<DT id="7">$multiarch = debarch_to_multiarch($arch)<DD>
Map a Debian architecture into a Debian multiarch triplet.
<DT id="8">$gnutriplet = debarch_to_gnutriplet($arch)<DD>
Map a Debian architecture into a <FONT SIZE="-1">GNU</FONT> triplet.
<DT id="9">$arch = gnutriplet_to_debarch($gnutriplet)<DD>
Map a <FONT SIZE="-1">GNU</FONT> triplet into a Debian architecture.
<DT id="10">$bool = debarch_eq($arch_a, $arch_b)<DD>
Evaluate the equality of a Debian architecture, by comparing with another
Debian architecture. No wildcard matching is performed.
<DT id="11">$bool = debarch_is($arch, $arch_wildcard)<DD>
Evaluate the identity of a Debian architecture, by matching with an
architecture wildcard.
<DT id="12">$bool = debarch_is_wildcard($arch)<DD>
Evaluate whether a Debian architecture is an architecture wildcard.
<DT id="13">$bool = debarch_is_illegal($arch, %options)<DD>
Validate an architecture name.
<P>
If the ``positive'' option is set to a true value, only positive architectures
will be accepted, otherwise negated architectures are allowed.
<DT id="14">$bool = debarch_is_concerned($arch, @arches)<DD>
Evaluate whether a Debian architecture applies to the list of architecture
restrictions, as usually found in dependencies inside square brackets.
<DT id="15">@array = debarch_list_parse($arch_list, %options)<DD>
Parse an architecture list.
<P>
If the ``positive'' option is set to a true value, only positive architectures
will be accepted, otherwise negated architectures are allowed.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>CHANGES</H2>
<A NAME="lbAF">&nbsp;</A>
<H3>Version 1.03 (dpkg 1.19.1)</H3>
New argument: Accept a ``positive'' option in <B>debarch_is_illegal()</B> and
<B>debarch_list_parse()</B>.
<A NAME="lbAG">&nbsp;</A>
<H3>Version 1.02 (dpkg 1.18.19)</H3>
New import tags: ``:all'', ``:getters'', ``:parsers'', ``:mappers'', ``:operators''.
<A NAME="lbAH">&nbsp;</A>
<H3>Version 1.01 (dpkg 1.18.5)</H3>
New functions: <B>debarch_is_illegal()</B>, <B>debarch_list_parse()</B>.
<A NAME="lbAI">&nbsp;</A>
<H3>Version 1.00 (dpkg 1.18.2)</H3>
Mark the module as public.
<A NAME="lbAJ">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+dpkg-architecture">dpkg-architecture</A></B>(1).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="16"><A HREF="#lbAB">NAME</A><DD>
<DT id="17"><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT id="18"><A HREF="#lbAD">FUNCTIONS</A><DD>
<DT id="19"><A HREF="#lbAE">CHANGES</A><DD>
<DL>
<DT id="20"><A HREF="#lbAF">Version 1.03 (dpkg 1.19.1)</A><DD>
<DT id="21"><A HREF="#lbAG">Version 1.02 (dpkg 1.18.19)</A><DD>
<DT id="22"><A HREF="#lbAH">Version 1.01 (dpkg 1.18.5)</A><DD>
<DT id="23"><A HREF="#lbAI">Version 1.00 (dpkg 1.18.2)</A><DD>
</DL>
<DT id="24"><A HREF="#lbAJ">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:38 GMT, March 31, 2021
</BODY>
</HTML>