aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/dist
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-04-07 11:33:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-07 11:43:04 +0200
commite9f69e067da3e096e1e64be70ec2b6de30f71d2c (patch)
tree478c9f0ec86a225398424bcc9305270ca6800339 /libbuild2/dist
parent5e51d523e71231cb190e9ed981962df527f4ee7e (diff)
Register environment variables for hermetic build configurations
Diffstat (limited to 'libbuild2/dist')
-rw-r--r--libbuild2/dist/init.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/libbuild2/dist/init.cxx b/libbuild2/dist/init.cxx
index a3d1e3f..2be4c3f 100644
--- a/libbuild2/dist/init.cxx
+++ b/libbuild2/dist/init.cxx
@@ -219,6 +219,28 @@ namespace build2
config::unsave_variable (rs, v);
}
+ // Environment.
+ //
+ // Preparing a distribution may involve executing the following
+ // programs:
+ //
+ // install
+ //
+ // While some install implementations recognize environment variables,
+ // none of them affect our invocations (see the install module for
+ // analysis).
+ //
+ // *sum programs (md5sum, sha1sum, sha256sum, etc)
+ //
+ // These do not recognize any environment variables (at least the
+ // GNU coreutils versions).
+ //
+ //
+ // tar, zip, gzip, xz (and whatever tar may invoke)
+ //
+ // This is a can of worms that we currently don't touch (perhaps this
+ // will sort itself out if/when we switch to libarchive).
+
return true;
}