Source: hoichess
Version: 0.19.0-5
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build2.patch  1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build2.patch  2016-12-11 14:39:50.905725873 
+0100
@@ -0,0 +1,25 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-12-11
+
+--- hoichess-0.19.0.orig/src/build/print_version_str
++++ hoichess-0.19.0/src/build/print_version_str
+@@ -19,17 +19,7 @@ if [ $? -eq 0 ]; then
+ 
+       version_str="$branch-$rev (svn)"
+ else
+-      dirname=`cd "$basedir" && pwd | xargs basename`
+-      case "$dirname" in
+-              "$progname"-*)
+-                      version=`echo "$dirname" | sed -e "s/^$progname-//"`
+-                      ;;
+-              *)
+-                      version="unknown"
+-                      ;;
+-      esac
+-
+-      version_str="$version"
++      version_str="`sed -n -e 's@^Version \([^\t]*\).*@\1@p;q' 
"$basedir/ChangeLog"`"
+ fi
+ 
+ echo "$version_str"
--- a/debian/patches/series     2016-12-11 14:27:34.905728502 +0100
--- b/debian/patches/series     2016-12-11 14:39:48.981704936 +0100
@@ -2,3 +2,4 @@
 docs.patch
 reproducible-build.patch
 sparc32.patch
+reproducible-build2.patch

Reply via email to