[med-svn] [Git][med-team/snakemake][master] Apply patch from Chris Lamb to make the build reproducible (Closes: #932116)

Dylan Aïssi gitlab at salsa.debian.org
Tue Jul 16 07:16:22 BST 2019



Dylan Aïssi pushed to branch master at Debian Med / snakemake


Commits:
703c50a3 by Dylan Aïssi at 2019-07-16T06:16:05Z
Apply patch from Chris Lamb to make the build reproducible (Closes: #932116)

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0012-reproducible-build.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+snakemake (5.5.3-2) UNRELEASED; urgency=medium
+
+  * Apply patch from Chris Lamb to make the build reproducible
+     (Closes: #932116).
+
+ -- Dylan Aïssi <daissi at debian.org>  Tue, 16 Jul 2019 08:13:48 +0200
+
 snakemake (5.5.3-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/0012-reproducible-build.patch
=====================================
@@ -0,0 +1,40 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+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:


=====================================
debian/patches/series
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/med-team/snakemake/commit/703c50a3f500e83b1253f79237bd607ee426127c

-- 
View it on GitLab: https://salsa.debian.org/med-team/snakemake/commit/703c50a3f500e83b1253f79237bd607ee426127c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190716/11e06a26/attachment-0001.html>


More information about the debian-med-commit mailing list