.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" 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 .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Debian::DpkgCross 3" .TH Debian::DpkgCross 3 "2022-12-06" "perl v5.36.0" "User Contributed Perl Documentation" .\" 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" .IX Header "Name" Debian::DpkgCross \- Package of dpkg-cross commonly used functions .PP The 2.x series of dpkg-cross is seeking to achieve its own removal by incorporating as much cross-building support as possible into dpkg itself. The number, scope and range of functions supported by this package is therefore only going to decrease. Any newly-written code using this package will need to keep up with changes in dpkg. Developers are recommended to join the debian-dpkg and debian-embedded mailing lists and keep their code under review. .SH "Copyright and License" .IX Header "Copyright and License" .Vb 3 \& Copyright (C) 2004 Nikita Youshchenko \& Copyright (C) 2004 Raphael Bossek \& Copyright (c) 2007\-2009 Neil Williams \& \& This program is free software; you can redistribute it and/or modify \& it under the terms of the GNU General Public License as published by \& the Free Software Foundation; either version 2 of the License, or \& (at your option) any later version. \& \& This program is distributed in the hope that it will be useful, \& but WITHOUT ANY WARRANTY; without even the implied warranty of \& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \& GNU General Public License for more details. \& \& You should have received a copy of the GNU General Public License \& along with this program; if not, write to the Free Software \& Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA. .Ve .SH "Bugs" .IX Header "Bugs" Please report bugs via the Debian Bug Tracking System. .SH "Support" .IX Header "Support" All enquiries to the \f(CW\*(C` mailing list. .SH "MAKEFLAGS" .IX Header "MAKEFLAGS" See bug #437507 Even if the other flags are needed \s-1CC, GCC\s0 and other compiler names should *NOT* be overridden in \f(CW$ENV\fR{'\s-1MAKEFLAGS\s0'} because this prevents packages compiling and running build tools using \s-1CC_FOR_BUILD. CDBS\s0 packages need to declare an empty override variable in debian/rules: .PP .Vb 1 \& DEB_CONFIGURE_SCRIPT_ENV= .Ve .PP Depending on progress with dpkg cross-building support, the remaining overrides may also be removed. Do not rely on these being set. .SH "read_config" .IX Header "read_config" Read '$conffile' and save the definition in global variables all recognised variables. .PP \&'$crossroot' will be set by \fBsetup()\fR. Until \fBsetup()\fR is called all \&\*(L"crossroot\-\*(R" settings are stored within '%allcrossroots'. .PP All package variables are stored within '%conf'. .PP No variables are skipped. .PP return: none .SH "get_config" .IX Header "get_config" Return the current configuration from read_config as a hash reference. .SH "get_version" .IX Header "get_version" Return the current DpkgCross version string used by all dpkg-cross scripts. .SH "dump_debug_data" .IX Header "dump_debug_data" Return a hashtable of assorted debug data collated during the current run that can be processed using Data::Dumper. .SH "rewrite_pkg_name" .IX Header "rewrite_pkg_name" Converts a package name into the dpkg-cross package name. .PP \&\f(CW$1\fR \- the package name to check and convert if needed return \- the cross-package name .SH "convert_filename($)" .IX Header "convert_filename($)" Converts an original .deb filename into the dpkg-cross .deb filename or converts a dpkg-cross .deb filename into the original .deb filename. .PP returns undef on error .SH "get_architecture" .IX Header "get_architecture" Returns the current architecture. .PP return: Current architecture or empty if not set. .SH "check_arch($arch)" .IX Header "check_arch($arch)" Checks that the supplied \f(CW$arch\fR is (or can be converted to) a \s-1DEB_HOST_GNU_TYPE\s0 that can be supported by dpkg-cross. .PP returns the \s-1DPKG_HOST_GNU_TYPE\s0 or undef .SH "setup" .IX Header "setup" Set global variables '$arch', '$crossbase', '$crossbin', '$crosslib32', \&'$crossdir', '$crossinc', '$crosslib', '$crosslib64', '$crossprefix', \&'$compilerpath' and '$deb_host_gnu_type' to defaults and substitute them with variables from '%conf' and '$arch'. .PP return: none .SH "create_tmpdir($basename)" .IX Header "create_tmpdir($basename)" Safely create a temporary directory .PP .Vb 1 \& $1: Directory basename (random suffix will be added) .Ve .PP return: Full directory pathname, undef if failed .ie n .SH "convert_path($multiarch, $path)" .el .SH "convert_path($multiarch, \f(CW$path\fP)" .IX Header "convert_path($multiarch, $path)" Convert path, substituting '$crossinc', '$crosslib', '$crosslib64', \&'$crosslib32', '$crossdir', allowing for multiarch paths. This function will be used while building foreign binary packages or converting \s-1GCC\s0 options. .PP .Vb 2 \& $1: Multiarch sub\-directory to strip \& $2: Directory (and file) to convert. .Ve .PP return: Converted path. .SH "simplify_path($path)" .IX Header "simplify_path($path)" Simplify path. Remove duplicate slashes, \*(L"./\*(R", \*(L"dir/..\*(R", etc .PP \&\f(CW$1:\fR Path to simplify. .PP return: Simplified path.