summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-01-03 01:59:17 +0100
committerGuillem Jover <guillem@debian.org>2018-01-16 11:26:37 +0100
commit36f8ff64764d301d151e55c256b9913f1ada94e3 (patch)
tree336cabcda2dab9d013d9afff5759a38882e4cda3 /doc
parentf6095fa5db1e4d277a0660806875375d60286250 (diff)
downloaddpkg-36f8ff64764d301d151e55c256b9913f1ada94e3.tar.gz
spec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment
Proposed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/rootless-builds.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/rootless-builds.txt b/doc/rootless-builds.txt
index 29b034a8d..68617d5b4 100644
--- a/doc/rootless-builds.txt
+++ b/doc/rootless-builds.txt
@@ -102,7 +102,8 @@ This command is subject to the same requirements as the "gain-root-command"
that dpkg-buildpackage accepts via its "-r/--root-command" option, which
means that it can contain space-separated parameters. If dpkg-buildpackage is
called with "-r/--root-command", then dpkg-buildpackage shall use that value
-as the value for "DEB_GAIN_ROOT_CMD".
+as the value for "DEB_GAIN_ROOT_CMD". The command SHOULD preserve all the
+environment variables, unmodified.
The variable SHOULD only be provided when there is a need for it. Notably
when "Rules-Requires-Root" is either "no" or "binary-targets" the variable