Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reproducible results: use stat instead of du #81

Open
marcpawl opened this issue Sep 27, 2016 · 1 comment
Open

reproducible results: use stat instead of du #81

marcpawl opened this issue Sep 27, 2016 · 1 comment

Comments

@marcpawl
Copy link

du is an estimate of the size of the files. (man du).
This estimate can vary greatly from run to run, and thus provide different results when trying to get a reproducible build.
USIZE=du $DU_ARGS "$archdir" | awk '{print $1}'
should be changed to use stat instead.

@megastep
Copy link
Owner

The main problem is that stat seems to be a BSD command and is probably not available on many System V UNIX systems.

That said, it might be a good idea to try to use it first and then fall back to the du use if it is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants