summaryrefslogtreecommitdiffstats
path: root/man/sv/dpkg-buildpackage.pod
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:11 +0000
commitb4f7d8b1566e3220d0e9004499ef9c257e079c57 (patch)
treece0468ca8cf21380bef3d2aaacc9fcb30116e757 /man/sv/dpkg-buildpackage.pod
parentReleasing progress-linux version 1.22.6-0.0~progress7.99u1. (diff)
downloaddpkg-b4f7d8b1566e3220d0e9004499ef9c257e079c57.tar.xz
dpkg-b4f7d8b1566e3220d0e9004499ef9c257e079c57.zip
Merging upstream version 1.22.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man/sv/dpkg-buildpackage.pod')
-rw-r--r--man/sv/dpkg-buildpackage.pod48
1 files changed, 28 insertions, 20 deletions
diff --git a/man/sv/dpkg-buildpackage.pod b/man/sv/dpkg-buildpackage.pod
index 8834116..b509381 100644
--- a/man/sv/dpkg-buildpackage.pod
+++ b/man/sv/dpkg-buildpackage.pod
@@ -18,17 +18,21 @@ dpkg-buildpackage - bygg binär- eller källkodspaket från källkod
=head1 SYNOPS
-B<dpkg-buildpackage> [I<flagga>...]
+B<dpkg-buildpackage> [I<option>...] [B<-->] [I<filename>.dsc|I<directory>]
=head1 BESKRIVNING
-B<dpkg-buildprogram> är ett program som automatiserar processen med att bygga ett Debianpaket. Det består av följande steg:
+B<dpkg-buildpackage> is a program that automates the process of building a Debian package.
+
+The I<filename>.dsc and I<directory> arguments are supported since dpkg 1.22.7. Their semantics are experimental.
+
+It consists of the following steps:
=over
=item B<1.>
-Kroken B<preinit> körs innan några källkodsfiler läses. Byggmiljön förbereds genom att diverse miljövariabler sätts (se B<MILJÖ>), kör kroken B<init> och anropar B<dpkg-source --before-build> (såvida inte B<-T> eller B<--target> används).
+It runs the B<preinit> hook before reading any source file. If a B<.dsc> file has been specified it unpacks it anew and changes directory to it, if a I<directory> has been specified it changes directory to it, otherwise it expects the current directory to contain the source tree. It prepares the build environment by setting various environment variables (see B<ENVIRONMENT>), runs the B<init> hook, and calls B<dpkg-source --before-build> (unless B<-T> or B<--target> has been used).
=item B<2.>
@@ -40,7 +44,7 @@ Om ett eller flera specifika mål har valts med flaggan B<-T> eller B<--target>
=item B<4.>
-Kör kroken B<source> och anropar B<dpkg-source -b> för att skapa källkodspaketet (om ett B<source>-bygge (källkod) har ombetts via B<--build> eller liknande flaggor).
+It runs the B<source> hook and calls B<dpkg-source -b> to generate the source package (if a B<source> build has been requested with B<--build> or equivalent options, and if no B<.dsc> has been specified).
=item B<5.>
@@ -48,7 +52,7 @@ Kör kroken B<build> och anropar B<debian/rules> I<byggmål>, därefter körs kr
=item B<6.>
-Kör kroken B<buildinfo> och anropar B<dpkg-genbuildinfo> för att skapa en B<.buildinfo>-fil. Många av flaggorna till B<dpkg-buildpackage> vidaresänds till B<dpkg-genchanges>.
+It runs the B<buildinfo> hook and calls B<dpkg-genbuildinfo> to generate a B<.buildinfo> file. Several B<dpkg-buildpackage> options are forwarded to B<dpkg-genbuildinfo>. If a I<.dsc> has been specified, then it will be referenced in the generated B<.buildinfo> file, as we can ascertain the provenance of the source tree.
=item B<7.>
@@ -90,6 +94,10 @@ Kör kroken B<sign> och signerar med OpenPGP-programmet (såvida det inte är et
=item B<12.>
+If a B<.dsc> file has been specified, it removes the extracted source directory.
+
+=item B<13.>
+
Kör kroken B<done>.
=back
@@ -286,7 +294,7 @@ För att bygga ett Debianpaket körs normalt kommandot B<debian/rules> med flera
=item B<--check-command=>I<kontrollkommando>
-Kommando som kontrollerar själva B<.changes>-filen och byggda artifakter som refereras i filen (sedan dpkg 1.17.6). Kommandot ska ta sökvägen till B<.changes> som argument. Kommandot är normalt B<lintian>.
+Kommando som kontrollerar själva B<.changes>-filen och byggda artefakter som refereras i filen (sedan dpkg 1.17.6). Kommandot ska ta sökvägen till B<.changes> som argument. Kommandot är normalt B<lintian>.
=item B<--check-option=>I<val>
@@ -316,7 +324,7 @@ Hämtar B<DPKG_BUILDPACKAGE_HOOK_SOURCE_OPTIONS> med den blankstegsavdelade list
=item B<build>
-Hämtar B<DPKG_BUILDPACKAGE_HOOK_BUILD_TARGET> med namnet på det byggmål i B<debian/rules> som anropades, men bara om anropat.
+Gets B<DPKG_BUILDPACKAGE_HOOK_BUILD_TARGET> with the name of the B<debian/rules> build target called. Before dpkg 1.22.7 the variable was only set if the target was called.
=item B<binary>
@@ -374,7 +382,7 @@ Uppströmsversionen.
=item B<--buildinfo-file=>I<filnamn>
-Ange I<filnamn> att använda för den skapade B<.buildinfo>-filen (sedam dpkg 1.21.0).
+Ange I<filnamn> att använda för den skapade B<.buildinfo>-filen (sedan dpkg 1.21.0).
=item B<--buildinfo-option=>I<val>
@@ -416,7 +424,7 @@ Ange en Open PGP-nyckel-id (antingen ett fingeravtryck eller ett användar-ID) f
Ange en OpenPGP-I<nyckelfil> som innehåller den hemliga nyckeln att använda vid signering av paket (sedan dpkg 1.21-10).
-B<Observera>: Av säkerhetsskäl är det bäst att håll I<nyckelfil> låst med ett lösenord.
+B<Observera>: Av säkerhetsskäl är det bäst att hålla I<nyckelfil> låst med ett lösenord.
=item B<-us>, B<--unsigned-source>
@@ -424,7 +432,7 @@ Signera inte källkodspaketet (lång flagga sedan dpkg 1.18.8).
=item B<-ui>, B<--unsigned-buildinfo>
-Signera inte B<.buildinfo>-filen (sedam dpkg 1.18.19).
+Signera inte B<.buildinfo>-filen (sedan dpkg 1.18.19).
=item B<-uc>, B<--unsigned-changes>
@@ -514,7 +522,7 @@ Används för att signera filerna B<.changes>, B<.buildinfo> och B<.dsc>-filerna
=item B<DEB_BUILD_OPTIONS>
-If set, it will contain a space-separated list of options that affect the behavior of some dpkg tools involved in package building, and might affect the package build process if the code in F<debian/rules> honors them. These options can have parameters specified immediately after an equal sign (‘B<=>‘). For options that support multiple parameters, these will not be separated by spaces, as these are reserved to separate options.
+Om satt, innehåller en blankstegsavdelad lista med flaggor som påverkar beteendet för några dpkg-verktyg som används i paketbyggandet, och kan påverka paketbyggprocessen om koden i F<debian/rules> stöder dem. Dessa flaggor kan ha parametrar angivna omedelbart efter ett likhetstecken (”B<=>”). För flaggor som stöder flera parametrar avdelas de inte med blanksteg, eftersom dessa reserverats för att avdela flaggor.
Följande flaggor känns och stöds av dpkg-verktygen, andra flaggor som stöds av F<debian/rules> kan anges av distributionsspecifika policydokument.
@@ -540,21 +548,21 @@ Paketets F<debian/rules> bör se till att objekt inte får felsökningsinformati
B<dpkg-buildpackage> lägger till L<make(1)>-flaggan B<--no-print-directory> till miljövariabeln B<MAKEFLAGS>. Paketets F<debian/rules> bör minska pratsamheten, utan att bli helt tyst.
-=item B<hardening=>I<feature-spec>
+=item B<hardening=>I<funktionsangivelse>
-=item B<reproducible=>I<feature-spec>
+=item B<reproducible=>I<funktionsangivelse>
-=item B<abi=>I<feature-spec>
+=item B<abi=>I<funktionsangivelse>
-=item B<future=>I<feature-spec>
+=item B<future=>I<funktionsangivelse>
-=item B<qa=>I<feature-spec>
+=item B<qa=>I<funktionsangivelse>
-=item B<optimize=>I<feature-spec>
+=item B<optimize=>I<funktionsangivelse>
-=item B<sanitize=>I<feature-spec>
+=item B<sanitize=>I<funktionsangivelse>
-These are feature areas that control build flag features. See L<dpkg-buildflags(1)> for further details.
+Detta är funktionsområden som styr funktioner i byggflaggor. Se L<dpkg-buildflags(1)> för ytterligare detaljer.
=back
@@ -624,7 +632,7 @@ Mellan dpkg 1.14.17 och 1.16.1 exporterade B<dpkg-buildpackage> kompilatorflaggo
=head2 Förvalda byggmål
-B<dpkg-buildpackage> använder målen B<build-archi> och B<build-indep> från dpkg 1.16.2. Dessa mål krävs därmed, men för att undvika att existerande paket går sönder, och för att förenkla övergången, om källkodspaketet inte både bygger arkitektursoberoende och -beroende binärpaket (sedan dpkg 1.18.8) kommer den falla tillbaka till att använda målet B<build> om B<make -f debian/rules -gn> I<byggmål> returnerar statuskoden 2.
+B<dpkg-buildpackage> is using the B<build-arch> and B<build-indep> targets since dpkg 1.16.2. Before dpkg 1.22.7, there was code to try to detect the missing targets and fallback on the B<build> target. Those targets are thus mandatory.
=head1 SÄKERHET