From cae6d486b4294a0ba0a4694171380737c3818aac Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 20 May 2026 19:42:18 +0200 Subject: Document and test combined `build-dep --arch-only --indep-only` This is a supported configuration to only use bare Build-Depends and Build-Conflicts. --- doc/apt-get.8.xml | 5 +++++ test/integration/test-apt-get-build-dep | 14 ++++++++++++++ 2 files changed, 19 insertions(+) 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: APT::Get::Indep-Only. + + Only process build-dependencies that are neither architecture-dependent nor architecture-independent; + intersection of the previous two options. + + 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 -- cgit v1.2.3-70-g09d2