<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Perhaps this is a known issue, or perhaps it is not. I didn't manage
to search the archives here, so forgive me if this is already
discussed.<br>
<br>
My problem is that I'm using quickbook from boost to generate
documentation. This application quickbook inserts a last-revision
field into a docbook.xsl file that is then processed by other tools.
The date written is of course the date at which the tool is run
(meaning ::time());<br>
<br>
The patch for quickbook is very simple:<br>
<pre><code>diff tools/quickbook/src/quickbook.cpp tools/quickbook/src/quickbook-n.cpp
469c469,473
< time_t t = std::time(0);
---
> time_t t;
> if (getenv("SOURCE_DATE_EPOCH"))
> t = strtol(getenv("SOURCE_DATE_EPOCH"), nullptr, 10);
> else
> t = std::time(0);
I've already submitted an issue for boost quickbook at github (<a class="moz-txt-link-freetext" href="https://github.com/boostorg/boost/issues/553">https://github.com/boostorg/boost/issues/553</a>)
Perhaps it is an idea to add this patch to the debian patches for libboost-tools-dev?
regards, -maarten
</code></pre>
<pre class="moz-signature" cols="72">--
Maarten L. Hekkelman
<a class="moz-txt-link-freetext" href="http://www.hekkelman.com/">http://www.hekkelman.com/</a></pre>
</body>
</html>