[Python-modules-commits] r31657 - in packages/pyqt5/trunk/debian (4 files)

mitya57 at users.alioth.debian.org mitya57 at users.alioth.debian.org
Sun Jan 11 11:58:15 UTC 2015


    Date: Sunday, January 11, 2015 @ 11:55:17
  Author: mitya57
Revision: 31657

Added patch which removes embedding of timestamps in generated
files, to enable reproducible builds in packages build-depending
on pyqt5 (closes: #774510).

Added:
  packages/pyqt5/trunk/debian/patches/
  packages/pyqt5/trunk/debian/patches/remove_timestamps.diff
  packages/pyqt5/trunk/debian/patches/series
Modified:
  packages/pyqt5/trunk/debian/changelog

Modified: packages/pyqt5/trunk/debian/changelog
===================================================================
--- packages/pyqt5/trunk/debian/changelog	2015-01-08 14:17:05 UTC (rev 31656)
+++ packages/pyqt5/trunk/debian/changelog	2015-01-11 11:55:17 UTC (rev 31657)
@@ -1,3 +1,12 @@
+pyqt5 (5.4+dfsg-2) UNRELEASED; urgency=medium
+
+  [ Reiner Herrmann ]
+  * Added patch which removes embedding of timestamps in generated
+    files, to enable reproducible builds in packages build-depending
+    on pyqt5 (closes: #774510).
+
+ -- Dmitry Shachnev <mitya57 at debian.org>  Sun, 11 Jan 2015 14:44:46 +0300
+
 pyqt5 (5.4+dfsg-1) experimental; urgency=medium
 
   * New upstream release.

Added: packages/pyqt5/trunk/debian/patches/remove_timestamps.diff
===================================================================
--- packages/pyqt5/trunk/debian/patches/remove_timestamps.diff	                        (rev 0)
+++ packages/pyqt5/trunk/debian/patches/remove_timestamps.diff	2015-01-11 11:55:17 UTC (rev 31657)
@@ -0,0 +1,57 @@
+Description: prevent embedding of timestamps in files generated by rcc and uic
+ Timestamps in generated files will make packages using those tools no longer
+ build reproducibly, because the files will differ in each build.
+ As those timestamps are no useful information, they can be left out.
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Forwarded: yes
+Last-Update: 2015-01-11
+
+--- a/pyrcc/rcc.cpp
++++ b/pyrcc/rcc.cpp
+@@ -45,7 +45,6 @@
+ #include <qfile.h>
+ #include <qfileinfo.h>
+ #include <qlocale.h>
+-#include <qdatetime.h>
+ #include <qtextstream.h>
+ #include <qbytearray.h>
+ #include <qhash.h>
+@@ -421,8 +420,7 @@
+     fprintf(out, "# -*- coding: utf-8 -*-\n\n");
+     fprintf(out, "# Resource object code\n");
+     fprintf(out, "#\n");
+-    fprintf(out, "# Created: %s\n", QDateTime::currentDateTime().toString().toUtf8().constData());
+-    fprintf(out, "#      by: The Resource Compiler for PyQt (Qt v%s)\n", QT_VERSION_STR);
++    fprintf(out, "# Created by: The Resource Compiler for PyQt (Qt v%s)\n", QT_VERSION_STR);
+     fprintf(out, "#\n");
+     fprintf(out, "# WARNING! All changes made in this file will be lost!\n");
+     fprintf(out, "\n");
+--- a/pyuic/uic/__init__.py
++++ b/pyuic/uic/__init__.py
+@@ -47,8 +47,7 @@
+ 
+ # Form implementation generated from reading ui file '%s'
+ #
+-# Created: %s
+-#      by: PyQt5 UI code generator %s
++# Created by: PyQt5 UI code generator %s
+ #
+ # WARNING! All changes made in this file will be lost!
+ 
+@@ -149,7 +148,6 @@
+     module is foo_rc.
+     """
+ 
+-    from time import ctime
+     from PyQt5.QtCore import PYQT_VERSION_STR
+ 
+     try:
+@@ -159,7 +157,7 @@
+ 
+     indenter.indentwidth = indent
+ 
+-    pyfile.write(_header % (uifname, ctime(), PYQT_VERSION_STR))
++    pyfile.write(_header % (uifname, PYQT_VERSION_STR))
+ 
+     winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports, resource_suffix)
+ 

Added: packages/pyqt5/trunk/debian/patches/series
===================================================================
--- packages/pyqt5/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyqt5/trunk/debian/patches/series	2015-01-11 11:55:17 UTC (rev 31657)
@@ -0,0 +1 @@
+remove_timestamps.diff




More information about the Python-modules-commits mailing list