Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:yukoff:openSUSE:Leap:42.1:Backports
python-qt5
build-compare.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File build-compare.diff of Package python-qt5
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@reiner-h.de> Index: PyQt-gpl-5.4/pyrcc/rcc.cpp =================================================================== --- PyQt-gpl-5.4.orig/pyrcc/rcc.cpp +++ PyQt-gpl-5.4/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 @@ RCCResourceLibrary::writeHeader(FILE *ou 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"); Index: PyQt-gpl-5.4/pyuic/uic/__init__.py =================================================================== --- PyQt-gpl-5.4.orig/pyuic/uic/__init__.py +++ PyQt-gpl-5.4/pyuic/uic/__init__.py @@ -47,8 +47,7 @@ _header = """# -*- coding: utf-8 -*- # 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 @@ def compileUi(uifile, pyfile, execute=Fa module is foo_rc. """ - from time import ctime from PyQt5.QtCore import PYQT_VERSION_STR try: @@ -159,7 +157,7 @@ def compileUi(uifile, pyfile, execute=Fa 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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor