.\" dpkg manual page - dpkg-architecture(1) .\" .\" Copyright © 2005 Marcus Brinkmann .\" Copyright © 2005 Scott James Remnant .\" Copyright © 2006-2015 Guillem Jover .\" Copyright © 2009-2012 Rapha\(:el Hertzog .\" .\" This 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 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, see . . .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH dpkg\-architecture 1 2018-06-26 1.18.25 Dpkg\-sviten .nh .SH NAMN dpkg\-architecture \- st\(:all in och best\(:am arkitektur f\(:or paket som byggs . .SH SYNOPS \fBdpkg\-architecture\fP [\fIflagga\fP...] [\fI\(oatg\(:ard\fP] .PP . .SH BESKRIVNING \fBdpkg\-architecture\fP inneh\(oaller en funktion f\(:or att best\(:amma och st\(:alla in bygg\- och v\(:ardarkitekturerna f\(:or att bygga paket. .PP Byggarkitekturen best\(:ams alltid av ett externt anrop till \fBdpkg\fP(1) och kan inte st\(:allas in p\(oa kommandoraden. .PP Du kan ange v\(:ardarkitektur genom att ange en av, eller b\(oada, flaggorna \fB\-\-host\-arch\fP och \fB\-\-host\-type\fP. F\(:orvalet best\(:ams av ett externt anrop till \fBgcc\fP(1), eller \(:ar detsamma som byggarkitekturen varken \fBCC\fP eller gcc \(:ar tillg\(:angliga. Det r\(:acker att ange en av \fB\-\-host\-arch\fP och \fB\-host\-type\fP, v\(:ardet p\(oa den andra kommer st\(:allas in till ett fungerande f\(:orval. Det \(:ar faktiskt oftast b\(:attre att bara ange den ena eftersom \fBdpkg\-architecture\fP kommer varna dig om ditt val inte \(:overensst\(:ammer med f\(:orvalet. . .SH KOMMANDON .TP \fB\-l\fP, \fB\-\-list\fP Skriv milj\(:ovariabler, en per rad, p\(oa formatet \fIVARIABEL=v\(:arde\fP. Detta \(:ar f\(:orvald \(oatg\(:ard. .TP \fB\-e\fP, \fB\-\-equal\fP \fIarkitektur\fP Kontrollera arkitektur f\(:or likhet (sedan dpkg 1.13.13). Det j\(:amf\(:or den aktuella eller angivna Debian\-v\(:ardarkitekturen mot \fIarkitektur\fP, f\(:or att se om de \(:ar lika. \(oAtg\(:arden expanderar inte jokertecken i arkitekturer. Kommandot avslutar med status 0 om det \(:ar en tr\(:aff, 1 om det inte \(:ar en tr\(:aff. .TP \fB\-i\fP, \fB\-\-is\fP \fIarkitektur\-jokertecken\fP Kontrollera arkitekturens identitet (sedan dpkg 1.13.13). Det j\(:amf\(:or den aktuella eller angivna Debian\-v\(:ardarkitekturen mot \fIarkitektur\-jokertecken\fP efter att ha expanderat det som ett arkitektur\-jokertecken, f\(:or att se om de \(:ar lika. Kommandot avslutar med status 0 om det \(:ar en tr\(:aff, 1 om det inte \(:ar en tr\(:aff. .TP \fB\-q\fP, \fB\-\-query\fP \fIvariabelnamn\fP Skriv v\(:ardet p\(oa en enkel variabel. .TP \fB\-s\fP, \fB\-\-print\-set\fP Visar ett exportkommando. Detta kan anv\(:andas f\(:or att s\(:atta milj\(:ovariabler med eval. .TP \fB\-u\fP, \fB\-\-print\-unset\fP Visar ett kommando liknande \fB\-\-print\-unset\fP men f\(:or att ta bort v\(:ardet f\(:or alla variabler. .TP \fB\-c\fP, \fB\-\-command\fP \fIkommando\fP Exekvera ett \fIkommando\fP i en milj\(:o som har alla variabler satta till det best\(:amda v\(:ardet. .TP \fB\-L\fP, \fB\-\-list\-known\fP Visar en lista \(:over giltiga arkitekturnamn. M\(:ojligen begr\(:ansad av en eller flera av tr\(:affvalen \fB\-\-match\-wildcard\fP, \fB\-\-match\-bits\fP eller \fB\-\-match\-endian\fP (sedan dpkg 1.17.14). .TP \fB\-?\fP, \fB\-\-help\fP Visar hj\(:alpsk\(:arm och avslutar. .TP \fB\-\-version\fP Visar version och avslutar. . .SH FLAGGOR .TP \fB\-a\fP, \fB\-\-host\-arch\fP \fIarkitektur\fP S\(:atter v\(:ard\-Debianarkitekturen. .TP \fB\-t\fP, \fB\-\-host\-type\fP \fIgnu\-system\-typ\fP S\(:atter v\(:ard\-GNU\-systemtypen. .TP \fB\-A\fP, \fB\-\-target\-arch\fP \fIarkitektur\fP Set the target Debian architecture (since dpkg 1.17.14). .TP \fB\-T\fP, \fB\-\-target\-type\fP \fIgnu\-system\-typ\fP Set the target GNU system type (since dpkg 1.17.14). .TP \fB\-W\fP, \fB\-\-match\-wildcard\fP \fIarkitektur\-jokertecken\fP Begr\(:ansa arkitekturerna som visas med \fB\-\-list\-known\fP till en som motsvarar det angivna arkitektur\-jokertecknet (sedan dpkg 1.17.14). .TP \fB\-B\fP, \fB\-\-match\-bits\fP \fIarkitektur\-bitar\fP Begr\(:ansa arkitekturerna som visas med \fB\-\-list\-known\fP till en med angivet antal CPU\-bitar (sedan dpkg 1.17.14). Antingen \fB32\fP eller \fB64\fP. .TP \fB\-E\fP, \fB\-\-match\-endian\fP \fIarchitecture\-endian\fP Begr\(:ansa arkitekturerna som visas med \fB\-\-list\-known\fP till en som har angiven endian (sedan dpkg 1.17.14). Antingen \fBlittle\fP (liten endian) eller \fBbig\fP (stor endian). .TP \fB\-f\fP, \fB\-\-force\fP V\(:arden som s\(:atts av befintliga milj\(:ovariabler med samma namn som de som anv\(:ands av skriptet anv\(:ands (t.ex av \fBdpkg\-architecture\fP), s\(oavida inte denna tvingande flagga anges. Det g\(:or det m\(:ojligt f\(:or anv\(:andaren att \(:overstyra ett v\(:arde \(:aven om anropet till \fBdpkg\-architecture\fP \(:ar begravt djupt inuti ett annat skript (till exempel \fBdpkg\-buildpackage\fP(1)). . .SH TERMINOLOGI .IP byggmaskin 4 Maskinen paketet byggs p\(oa. .IP v\(:ardmaskin 4 Maskinen paketet byggs f\(:or. .IP m\(oalmaskin 4 The machine the compiler is building for. This is only needed when building a cross\-toolchain, one that will be built on the build architecture, to be run on the host architecture, and to build code for the target architecture. .IP Debianarkitektur 4 Debianarkitekturstr\(:angen, vilken anger bin\(:artr\(:adet i FTP\-arkivet. Exempel: i386, sparc, hurd\-i386. .IP "Debian architecture tuple" 4 A Debian architecture tuple is the fully qualified architecture with all its components spelled out. This differs with Debian architectures in that at least the \fIcpu\fP component does not embed the \fIabi\fP. The current tuple has the form \fIabi\fP\-\fIlibc\fP\-\fIos\fP\-\fIcpu\fP. Examples: base\-gnu\-linux\-amd64, eabihf\-musl\-linux\-arm. .IP "Debian architecture wildcard" 4 A Debian architecture wildcard is a special architecture string that will match any real architecture being part of it. The general form is a Debian architecture tuple with four or less elements, and with at least one of them being \fBany\fP. Missing elements of the tuple are prefixed implicitly as \fBany\fP, and thus the following pairs are equivalent: .nf \fBany\fP\-\fBany\fP\-\fBany\fP\-\fBany\fP = \fBany\fP \fBany\fP\-\fBany\fP\-\fIos\fP\-\fBany\fP = \fIos\fP\-\fBany\fP \fBany\fP\-\fIlibc\fP\-\fBany\fP\-\fBany\fP = \fIlibc\fP\-\fBany\fP\-\fBany\fP .fi Examples: linux\-any, any\-i386, hurd\-any, eabi\-any\-any\-arm, musl\-any\-any. .IP GNU\-systemtyp 4 An architecture specification string consisting of two parts separated by a hyphen: cpu and system. Examples: i586\-linux\-gnu, sparc\-linux\-gnu, i686\-gnu, x86_64\-netbsd. .IP "multiarch triplet" 4 The clarified GNU system type, used for filesystem paths. This triplet does not change even when the baseline ISA gets bumped, so that the resulting paths are stable over time. The only current difference with the GNU system type is that the CPU part for i386 based systems is always i386. Examples: i386\-linux\-gnu, x86_64\-linux\-gnu. Example paths: /lib/powerpc64le\-linux\-gnu/, /usr/lib/i386\-kfreebsd\-gnu/. . .SH VARIABLER F\(:oljande variabler s\(:atts av \fBdpkg\-architecture\fP: .IP \fBDEB_BUILD_ARCH\fP 4 Debianarkitekturen f\(:or byggmaskinen. .IP \fBDEB_BUILD_ARCH_ABI\fP 4 The Debian abi name of the build machine (since dpkg 1.18.11). .IP \fBDEB_BUILD_ARCH_LIBC\fP 4 The Debian libc name of the build machine (since dpkg 1.18.11). .IP \fBDEB_BUILD_ARCH_OS\fP 4 Debiansystemnamnet p\(oa byggmaskinen (sedan dpkg 1.13.2). .IP \fBDEB_BUILD_ARCH_CPU\fP 4 Debian\-processornamnet f\(:or byggmaskinen (sedan dpkg 1.13.). .IP \fBDEB_BUILD_ARCH_BITS\fP 4 Pekarstorleken f\(:or byggmaskinen (i bitar; sedan dpkg 1.15.4). .IP \fBDEB_BUILD_ARCH_ENDIAN\fP 4 Endian f\(:or byggmaskinen (little / big; sedan dpkg 1.15.4). .IP \fBDEB_BUILD_GNU_CPU\fP 4 CPU\-delen av \fBDEB_BUILD_GNU_TYPE\fP. .IP \fBDEB_BUILD_GNU_SYSTEM\fP 4 Systemdelen av \fBDEB_BUILD_GNU_TYPE\fP. .IP \fBDEB_BUILD_GNU_TYPE\fP 4 GNU\-systemtypen f\(:or byggmaskinen. .IP \fBDEB_BUILD_MULTIARCH\fP 4 Den f\(:ortydligade GNU\-systemtypen f\(:or byggmaskinen, anv\(:ands f\(:or s\(:okv\(:agar i filsystemet. .IP \fBDEB_HOST_ARCH\fP 4 Debianarkitekturen f\(:or v\(:ardmaskinen. .IP \fBDEB_HOST_ARCH_ABI\fP 4 The Debian abi name of the host machine (since dpkg 1.18.11). .IP \fBDEB_HOST_ARCH_LIBC\fP 4 The Debian libc name of the host machine (since dpkg 1.18.11). .IP \fBDEB_HOST_ARCH_OS\fP 4 Debiansystemnamnet f\(:or v\(:ardmaskinen (sedan dpkg 1.13.2). .IP \fBDEB_HOST_ARCH_CPU\fP 4 Debian\-processornamnet f\(:or v\(:ardmaskinen (sedan dpkg 1.13.2). .IP \fBDEB_HOST_ARCH_BITS\fP 4 Pekarstorleken f\(:or v\(:ardmaskinen (i bitar; sedan dpkg 1.15.4). .IP \fBDEB_HOST_ARCH_ENDIAN\fP 4 Endian f\(:or v\(:ardmaskinen (little / big; sedan dpkg 1.15.4). .IP \fBDEB_HOST_GNU_CPU\fP 4 \s-1CPU\s0\-delen av \fBDEB_HOST_GNU_TYPE\fP. .IP \fBDEB_HOST_GNU_SYSTEM\fP 4 Systemdelen av \fBDEB_HOST_GNU_TYPE\fP. .IP \fBDEB_HOST_GNU_TYPE\fP 4 GNU\-systemtypen f\(:or v\(:ardmaskinen. .IP \fBDEB_HOST_MULTIARCH\fP 4 Den f\(:ortydligade GNU\-systemtypen f\(:or v\(:ardmaskinen, anv\(:ands f\(:or s\(:okv\(:agar i filsystemet. .IP \fBDEB_TARGET_ARCH\fP 4 Debianarkitekturen f\(:or m\(oalmaskinen (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_ARCH_ABI\fP 4 The Debian abi name of the target machine (since dpkg 1.18.11). .IP \fBDEB_TARGET_ARCH_LIBC\fP 4 The Debian libc name of the target machine (since dpkg 1.18.11). .IP \fBDEB_TARGET_ARCH_OS\fP 4 Debiansystemnamnet f\(:or m\(oalmaskinen (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_ARCH_CPU\fP 4 Debian\-processornamnet f\(:or m\(oalmaskinen (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_ARCH_BITS\fP 4 Pekarstorleken f\(:or m\(oalmaskinen (i bitar; sedan dpkg 1.17.14). .IP \fBDEB_TARGET_ARCH_ENDIAN\fP 4 Endian f\(:or m\(oalmaskinen (little / big; sedan dpkg 1.17.14). .IP \fBDEB_TARGET_GNU_CPU\fP 4 CPU\-delen av \fBDEB_TARGET_GNU_TYPE\fP (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_GNU_SYSTEM\fP 4 Systemdelen av \fBDEB_TARGET_GNU_TYPE\fP (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_GNU_TYPE\fP 4 GNU\-systemnamnet f\(:or m\(oalmaskinen (sedan dpkg 1.17.14). .IP \fBDEB_TARGET_MULTIARCH\fP 4 Den f\(:ortydligade GNU\-systemtypen f\(:or m\(oalmaskinen, anv\(:ands f\(:or s\(:okv\(:agar i filsystemet (sedan dpkg 1.17.14). . .SH FILER .SS Arkitekturtabeller All these files have to be present for \fBdpkg\-architecture\fP to work. Their location can be overridden at runtime with the environment variable \fBDPKG_DATADIR\fP. These tables contain a format \fBVersion\fP pseudo\-field on their first line to mark their format, so that parsers can check if they understand it, such as "# Version=1.0". .TP \fI/usr/share/dpkg/cputable\fP Table of known CPU names and mapping to their GNU name. Format version 1.0 (since dpkg 1.13.2). .TP \fI/usr/share/dpkg/ostable\fP Table of known operating system names and mapping to their GNU name. Format version 2.0 (since dpkg 1.18.11). .TP \fI/usr/share/dpkg/tupletable\fP Mapping between Debian architecture tuples and Debian architecture names. Format version 1.0 (since dpkg 1.18.11). .TP \fI/usr/share/dpkg/abitable\fP Table of Debian architecture ABI attribute overrides. Format version 2.0 (since dpkg 1.18.11). .SS Paketeringsst\(:od .TP \fI/usr/share/dpkg/architecture.mk\fP Makefile\-utklipp som s\(:atter alla variabler \fBdpkg\-architecture\fP skriver (sedan dpkg 1.16.1): . .SH EXEMPEL \fBdpkg\-architecture\fP godtar flaggan \fB\-a\fP och s\(:ander den vidare till \fBdpkg\-architecture\fP. Andra exempel: .IP CC=i386\-gnu\-gcc dpkg\-architecture \-c debian/rules build .IP eval \`dpkg\-architecture \-u\` .PP Kontrollera om aktuell eller angiven arkitektur \(:ar samma en arkitektur: .IP dpkg\-architecture \-elinux\-alpha .IP dpkg\-architecture \-amips \-elinux\-mips .PP Se om den aktuella eller angivna arkitekturen \(:ar ett Linuxsystem: .IP dpkg\-architecture \-ilinux\-any .IP dpkg\-architecture \-ai386 \-ilinux\-any . .SS "Anv\(:anda i debian/rules" Milj\(:ovariablerna som s\(:atts av \fBdpkg\-architecture\fP s\(:ands till \fIdebian/rules\fP som make\-variabler (se dokumentationen f\(:or make). Du b\(:or dock inte bero p\(oa dem eftersom detta f\(:orhindrar manuella anrop till skriptet. Du b\(:or ist\(:allet alltid initiera dem med \fBdpkg\-architecture\fP med \fB\-q\fP\-flaggan. H\(:ar \(:ar n\(oagra exempel, vilka \(:aven visar hur du kan f\(:orb\(:attra st\(:odet f\(:or korskompilering i ditt paket: .PP H\(:amta GNU\-systemtypen och vidares\(:and den till ./configure: .PP .RS 4 .nf DEB_BUILD_GNU_TYPE ?= $(shell dpkg\-architecture \-qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE ?= $(shell dpkg\-architecture \-qDEB_HOST_GNU_TYPE) [...] ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += \-\-build=$(DEB_HOST_GNU_TYPE) else confflags += \-\-build=$(DEB_BUILD_GNU_TYPE) \e \-\-host=$(DEB_HOST_GNU_TYPE) endif [...] \&./configure $(confflags) .fi .RE .PP G\(:or n\(oagot endast f\(:or en specifik arkitektur: .PP .RS 4 .nf DEB_HOST_ARCH ?= $(shell dpkg\-architecture \-qDEB_HOST_ARCH) ifeq ($(DEB_HOST_ARCH),alpha) [...] endif .fi .RE .PP eller, om du bara vill testa p\(oa processor\- eller OS\-typ, anv\(:and variablerna \fBDEB_HOST_ARCH_CPU\fP eller \fBDEB_HOST_ARCH_OS\fP. .PP Observera att du \(:aven kan bero p\(oa att ett externt Makefile\-utklipp s\(:atter alla variabler \fBdpkg\-architecture\fP kan tillhandah\(oalla: .PP .RS 4 .nf include /usr/share/dpkg/architecture.mk ifeq ($(DEB_HOST_ARCH),alpha) [...] endif .fi .RE .PP Oavsett b\(:or du aldrig anv\(:anda \fBdpkg \-\-print\-architecture\fP f\(:or att h\(:amta arkitekturinformation n\(:ar paketet byggs. . .SH MILJ\(:OVARIABLER .TP \fBDPKG_DATADIR\fP If set, it will be used as the \fBdpkg\fP data directory, where the architecture tables are located (since dpkg 1.14.17). Defaults to \(Fo/usr/share/dpkg\(Fc. .SH ANTECKNINGAR De l\(oanga kommando\- och flaggnamn \(:ar endast tillg\(:angliga sedan dpkg 1.17.17. . .SH "SE \(:AVEN" \fBdpkg\-buildpackage\fP(1), \fBdpkg\-cross\fP(1). .SH \(:OVERS\(:ATTNING Peter Krefting och Daniel Nylander.