Your message dated Sat, 05 Aug 2017 23:18:54 +0000
with message-id <e1de8lo-000czo...@fasolo.debian.org>
and subject line Bug#797180: fixed in doit 0.30.3-1
has caused the Debian Bug report #797180,
regarding python-doit: Please make the Bash & Zsh completion output reproducible
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 ow...@bugs.debian.org
immediately.)


-- 
797180: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797180
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-doit
Version: 0.28.0-1
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that python-doit generates Bash and Zsh completion output with non-
determistic ordering.

The attached patch removes this randomness from the output. Once
applied, packages using python-doit (eg. nikola) can be built
reproducibly in our reproducible toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/doit/cmd_completion.py b/doit/cmd_completion.py
index e960eef..ad62a6e 100644
--- a/doit/cmd_completion.py
+++ b/doit/cmd_completion.py
@@ -101,7 +101,7 @@ class TabCompletion(DoitCmdBase):
             self.task_list, _ = self.loader.load_tasks(
                 self, opt_values, pos_args)
             tmpl_vars['pt_tasks'] = '"{0}"'.format(
-                ' '.join(t.name for t in self.task_list if not t.is_subtask))
+                ' '.join(sorted(t.name for t in self.task_list if not 
t.is_subtask))
         else:
             tmpl_list_cmd = "$({0} list {1} --quiet 2>/dev/null)"
             tmpl_vars['pt_tasks'] = tmpl_list_cmd.format(pt_bin_name,
@@ -196,7 +196,7 @@ class TabCompletion(DoitCmdBase):
             for task in self.task_list:
                 if not task.is_subtask:
                     lines.append("'{0}: {1}'".format(task.name, task.doc))
-            template_vars['pt_tasks'] = '(\n{0}\n)'.format('\n'.join(lines))
+            template_vars['pt_tasks'] = 
'(\n{0}\n)'.format('\n'.join(sorted(lines)))
         else:
             tmp_tasks = Template(
                 '''("${(f)$($pt_bin_name list --template '{name}: 
{doc}')}")''')

--- End Message ---
--- Begin Message ---
Source: doit
Source-Version: 0.30.3-1

We believe that the bug you reported is fixed in the latest version of
doit, 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 797...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Agustin Henze <t...@debian.org> (supplier of updated doit 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 05 Aug 2017 18:32:10 -0400
Source: doit
Binary: python3-doit python-doit-doc
Architecture: source all
Version: 0.30.3-1
Distribution: unstable
Urgency: medium
Maintainer: Agustin Henze <t...@debian.org>
Changed-By: Agustin Henze <t...@debian.org>
Description:
 python-doit-doc - Automation tool for executing any kind of task in a 
build-tools f
 python3-doit - Automation tool (Python3) to execute any kind of task in a 
build-
Closes: 797180 843581
Changes:
 doit (0.30.3-1) unstable; urgency=medium
 .
   * New upstream version 0.30.3
   * Update watch url, the project has been moved from bitbucket to github
   * python-doit package has been removed, upstream doesn't support python2
     anymore
   * Use help2man to deliver an updated manpage
   * Bumped Standard-Version to 4.0.0 (no changes required)
   * Use https for Vcs-* fields
   * Use uscan for get-orig-source target
   * Use the proper patch for zsh completion (Closes: #843581, #797180)
Checksums-Sha1:
 7608808138a2581e3b9ac9973f3cee45bfac34f6 2121 doit_0.30.3-1.dsc
 3506fe18d450fad72f5d8c7f19db18aec30d6b8a 232126 doit_0.30.3.orig.tar.gz
 57f843bc9808936ab1871d7b0e7e2bdbe1359027 4480 doit_0.30.3-1.debian.tar.xz
 297c31cac31b5162a93d57dbfcab31b9c3256edb 7343 doit_0.30.3-1_amd64.buildinfo
 5a02766fe6165f196b62189042c76f673f8836cd 139086 
python-doit-doc_0.30.3-1_all.deb
 dbc967bdd7b0449292d41633819e357ea257a3b2 68742 python3-doit_0.30.3-1_all.deb
Checksums-Sha256:
 071aa60670dd6f9d9fdd37466e678ad0ebe9ec08e0c76428f5bd4809f7a19b8b 2121 
doit_0.30.3-1.dsc
 5a730fcac8edfd7766e71d03cbb1118851d0b51e6fa69b0fe1582cafd52c98ed 232126 
doit_0.30.3.orig.tar.gz
 69e1e70effe1030c56d24f412e4568ecc4a7241521659d070f532aadcc4c78b4 4480 
doit_0.30.3-1.debian.tar.xz
 f374d9abe02d666a35d47eac3cb45cc120c71a1dbc05bd429853fa4a4a31f88a 7343 
doit_0.30.3-1_amd64.buildinfo
 8d4a7adf453b986ed8aa6eccc451cb22e73acac44a847c0bb5bc75a4a7fad38a 139086 
python-doit-doc_0.30.3-1_all.deb
 6f3aea2bacf6c6e8953a3b598b3df8bcd2820b15e87d6b82b1f86cd860dd6e81 68742 
python3-doit_0.30.3-1_all.deb
Files:
 ca810fb43c182666179ec4a1566d0f0a 2121 python optional doit_0.30.3-1.dsc
 ba85312f8965a5dd8e24b30976a97f26 232126 python optional doit_0.30.3.orig.tar.gz
 4321cca78faff87d0e395a2efbb7a9dc 4480 python optional 
doit_0.30.3-1.debian.tar.xz
 7391958772dd8dc73ce1c978e2cd1664 7343 python optional 
doit_0.30.3-1_amd64.buildinfo
 a651a8fd19deb077373e85fc6cdfff29 139086 doc optional 
python-doit-doc_0.30.3-1_all.deb
 8dbebd40087a6a3b4a939bb786c11c4f 68742 python optional 
python3-doit_0.30.3-1_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd4G8WDJexuSWyvTtAihSEHiQOPIFAlmGTwYACgkQAihSEHiQ
OPIS7BAAu48XeT/DGK31t693+KTEpolUD0VxXHXMOCSN9ZlW+DKv6iEX7yX6hcKf
DB41yvU9S3kL6u18wttXOvZvQ7ijmDQLRwgsKHaaQbMbHGJoS05xdROS3MOHsLRa
dzWc5GMVoAs/VXia4m0I48iP1FWGzK6Iqnc7TjbMF4PEiqQFid40fC83xWpK89rm
0StFuZeNSUMdJzZazQ6cr6uhDc2IqyHsyUt3QsGgmst77iP8lrqIlLxuD70AxEQa
d5kRhNMqfignqtkrnVzE3LC4QHF5GvXiQjxHoS1Ge0eJ+7u+hP6nwb9oGzJXIdGB
+0XJh1cNf/R4Cy42jW7T9vI5Xldo+lQbGC/qVkpXjPwMDvnJneHKvybOFYf3rMtp
615bXReDpPrQ50btnwGjxZ8V03Zcae1coEDvZbW0v83bP1eLDK9AXtkQPPfzU9LY
/hq1x0acHtnDzgd9/0KV9dec+BNwuHlmmPXaXhaNqeDALs+0tMpNwdFG6RuOvvHb
uwj1Jo0wU9ob+pi6zLz1nCd67XeeQ5/JANE5Ku+2EfweNtufg6Xl5QOtE5mOKUCe
BRRvTqs2gKoOJsMrU55CwJcB3CJr27e7EcLewvThWl3ORXgDMOIM5Ap+xYbJMCUy
T67Dl2ectYPgI8ZSNKfc9boU0EhdA+BKAHHrJgc5mb8xUxnswTU=
=LVj9
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to