Your message dated Sat, 13 Jun 2015 17:34:31 +0000
with message-id <[email protected]>
and subject line Bug#787250: fixed in python-qt4 4.11.4+dfsg-1
has caused the Debian Bug report #787250,
regarding python-qt4: please let pyuic sort the import order
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
787250: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787250
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-qt4
Version: 4.11.3+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness toolchain
X-Debbugs-CC: [email protected]

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that pyuic doesn't sort the order of imported modules in
generated UI files.
The attached patch fixes this.

An example of an affected package is eric [2].

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
[2]: https://reproducible.debian.net/rb-pkg/unstable/amd64/eric.html

diff --git a/debian/patches/series b/debian/patches/series
index a89a1d2..b90258d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ debian_configure_changes.diff
 qreal_float_support.diff
 config_flags.diff
 remove_timestamps.diff
+sort_imports.diff
diff --git a/debian/patches/sort_imports.diff b/debian/patches/sort_imports.diff
new file mode 100644
index 0000000..ae80e1e
--- /dev/null
+++ b/debian/patches/sort_imports.diff
@@ -0,0 +1,31 @@
+Author: Reiner Herrmann <[email protected]>
+Description: sort imported modules to get reproducible output
+
+Index: python-qt4-4.11.3+dfsg/pyuic/uic/Compiler/compiler.py
+===================================================================
+--- python-qt4-4.11.3+dfsg.orig/pyuic/uic/Compiler/compiler.py
++++ python-qt4-4.11.3+dfsg/pyuic/uic/Compiler/compiler.py
+@@ -143,7 +143,7 @@ class UICompiler(UIParser):
+ 
+         self.factory._cpolicy._writeOutImports()
+ 
+-        for res in self._resources:
++        for res in sorted(self._resources):
+             write_import(res, from_imports)
+ 
+         return {"widgetname": str(w),
+Index: python-qt4-4.11.3+dfsg/pyuic/uic/Compiler/qobjectcreator.py
+===================================================================
+--- python-qt4-4.11.3+dfsg.orig/pyuic/uic/Compiler/qobjectcreator.py
++++ python-qt4-4.11.3+dfsg/pyuic/uic/Compiler/qobjectcreator.py
+@@ -130,8 +130,8 @@ class _CustomWidgetLoader(object):
+             _, module = self._widgets[widget]
+             imports.setdefault(module, []).append(widget)
+ 
+-        for module, classes in imports.items():
+-            write_code("from %s import %s" % (module, ", ".join(classes)))
++        for module, classes in sorted(imports.items()):
++            write_code("from %s import %s" % (module, ", ".join(sorted(classes))))
+ 
+ 
+ class CompilerCreatorPolicy(object):

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-qt4
Source-Version: 4.11.4+dfsg-1

We believe that the bug you reported is fixed in the latest version of
python-qt4, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <[email protected]> (supplier of updated python-qt4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 13 Jun 2015 15:17:18 +0300
Source: python-qt4
Binary: python-qt4 python3-pyqt4 python-qt4-dbg python3-pyqt4-dbg 
python-qt4-phonon python3-pyqt4.phonon python-qt4-phonon-dbg 
python3-pyqt4.phonon-dbg python-qt4-dbus python-qt4-dbus-dbg 
python3-dbus.mainloop.qt python3-dbus.mainloop.qt-dbg python-qt4-gl 
python-qt4-gl-dbg python3-pyqt4.qtopengl python3-pyqt4.qtopengl-dbg 
python-qt4-sql python3-pyqt4.qtsql python-qt4-sql-dbg python3-pyqt4.qtsql-dbg 
python-qt4-dev python-qt4-doc pyqt4-dev-tools
Architecture: source all
Version: 4.11.4+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Dmitry Shachnev <[email protected]>
Description:
 pyqt4-dev-tools - Development tools for PyQt4
 python-qt4 - Python bindings for Qt4
 python-qt4-dbg - Python bindings for Qt4 (debug extensions)
 python-qt4-dbus - D-Bus Support for PyQt4
 python-qt4-dbus-dbg - D-Bus Support for PyQt4 (debug extensions)
 python-qt4-dev - Development files for PyQt4
 python-qt4-doc - Documentation and examples for PyQt4
 python-qt4-gl - Python bindings for Qt4's OpenGL module
 python-qt4-gl-dbg - Python bindings for Qt4's OpenGL module (debug extension)
 python-qt4-phonon - Python bindings for Phonon
 python-qt4-phonon-dbg - Python bindings for Phonon (debug extensions)
 python-qt4-sql - Python bindings for PyQt4's SQL module
 python-qt4-sql-dbg - Python bindings for PyQt4's SQL module (debug extension)
 python3-dbus.mainloop.qt - D-Bus Support for PyQt4 with Python 3
 python3-dbus.mainloop.qt-dbg - D-Bus Support for PyQt4 (debug extensions for 
Python 3)
 python3-pyqt4 - Python3 bindings for Qt4
 python3-pyqt4-dbg - Python3 bindings for Qt4 (debug extensions)
 python3-pyqt4.phonon - Python3 bindings for Phonon
 python3-pyqt4.phonon-dbg - Python3 bindings for Phonon (debug extensions)
 python3-pyqt4.qtopengl - Python 3 bindings for Qt4's OpenGL module
 python3-pyqt4.qtopengl-dbg - Python 3 bindings for Qt4's OpenGL module (debug 
extension)
 python3-pyqt4.qtsql - Python3 bindings for PyQt4's SQL module
 python3-pyqt4.qtsql-dbg - Python3 bindings for PyQt4's SQL module (debug 
extension)
Closes: 787250
Changes:
 python-qt4 (4.11.4+dfsg-1) unstable; urgency=medium
 .
   * New upstream release.
     - pyuic now sorts imported modules (closes: #787250).
   * Drop remove_timestamps.diff, applied upstream.
   * Bump the required sip version to 4.16.4.
   * Add a temporary hack to use upstream stylesheet when building the
     documentation with Sphinx 1.2.
Checksums-Sha1:
 8502b4c80a4713049b792e627a14751613d468f7 4239 python-qt4_4.11.4+dfsg-1.dsc
 b387cded143994477f05dceb3848756489b486a3 11079535 
python-qt4_4.11.4+dfsg.orig.tar.gz
 283c677e6b7e9394f6fc534335fbbe34798df4bf 21832 
python-qt4_4.11.4+dfsg-1.debian.tar.xz
 51a63c4271898184e9ded9f2cc2fcff021ef617b 264982 
python-qt4-dev_4.11.4+dfsg-1_all.deb
 38fdfee66e992a5d83b165985ee4d1121755e624 8053916 
python-qt4-doc_4.11.4+dfsg-1_all.deb
Checksums-Sha256:
 34e26ac892e6e66c9316f729d94b42034dc266883f78c8f2d492a8aaa603488d 4239 
python-qt4_4.11.4+dfsg-1.dsc
 1b368bb8819a6d6b7f4b75e2966566fa8c9287fd10e8f36d84e135af96749e38 11079535 
python-qt4_4.11.4+dfsg.orig.tar.gz
 e23949a83c925c1f5b6cdd73b4f04c9b194c231c7146c16830c2480b17f56211 21832 
python-qt4_4.11.4+dfsg-1.debian.tar.xz
 6bf4562f932d4db785e5723a4b93129d095edff0bbd11afba5ba822f9b953eb0 264982 
python-qt4-dev_4.11.4+dfsg-1_all.deb
 3194c57be904b5855a30811a72fd25aa8a59f42f461fea72efc44a00e6e74375 8053916 
python-qt4-doc_4.11.4+dfsg-1_all.deb
Files:
 5f25d482ed4b6cc678d1966d4257244b 4239 python optional 
python-qt4_4.11.4+dfsg-1.dsc
 75416bceda811b404b8f33567c326628 11079535 python optional 
python-qt4_4.11.4+dfsg.orig.tar.gz
 0c825e923483d8042a479410ba35c020 21832 python optional 
python-qt4_4.11.4+dfsg-1.debian.tar.xz
 639f1f4fad4f885148fd45ca94869207 264982 python optional 
python-qt4-dev_4.11.4+dfsg-1_all.deb
 33c08cefb23da0d5e853ffcc98b66e23 8053916 doc optional 
python-qt4-doc_4.11.4+dfsg-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJVfGaqAAoJENb+cQNj+F3TObMP/ArAveDJYLr1I9ZEwUj6LVMs
ysvtdtwsfxM5asnqaRLl8FALigfpEncJ74dVbEq93SzEbXc79b/PekGNoIpc2ped
Tv7u9bQYHrtca2yZlXRdWhbYuscgYKkApYD7lpduH1xBz7kD/ewlur+tJ4UCa6xR
HuID0JqbLyXLDHzVUOia5h9c2SYhf6gzk2u8HE03L2LjC0e9c92TvGseHI/XQMoS
zGuVopNXTavOHdLEcn3niynXJW0nmOMhKWyt42bSXx68f/8bF+d7ykf+7sv8q/wz
VZ88XL43vDgqlXGNzrsRGDRK3h1fXLYLA8+LBl7j53dANWSNs2ABLwwLdov1Xydd
WFXyxTjprXGaT1hkVaaeRRQPt22TsicLZRLkItTmQGBQNb8WmYHoaEqSOl3+a8Pq
yPSJCMvbGzF1qO29ae7jkgWFbS/8l0a4vk6QSArMvxLYFOhpX8H0+/9Sfcx4C1aa
BpSNVIZlrzKwyP6JMnU9R+vHEo0Q0wmHnyIaIhHqrGe6AAXVOr+zmI4Qbz7D4iGC
7CxrXCh91YIV9FFS0nVS0RFoAl2n/HbdG/9zMYpPJnFFa5W5YEyoWkr5I/v15P1V
zjb1u3gq7tyttqWWYnRpJEix6ekZJd1zwl1OI7Q2i52uGEtGZ6GexaDkpTr+umf6
IH8PKuStwLtqJy/4OfTQ
=s1FN
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to