summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--doc/rootless-builds.txt3
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index c6080560c..4b630810a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
known users.
* Do not set DEB_GAIN_ROOT_CMD in dpkg-buildpackage when the R³ value is
<implementations-keywords>, following the specification.
+ * Specify that DEB_GAIN_ROOT_CMD in R³ should preserve the environment.
+ Proposed by Josh Triplett <josh@joshtriplett.org>.
* Architecture support:
- Add support for riscv64 CPU. Closes: #822914
Thanks to Manuel A. Fernandez Montecelo <mafm@debian.org>
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