On Mon, 19 Jun 2017 21:59:00 -0300, Samuel Henrique wrote:

> I see on the changelog of 0.20.0:
> 
> > * Included reproducible-build patch from Debian package
> >    hoichess_0.19.0-3.
> >  
> 
> ​Although, 0.21.0 still has other reproducibility problems[1], could you
> help us with that?

Hello Samuel,

I have applied the attached change to my source, it will be included in the
next releases. You could still replace this by the Debian package version
as suggested by Daniel Shahaf. In this case, I kindly ask you to add e.g.
"-debian" to the version string to avoid confusion.

Best regards,
Holger
Index: src/build/print_version_str
===================================================================
--- src/build/print_version_str	(revision 2536)
+++ src/build/print_version_str	(revision 2537)
@@ -6,7 +6,6 @@
 	mydir=`dirname "$0"`
 	basedir="$mydir"/..
 fi
-progname="hoichess"
 
 svn info "$basedir" >/dev/null 2>&1
 if [ $? -eq 0 ]; then
@@ -19,17 +18,7 @@
 
 	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=`awk '/^Version/ {print $2; exit}' "$basedir/ChangeLog"`
 fi
 
 echo "$version_str"

Reply via email to