~ubuntu-branches/debian/stretch/gcc-6-doc/stretch

« back to all changes in this revision

Viewing changes to debian/patches/from-debian-gcc-gcc-SOURCE_DATE_EPOCH-doc.diff

  • Committer: Package Import Robot
  • Author(s): Guo Yixuan (郭溢譞)
  • Date: 2016-05-06 21:45:33 UTC
  • Revision ID: package-import@ubuntu.com-20160506214533-1ro717riyxkhd4kn
Tags: 6.1.0-1
* New upstream branch. (Closes: #822667)
* Synced patches with gcc-6, 6.1.1-1.
* Use https URIs for Vcs-*.
* Bumped standards version to 3.9.8, no changes needed.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: This patch was converted from gcc-SOURCE_DATE_EPOCH-doc.diff
 
2
# DP: Original comment:
 
3
# DP:
 
4
# DP: Allow embedded timestamps by C/C++ macros to be set externally (docs)
 
5
 
 
6
--- a/gcc/doc/cppenv.texi
 
7
+++ b/gcc/doc/cppenv.texi
 
8
@@ -79,4 +79,21 @@
 
9
 @ifclear cppmanual
 
10
 @xref{Preprocessor Options}.
 
11
 @end ifclear
 
12
+
 
13
+@item SOURCE_DATE_EPOCH
 
14
+
 
15
+If this variable is set, its value specifies a UNIX timestamp to be
 
16
+used in replacement of the current date and time in the @code{__DATE__}
 
17
+and @code{__TIME__} macros, so that the embedded timestamps become
 
18
+reproducible.
 
19
+
 
20
+The value of @env{SOURCE_DATE_EPOCH} must be a UNIX timestamp,
 
21
+defined as the number of seconds (excluding leap seconds) since
 
22
+01 Jan 1970 00:00:00 represented in ASCII, identical to the output of
 
23
+@samp{@command{date +%s}}.
 
24
+
 
25
+The value should be a known timestamp such as the last modification
 
26
+time of the source or package and it should be set by the build
 
27
+process.
 
28
+
 
29
 @end vtable