-
-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just tweaked the readmes (top-level and in the packaging/etc dir) and the site_init script sample itself. Signed-off-by: Mats Wichmann <[email protected]>
- Loading branch information
Showing
4 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
This directory contains a number of scripts/files useful when building/packageing SCons | ||
This directory contains helpers for doing reproducible builds with SCons. | ||
|
||
To force SCons to propagate SOURCE_DATE_EPOCH from the shell running SCons, | ||
the reproducible_site_init.py file can be installed (as site_init.py) | ||
in any site directory - either in the project itself, or more globally. | ||
See the manpage for default site directories or how to set your own path: | ||
https://scons.org/doc/production/HTML/scons-man.html#opt-site-dir. | ||
This code will make sure SOURCE_DATE_EPOCH is set in the execution | ||
environment, meaning any external commands run by SCons will have it | ||
in their environment. Any logic in your build system itself will still | ||
need to examine this variable. | ||
|
||
The shell script reproducible_install.sh can be used to install the | ||
Python site file in your user site directory ($HOME/.scons/site_scons). | ||
It is careful to not overwrite any existing site_init.py there. This | ||
only works for a POSIX shell. | ||
|
||
To force SCons to propagate SOURCE_DATE_EPOCH from the shell running SCons we're providing | ||
a script to create a ~/.scons/site_scons/site_init.py. | ||
Note that reproducible_install.sh will NOT overwite an existing ~/.scons/site_scons/site_init.py | ||
This supports https://reproducible-builds.org/specs/source-date-epoch/ | ||
If you wanted to include this in your build tree you would place in site_scons/site_init.py relative | ||
to your SConstruct. | ||
* reproducible_install.sh | ||
* reproducible_site_init.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters