Source: pyhoca-gui
Version: 0.5.0.4-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that pyhoca-gui could not be built reproducibly.

The attached patch removes timestamps from the build system by dropping
the varying and uninformative build date prefix on the version number
which ended up in pathnames. Once applied, pyhoca-gui can be built
reproducibly in our reproducible toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --no-dereference -urNad 
pyhoca-gui.orig/pyhoca-gui-0.5.0.4/debian/patches/10_reproducible_build.patch 
pyhoca-gui/pyhoca-gui-0.5.0.4/debian/patches/10_reproducible_build.patch
--- 
pyhoca-gui.orig/pyhoca-gui-0.5.0.4/debian/patches/10_reproducible_build.patch   
    1970-01-01 01:00:00.000000000 +0100
+++ pyhoca-gui/pyhoca-gui-0.5.0.4/debian/patches/10_reproducible_build.patch    
2015-07-17 11:20:13.150526009 +0100
@@ -0,0 +1,11 @@
+--- pyhoca-gui-0.5.0.4.orig/setup.py
++++ pyhoca-gui-0.5.0.4/setup.py
+@@ -36,7 +36,7 @@ __VERSION__ = '0.0.0.0'
+ for line in file(os.path.join('pyhoca', 'wxgui', '__init__.py')).readlines():
+     if (line.startswith('__VERSION__')):
+         exec(line.strip())
+-PROGRAM_VERSION = __VERSION__ + "-" + datetime.date.today().strftime('%Y%m%d')
++PROGRAM_VERSION = __VERSION__
+ 
+ PROGRAM_ICON = "pixmaps/pyhoca_x2go-logo-ubuntu.ico"
+ # Windows:  UNINSTALL_ICON is for add/remove programs.
diff --no-dereference -urNad 
pyhoca-gui.orig/pyhoca-gui-0.5.0.4/debian/patches/series 
pyhoca-gui/pyhoca-gui-0.5.0.4/debian/patches/series
--- pyhoca-gui.orig/pyhoca-gui-0.5.0.4/debian/patches/series    1970-01-01 
01:00:00.000000000 +0100
+++ pyhoca-gui/pyhoca-gui-0.5.0.4/debian/patches/series 2015-07-17 
11:20:10.482413898 +0100
@@ -0,0 +1 @@
+10_reproducible_build.patch

Reply via email to