[med-svn] [sleepyhead] 01/02: Adapt source code to generate reproducible builds.

Sergio Durigan Junior sergiodj-guest at moszumanska.debian.org
Fri Dec 25 06:06:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

sergiodj-guest pushed a commit to branch master
in repository sleepyhead.

commit b13d7cb3c77c6d06558e6736d6eff157d0187aaf
Author: Sergio Durigan Junior <sergiodj at sergiodj.net>
Date:   Tue Dec 22 23:09:52 2015 -0500

    Adapt source code to generate reproducible builds.
    
    Because of the use of the __TIME__ and __DATE__ macros (in order to
    print the compilation date for the user), it was not possible to
    generate reproducible builds.  I am not adding a patch that removes
    the dependency on these macros, which should be enough.  The patch has
    also been proposed upstream; I will remove it from the package as soon
    (and if) it gets accepted.
---
 ...urce-code-to-generate-reproducible-builds.patch | 33 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 34 insertions(+)

diff --git a/debian/patches/0003-Adapt-source-code-to-generate-reproducible-builds.patch b/debian/patches/0003-Adapt-source-code-to-generate-reproducible-builds.patch
new file mode 100644
index 0000000..b52a803
--- /dev/null
+++ b/debian/patches/0003-Adapt-source-code-to-generate-reproducible-builds.patch
@@ -0,0 +1,33 @@
+From: Sergio Durigan Junior <sergiodj at sergiodj.net>
+Date: Mon, 21 Dec 2015 19:33:05 -0500
+Subject: Adapt source code to generate reproducible builds
+
+Due to the use of __TIME__ and __DATE__ macros, it was not possible to
+generate reproducible builds.  This patch removes the use of those
+macros.  It was proposed upstream, and if accepted it will be dropped
+from the package.
+---
+ sleepyhead/mainwindow.cpp | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp
+index c835ee8..65743f6 100644
+--- a/sleepyhead/mainwindow.cpp
++++ b/sleepyhead/mainwindow.cpp
+@@ -150,7 +150,7 @@ MainWindow::MainWindow(QWidget *parent) :
+ 
+     this->setWindowTitle(STR_TR_SleepyHead + QString(" v%1 (" + tr("Profile") + ": %2)").arg(version).arg(PREF[STR_GEN_Profile].toString()));
+ 
+-    qDebug() << STR_TR_SleepyHead << VersionString << "built with Qt" << QT_VERSION_STR << "on" << __DATE__ << __TIME__;
++    qDebug() << STR_TR_SleepyHead << VersionString << "built with Qt" << QT_VERSION_STR;
+ 
+ #ifdef BROKEN_OPENGL_BUILD
+     qDebug() << "This build has been created especially for computers with older graphics hardware.\n";
+@@ -1368,7 +1368,6 @@ void MainWindow::on_action_About_triggered()
+                 "<table width=100%><tr><td>"
+                 "<p><h1>" + STR_TR_SleepyHead +
+                 QString(" v%1 (%2)</h1></p><font color=black><p>").arg(VersionString).arg(ReleaseStatus) +
+-                tr("Build Date: %1 %2").arg(__DATE__).arg(__TIME__) +
+                 QString("<br/>%1<br/>").arg(gitrev) +
+                 tr("Graphics Engine: %1").arg(getGraphicsEngine())+
+                 "<br/>" +
diff --git a/debian/patches/series b/debian/patches/series
index 1c66b47..ba21df5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Do-not-use-bundled-libraries.patch
 0002-Create-install-rule-on-Makefile.patch
+0003-Adapt-source-code-to-generate-reproducible-builds.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/sleepyhead.git



More information about the debian-med-commit mailing list