diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-03-18 02:12:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2017-03-18 02:12:42 +0000 |
commit | a0a2e113c59a01a599cbb91752a5ba344b6f92e8 (patch) | |
tree | c7acc253da2d62df6878906665207db366546f91 /doc | |
parent | 42f622dfcc42fb36828f2b6e9ba1127ca65739dd (diff) | |
download | netpbm-mirror-a0a2e113c59a01a599cbb91752a5ba344b6f92e8.tar.gz netpbm-mirror-a0a2e113c59a01a599cbb91752a5ba344b6f92e8.tar.xz netpbm-mirror-a0a2e113c59a01a599cbb91752a5ba344b6f92e8.zip |
Use SOURCE_DATE_EPOCH
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2918 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'doc')
-rw-r--r-- | doc/HISTORY | 6 | ||||
-rw-r--r-- | doc/INSTALL | 29 |
2 files changed, 35 insertions, 0 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 77ddfbd2..b5e853a5 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -13,6 +13,12 @@ not yet BJH Release 10.78.00 pnmtotiff: Fail with -miniswhite or -minisblack on color image rather than produce an invalid TIFF. + --version global option: with SOURCE_DATE_EPOCH environment + variable, display source code datetime instead of build + datetime. And when displaying build datetime, do it in the + local time of the process running the command instead of the + process that did the build. + tifftopnm: Fix memory corruption when image is more pixels than can be represented as a C unsigned integer. Broken in Netpbm 10.11 (October 2002). diff --git a/doc/INSTALL b/doc/INSTALL index f0b3e87b..a71e5179 100644 --- a/doc/INSTALL +++ b/doc/INSTALL @@ -109,6 +109,35 @@ If you use the 'configure' program, be sure to edit config.mk _after_ you run 'configure', since 'configure' generates config.mk. +COMPILED-IN BUILD DATETIME +-------------------------- + +By default, the Netpbm build system builds the datetime that you built it +into libnetpbm, so the --version global command line option can display it. +It's actually just when you began building from a clean build tree; if you +modify code and rebuild, the build datetime does not change. + +This is problematic for any of various reasons you might want to compare two +versions of libnetpbm, or anything of which it is part, for equality. Two +libnetpbms that are identical except that they were built at different times +would compare as different. + +Furthermore, as version information, the modification datetime of the source +code is often more useful than the build datetime. + +For these reasons, it is possible to change this timestamping behavior by +setting the environment variable 'SOURCE_DATA_EPOCH'. That is supposed to be +the POSIX datetime value (decimal number of seconds since 1969, excluding leap +seconds) for when the source code was last modified. When you set this, +before doing 'make' for the first time in a clean build tree, the resulting +libnetpbm contains that information and not build datetime information, and +the --version global option causes a different message. + +The name and meaning of the environment variable is taken from a standard +described at https://reproducible-builds.org/specs/source-date-epoch/ on March +16, 2017. + + AUTOMATING THE BUILD -------------------- |