strip-nondeterminism1p
Strip nondeterministic information from files
Usage
strip-nondeterminism [-t
filetype]
filename ...
Overview
strip-nondeterminism is a tool to strip bits of nondeterministic information, such as timestamps, from files. It can be used as a post-processing step to make a build reproducible, when the build process itself cannot be made deterministic.
Options
-
-t filetype, --type filetype -
Use the normalizer for the given file type (ar, gzip, jar, zip). If this option is not specified, the file type is detected automatically based on the file name extension.
-
-T seconds, --timestamp seconds -
Instead of stripping timestamps from files, set them to the given number of seconds since January 1, 1970.
-
--clamp-timestamp -
Only replace timestamps if they are later than the time specified to
--timestamp. You can use this option to ensure that only timestamps introduced as part of the build process are replaced. NOT YET IMPLEMENTED FOR ALL FILE FORMATS.
-
--normalizers SPEC -
Enable or disable specific normalizers separated by a comma (eg.
+foo,-bar. The magic values+alland-allwill enable and disable all normalizers.
-
-h, --help -
Display this help message.
-
-V, --version -
Print only the version string and then quit.
Releases
7 releases since Debian 8 (Jessie); the text changed 6 times.
--clamp-timestamp since Debian 9 (Stretch);
--normalizers since Debian 11 (Bullseye);
--timestamp since Debian 9 (Stretch);
-T since Debian 9 (Stretch).