diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-05-20 19:42:18 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-05-20 19:46:35 +0200 |
| commit | cae6d486b4294a0ba0a4694171380737c3818aac (patch) | |
| tree | 8ea992d4658fdc2f257461d21c5d455d20e4deae | |
| parent | 6014db70d590cd34516acd3069c578d9bf8fdb17 (diff) | |
Document and test combined `build-dep --arch-only --indep-only`
This is a supported configuration to only use bare Build-Depends
and Build-Conflicts.
| -rw-r--r-- | doc/apt-get.8.xml | 5 | ||||
| -rwxr-xr-x | test/integration/test-apt-get-build-dep | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index e5bc0fc6b..746f5075e 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -634,6 +634,11 @@ Configuration Item: <literal>APT::Get::Indep-Only</literal>.</para></listitem> </varlistentry> + <varlistentry><term><option>--arch-only</option> <option>--indep-only</option></term> + <listitem><para>Only process build-dependencies that are neither architecture-dependent nor architecture-independent; + intersection of the previous two options.</para></listitem> + </varlistentry> + <varlistentry><term><option>--allow-unauthenticated</option></term> <listitem><para>Ignore if packages can't be authenticated and don't prompt about it. This can be useful while working with local repositories, diff --git a/test/integration/test-apt-get-build-dep b/test/integration/test-apt-get-build-dep index f6158a115..de36661c5 100755 --- a/test/integration/test-apt-get-build-dep +++ b/test/integration/test-apt-get-build-dep @@ -148,3 +148,17 @@ Inst build-essential (1 stable [i386]) Conf build-depends (1 stable [i386]) Conf build-depends-indep (1 stable [i386]) Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --indep-only + +testsuccessequal "Note, using file './foobar.dsc' to get the build dependencies +Reading package lists... +Building dependency tree... +The following packages will be REMOVED: + build-conflicts +The following NEW packages will be installed: + build-depends build-essential +0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. +Remv build-conflicts [1] +Inst build-depends (1 stable [i386]) +Inst build-essential (1 stable [i386]) +Conf build-depends (1 stable [i386]) +Conf build-essential (1 stable [i386])" aptget build-dep --simulate ./foobar.dsc --arch-only --indep-only |
