diff options
author | Guillem Jover <guillem@debian.org> | 2018-01-03 01:59:17 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-01-16 11:26:37 +0100 |
commit | 36f8ff64764d301d151e55c256b9913f1ada94e3 (patch) | |
tree | 336cabcda2dab9d013d9afff5759a38882e4cda3 | |
parent | f6095fa5db1e4d277a0660806875375d60286250 (diff) | |
download | dpkg-36f8ff64764d301d151e55c256b9913f1ada94e3.tar.gz |
spec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment
Proposed-by: Josh Triplett <josh@joshtriplett.org>
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | doc/rootless-builds.txt | 3 |
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 |