[Reproducible-commits] [doxygen] 01/01: Make doxygen produce reproducible output
Mattia Rizzolo
mattia at debian.org
Thu Jun 16 00:03:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch pu/reproducible_builds
in repository doxygen.
commit 7011644ecd2ab7ef69669c3fb0aba7d85ad04c4d
Author: akira <marivalenm at gmail.com>
Date: Sun Jul 5 22:06:00 2015 +0200
Make doxygen produce reproducible output
---
debian/changelog | 10 ++++
...tion-to-produce-timezone-independent-timestamps | 59 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 70 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f9c0e2a..e8b735c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+doxygen (1.8.11-2.0~reproducible0) UNRELEASED; urgency=low
+
+ * Non-maintainer upload
+ * Applied upstream commit (patch from Ximin Luo)
+ https://github.com/doxygen/doxygen/commit/9a2c7bbfb0c53b4532db7280e6804c7ce76d70a3
+ Use UTC timezone when displaying QDateTimes parsed from SOURCE_DATE_EPOCH
+ Closes: #792201
+
+ -- Mattia Rizzolo <mattia at debian.org> Wed, 15 Jun 2016 23:22:08 +0000
+
doxygen (1.8.11-2) unstable; urgency=medium
* Fix python version number extraction for python release candidate builds.
diff --git a/debian/patches/Modified-function-to-produce-timezone-independent-timestamps b/debian/patches/Modified-function-to-produce-timezone-independent-timestamps
new file mode 100644
index 0000000..a00a653
--- /dev/null
+++ b/debian/patches/Modified-function-to-produce-timezone-independent-timestamps
@@ -0,0 +1,59 @@
+Description: Use UTC timezone when displaying QDateTimes parsed from SOURCE_DATE_EPOCH
+Author: Ximin Luo <infinity0 at pwned.gg>
+Applied-Upstream: https://github.com/doxygen/doxygen/commit/9a2c7bbfb0c53b4532db7280e6804c7ce76d70a3
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=751984
+Bug-Debian: https://bugs.debian.org/792201
+
+--- a/qtools/qdatetime.cpp
++++ b/qtools/qdatetime.cpp
+@@ -1158,6 +1158,29 @@
+
+
+ /*!
++ Sets the UTC date and time given the number of seconds that have passed
++ since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC).
++
++ Note that Microsoft Windows supports only a limited range of values for
++ \a secsSince1Jan1970UTC.
++*/
++
++void QDateTime::setTimeUtc_t( uint secsSince1Jan1970UTC )
++{
++ time_t tmp = (time_t) secsSince1Jan1970UTC;
++ tm *tM = gmtime( &tmp );
++ if ( !tM ) {
++ d.jd = QDate::greg2jul( 1970, 1, 1 );
++ t.ds = 0;
++ return;
++ }
++ d.jd = QDate::greg2jul( tM->tm_year + 1900, tM->tm_mon + 1, tM->tm_mday );
++ t.ds = MSECS_PER_HOUR*tM->tm_hour + MSECS_PER_MIN*tM->tm_min +
++ 1000*tM->tm_sec;
++}
++
++
++/*!
+ Returns the datetime as a string.
+
+ The string format is "Sat May 20 03:40:13 1998".
+--- a/qtools/qdatetime.h
++++ b/qtools/qdatetime.h
+@@ -173,6 +173,7 @@
+ void setDate( const QDate &date ) { d=date; }
+ void setTime( const QTime &time ) { t=time; }
+ void setTime_t( uint secsSince1Jan1970UTC );
++ void setTimeUtc_t( uint secsSince1Jan1970UTC );
+
+ QString toString() const;
+
+--- a/src/util.cpp
++++ b/src/util.cpp
+@@ -2497,7 +2497,7 @@
+ }
+ else // all ok, replace current time with epoch value
+ {
+- current.setTime_t((ulong)epoch); // TODO: add support for 64bit epoch value
++ current.setTimeUtc_t((ulong)epoch); // TODO: add support for 64bit epoch value
+ }
+ }
+ return theTranslator->trDateTime(current.date().year(),
diff --git a/debian/patches/series b/debian/patches/series
index dc487ba..bd2029f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ no-timestamps.diff
no-rpath.diff
issue759241.diff
pyversion.diff
+Modified-function-to-produce-timezone-independent-timestamps
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/doxygen.git
More information about the Reproducible-commits
mailing list