From 9cbc93dda22fb5e843a239026f2054f1da0f43e0 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 7 Dec 2023 14:12:53 +0100 Subject: [PATCH] Document reason to run it in chroot Signed-off-by: Nils Philippsen --- mock/py/mockbuild/plugins/rpmautospec.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mock/py/mockbuild/plugins/rpmautospec.py b/mock/py/mockbuild/plugins/rpmautospec.py index e635ff85a..82fda40d3 100644 --- a/mock/py/mockbuild/plugins/rpmautospec.py +++ b/mock/py/mockbuild/plugins/rpmautospec.py @@ -109,6 +109,11 @@ def attempt_process_distgit( command += [chroot_sources_spec] # command += [chroot_spec] # + # Run the rpmautospec tool in the chroot sandbox. This minimizes + # external dependencies in the host, e.g. the Koji build system. As a + # bonus, spec files will be processed in the environment they will be + # built for, reducing the impact of the host system on the outcome, + # leading to more deterministic results and better repeatable builds. self.buildroot.doChroot( command, shell=False,