Your message dated Fri, 06 Sep 2019 04:07:05 +0000
with message-id <[email protected]>
and subject line Bug#932116: fixed in snakemake 5.5.4-1
has caused the Debian Bug report #932116,
regarding snakemake: please make the build 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 [email protected]
immediately.)


-- 
932116: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932116
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: snakemake
Version: 5.5.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that snakemake could not be built reproducibly.

This is because it encoded the absolute buildpath in a Python keyword
argument which, when rendered in the documention, made the package
contents change when built from different locations.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/0012-reproducible-build.patch      1969-12-31 
21:00:00.000000000 -0300
--- b/debian/patches/0012-reproducible-build.patch      2019-07-15 
09:24:36.994818005 -0300
@@ -0,0 +1,40 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2019-07-15
+
+--- snakemake-5.5.3.orig/snakemake/report/__init__.py
++++ snakemake-5.5.3/snakemake/report/__init__.py
+@@ -98,10 +98,12 @@ def data_uri_from_file(file, defaultenc=
+ 
+ 
+ def report(text, path,
+-           stylesheet=os.path.join(os.path.dirname(__file__), "report.css"),
++           stylesheet=None,
+            defaultenc="utf8",
+            template=None,
+            metadata=None, **files):
++    if stylesheet is None:
++        stylesheet = os.path.join(os.path.dirname(__file__), "report.css")
+     outmime, _ = mimetypes.guess_type(path)
+     if outmime != "text/html":
+         raise ValueError("Path to report output has to be an HTML file.")
+--- snakemake-5.5.3.orig/snakemake/utils.py
++++ snakemake-5.5.3/snakemake/utils.py
+@@ -189,7 +189,7 @@ def makedirs(dirnames):
+ 
+ 
+ def report(text, path,
+-           stylesheet=os.path.join(os.path.dirname(__file__), "report.css"),
++           stylesheet=None,
+            defaultenc="utf8",
+            template=None,
+            metadata=None, **files):
+@@ -233,6 +233,8 @@ def report(text, path,
+         metadata (str):     E.g. an optional author name or email address.
+ 
+     """
++    if stylesheet is None:
++        stylesheet = os.path.join(os.path.dirname(__file__), "report.css")
+     try:
+         import snakemake.report
+     except ImportError:
--- a/debian/patches/series     2019-07-15 09:11:32.053668609 -0300
--- b/debian/patches/series     2019-07-15 09:24:34.722883985 -0300
@@ -9,3 +9,4 @@
 0009-skip-test-without-google-cloud-sdk.patch
 # 0010-skip-test-without-rmarkdown.patch
 0011-fix-privacy-breach.patch
+0012-reproducible-build.patch

--- End Message ---
--- Begin Message ---
Source: snakemake
Source-Version: 5.5.4-1

We believe that the bug you reported is fixed in the latest version of
snakemake, 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.
Michael R. Crusoe <[email protected]> (supplier of updated snakemake 
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: SHA512

Format: 1.8
Date: Wed, 31 Jul 2019 11:24:24 +0200
Source: snakemake
Architecture: source
Version: 5.5.4-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<[email protected]>
Changed-By: Michael R. Crusoe <[email protected]>
Closes: 932116 933527
Changes:
 snakemake (5.5.4-1) unstable; urgency=medium
 .
   [ Dylan Aïssi ]
   * Apply patch from Chris Lamb to make the build reproducible
      (Closes: #932116).
 .
   [ Michael R. Crusoe ]
   * New upstream release
   * debian/control: Add missing build-deps (as shown in errors during the
                     documentation building)
   * debian/README.source: Document missing (optional?) dependencies
   * debian/rules: Fix test invocation, as almost all tests were missed;
                   Document what is known about the skipped tests
   * Apply patch from upstream to fix duplicated argument (Closes: #933527)
 .
   [ Andreas Tille ]
   * debhelper-compat 12
   * Standards-Version: 4.4.0
   * Respect DEB_BUILD_OPTIONS in override_dh_auto_test target
   * Remove obsolete fields Name, Contact from debian/upstream/metadata.
Checksums-Sha1:
 4ae10064a74786603133d7064665d5cbbb49b2a0 2452 snakemake_5.5.4-1.dsc
 e55b12525d4b735651e7eed451c73d3f105531ae 11537347 snakemake_5.5.4.orig.tar.gz
 524d3d0a84023471a59fec1b45c024c7f5c128f7 267776 snakemake_5.5.4-1.debian.tar.xz
 015b532517ff3f86de1f1a0129a7b393bd14d809 15930 
snakemake_5.5.4-1_source.buildinfo
Checksums-Sha256:
 f8b8e923a87941c4928e9068d6ec79671de40a6f26d541311b194ef6e1726212 2452 
snakemake_5.5.4-1.dsc
 dbc1295dabf6c4323909ebca619188294982962453ba9a890246ebb9ffb109ab 11537347 
snakemake_5.5.4.orig.tar.gz
 1aa118f8097885c16934be67c79b64e8d66f3bf6859fd41ac46111bdb73ec0fe 267776 
snakemake_5.5.4-1.debian.tar.xz
 8c331aa998ea60a125c73dbaad7b64b266c4f2efe1da5985cc3e18fe645da18f 15930 
snakemake_5.5.4-1_source.buildinfo
Files:
 8e772af9701c0d25f6c0dbf1b328c29b 2452 science optional snakemake_5.5.4-1.dsc
 3636a8bd8c0d9b785b4e84bfa6180558 11537347 science optional 
snakemake_5.5.4.orig.tar.gz
 fd33594ed83d2d957185d3deb25c6136 267776 science optional 
snakemake_5.5.4-1.debian.tar.xz
 b750df9077573f100dd424ecb181a5db 15930 science optional 
snakemake_5.5.4-1_source.buildinfo

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

iQIzBAEBCgAdFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAl1x0/YACgkQPCZ2P2xn
5uIz+BAAh2VCqaIKjFKwxup/ug3Gi5nobX8sXpi5SgBot5W9X2lKtmKEooJSc4i+
eFj5i3f5sdsgpOXaDTN4T3kF7+bNTkXuJ6fTJJshlhNVHCOcd0n12wZmglGm6sUm
49GlDEzZuxC4/BV7LydQZYHmv/WspnPk6KhS2W8j++DtHCJmOV4XyxT1ijhExMss
skykMN9+Z7H3E+nRMkzhuWetPoJnzvaOJuiL85LSW4enSFY2Pc0c5sE+qoK1Exq+
a4Pya1ADy2zdVaDFLaTHho8DlHpGQ1XbjHu9PMlL+vegSz83u0R7ocSfuQ061L8K
3FcXj63AObYwODcFgL/gNrHCChguEiwzWV/b6e1RpzAXytkEqGdmxgarfQcUTZUX
nE+79kjTYQPs3Vk8gDtoA80YrjuZsEYh/tar6PTTDrTDX9XXdsRBHH4QoZV6McG/
FmXn+1ja1DRPxfFTwGIFgDvEoBxBevxtG5PGeSpIhMUm0v2NtlFwP8d0q2/IO3An
bLgRqq6Lt1pki2XsIQu7F0220xcyKh+vwrdnx6quhLWwQjpeTq6mczOXoQ/nn+sB
zLFVf5EOHhrY2lySuDD6tn8dAivaQtvnobXHAhSzQisR453cGP8OEZ647JfeoWjY
QnGchI7925QO5mzYFB5LYgVOAf/NzWa5xYcYH4lFV7G1nIE2Ipg=
=S5E/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to