[dpkg] 09/13: spec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment
Mattia Rizzolo
mattia at debian.org
Mon Jan 22 17:11:51 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit d3ccdd8ff131c4c5c6abd17d490d27b5f6f5bd6c
Author: Guillem Jover <guillem at debian.org>
Date: Wed Jan 3 01:59:17 2018 +0100
spec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment
Proposed-by: Josh Triplett <josh at joshtriplett.org>
(cherry picked from commit 36f8ff64764d301d151e55c256b9913f1ada94e3)
---
debian/changelog | 2 ++
doc/rootless-builds.txt | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 90ef236..76b04da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ dpkg (1.19.0.5) 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 at joshtriplett.org>.
* Architecture support:
- Add support for riscv64 CPU. Closes: #822914
Thanks to Manuel A. Fernandez Montecelo <mafm at debian.org>
diff --git a/doc/rootless-builds.txt b/doc/rootless-builds.txt
index 29b034a..68617d5 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list