[Reproducible-builds] Bug#831658: borgbackup: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 09:43:28 UTC 2016


Source: borgbackup
Version: 1.0.5-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that borgbackup could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/reproducible_build	2016-07-18 11:27:31.058419685 +0200
@@ -0,0 +1,23 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-18
+
+--- borgbackup-1.0.5.orig/borg/archiver.py
++++ borgbackup-1.0.5/borg/archiver.py
+@@ -14,6 +14,7 @@ import stat
+ import sys
+ import textwrap
+ import traceback
++import collections
+ 
+ from . import __version__
+ from .helpers import Error, location_validator, archivename_validator, format_line, format_time, format_file_size, \
+@@ -736,7 +737,7 @@ class Archiver:
+         Cache.break_lock(repository)
+         return self.exit_code
+ 
+-    helptext = {}
++    helptext = collections.OrderedDict()
+     helptext['patterns'] = textwrap.dedent('''
+         Exclusion patterns support four separate styles, fnmatch, shell, regular
+         expressions and path prefixes. By default, fnmatch is used. If followed
--- a/debian/patches/series	2016-07-18 11:13:21.888806126 +0200
--- b/debian/patches/series	2016-07-18 11:27:27.834367978 +0200
@@ -1,2 +1,3 @@
 privacy/0001-Remove-codecov.io-and-travis-ci.org-badges.patch
 privacy/0002-README.rst-Replace-img-src-with-text-link.patch
+reproducible_build


More information about the Reproducible-builds mailing list