[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Age of built packages to be part of the jessie release?



Following on this conversation.

I did some simple stats. There are 6361 binary packages that have the
same name in stable and testing on (all, amd64) architecture. This
translates into 4821 source packages.
Skimming through the list of them, I've poked some that for sure will
generate a diff if rebuilt.

I'm attaching a diff of a no-change rebuild of python-amqplib_1.0.2-1.dsc.

As you can see - it gains
* multi-arch compatible generated dependencies
* the py3compile call correctly specifies compatible version numbers
* corrected prerm script that can work even if py3clean is not available
* the install size is reduced on python2 package
* python2 dependencies are simplified
* usr/share/pyshared files are no longer shipped
* python2.6 files are no longer shipped

Overall, I'm inclined to rebuild all 4821 unrebuild packages, generate
diffs, and if there are substantial changes  discuss with maintainers
/ release team to either upload no-change rebuild (arch:all packages)
and/or schedule binNMUs (for arch:any packages)

Regards,

Dimitri.
diff -ru old/python3-amqplib/DEBIAN/control new/python3-amqplib/DEBIAN/control
--- old/python3-amqplib/DEBIAN/control	2012-03-19 18:54:29.000000000 +0000
+++ new/python3-amqplib/DEBIAN/control	2014-12-06 21:15:06.000000000 +0000
@@ -4,7 +4,7 @@
 Architecture: all
 Maintainer: Mikhail Gusarov <dottedmag@debian.org>
 Installed-Size: 202
-Depends: python3 (>= 3.1.3-13~)
+Depends: python3:any (>= 3.3.2-2~)
 Suggests: python-amqplib-doc
 Section: python
 Priority: optional
diff -ru old/python3-amqplib/DEBIAN/postinst new/python3-amqplib/DEBIAN/postinst
--- old/python3-amqplib/DEBIAN/postinst	2012-03-19 18:54:28.000000000 +0000
+++ new/python3-amqplib/DEBIAN/postinst	2014-12-06 21:15:06.000000000 +0000
@@ -1,9 +1,9 @@
 #!/bin/sh
 set -e
 
-# Automatically added by dh_python3:
+# Automatically added by dhpython:
 if which py3compile >/dev/null 2>&1; then
-	py3compile -p python3-amqplib 
+	py3compile -p python3-amqplib -V 3.0-
 fi
 
 # End automatically added section
diff -ru old/python3-amqplib/DEBIAN/prerm new/python3-amqplib/DEBIAN/prerm
--- old/python3-amqplib/DEBIAN/prerm	2012-03-19 18:54:28.000000000 +0000
+++ new/python3-amqplib/DEBIAN/prerm	2014-12-06 21:15:06.000000000 +0000
@@ -1,9 +1,12 @@
 #!/bin/sh
 set -e
 
-# Automatically added by dh_python3:
+# Automatically added by dhpython:
 if which py3clean >/dev/null 2>&1; then
 	py3clean -p python3-amqplib 
+else
+	dpkg -L python3-amqplib | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
+	find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
 fi
 
 # End automatically added section
diff -ru old/python-amqplib/DEBIAN/control new/python-amqplib/DEBIAN/control
--- old/python-amqplib/DEBIAN/control	2012-03-19 18:54:28.000000000 +0000
+++ new/python-amqplib/DEBIAN/control	2014-12-06 21:15:06.000000000 +0000
@@ -2,8 +2,8 @@
 Version: 1.0.2-1
 Architecture: all
 Maintainer: Mikhail Gusarov <dottedmag@debian.org>
-Installed-Size: 232
-Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8)
+Installed-Size: 202
+Depends: python (>= 2.7), python (<< 2.8)
 Suggests: python-amqplib-doc
 Section: python
 Priority: optional
diff -ru old/python-amqplib/DEBIAN/md5sums new/python-amqplib/DEBIAN/md5sums
--- old/python-amqplib/DEBIAN/md5sums	2012-03-19 18:54:29.000000000 +0000
+++ new/python-amqplib/DEBIAN/md5sums	2014-12-06 21:15:07.000000000 +0000
@@ -1,15 +1,14 @@
-9fed561782d5bce6f687d42ef04af21a  usr/lib/python2.6/dist-packages/amqplib-1.0.2.egg-info
 afb73ab22334ace27595f5e3cedc48f1  usr/lib/python2.7/dist-packages/amqplib-1.0.2.egg-info
+68b329da9893e34099c7d8ad5cb9c940  usr/lib/python2.7/dist-packages/amqplib/__init__.py
+eb85c7e6645ad0f1a1d1614dcdcdc401  usr/lib/python2.7/dist-packages/amqplib/client_0_8/__init__.py
+bb0de492a3f7cc004d8df03b9cd15167  usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py
+a874737ad52ff100de75c06709672507  usr/lib/python2.7/dist-packages/amqplib/client_0_8/basic_message.py
+dd1e6575f39ef75714a272c87fb19624  usr/lib/python2.7/dist-packages/amqplib/client_0_8/channel.py
+fb3276dd7c6a066bdb34132ca1c65b82  usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py
+1530aceb856fb58758fdce0bcef5db54  usr/lib/python2.7/dist-packages/amqplib/client_0_8/exceptions.py
+405b4a8d1c9ab8727e5fe0985f999258  usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py
+ef416a18e00a9f1d6eee3d906f61b017  usr/lib/python2.7/dist-packages/amqplib/client_0_8/serialization.py
+5dd509f0277b65108deccad28db16520  usr/lib/python2.7/dist-packages/amqplib/client_0_8/transport.py
 ca8f4e104236cba255448e0ffeff3974  usr/share/doc/python-amqplib/changelog.Debian.gz
 bbef86b4d1e1a8e71599e7ff052453ce  usr/share/doc/python-amqplib/changelog.gz
 ceeced913e7cb70ab3d83e1db9764543  usr/share/doc/python-amqplib/copyright
-68b329da9893e34099c7d8ad5cb9c940  usr/share/pyshared/amqplib/__init__.py
-eb85c7e6645ad0f1a1d1614dcdcdc401  usr/share/pyshared/amqplib/client_0_8/__init__.py
-bb0de492a3f7cc004d8df03b9cd15167  usr/share/pyshared/amqplib/client_0_8/abstract_channel.py
-a874737ad52ff100de75c06709672507  usr/share/pyshared/amqplib/client_0_8/basic_message.py
-dd1e6575f39ef75714a272c87fb19624  usr/share/pyshared/amqplib/client_0_8/channel.py
-fb3276dd7c6a066bdb34132ca1c65b82  usr/share/pyshared/amqplib/client_0_8/connection.py
-1530aceb856fb58758fdce0bcef5db54  usr/share/pyshared/amqplib/client_0_8/exceptions.py
-405b4a8d1c9ab8727e5fe0985f999258  usr/share/pyshared/amqplib/client_0_8/method_framing.py
-ef416a18e00a9f1d6eee3d906f61b017  usr/share/pyshared/amqplib/client_0_8/serialization.py
-5dd509f0277b65108deccad28db16520  usr/share/pyshared/amqplib/client_0_8/transport.py
Only in old/python-amqplib/usr/lib: python2.6
Only in old/python-amqplib/usr/share: pyshared

Attachment: package.list
Description: Binary data


Reply to: