Source: sunpinyin Version: 3.0.0~git20160910-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: filesystem X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that sunpinyin 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-build.diff 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.diff 2017-04-12 19:41:58.175594665 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2017-04-12 + +--- sunpinyin-3.0.0~git20160910.orig/SConstruct ++++ sunpinyin-3.0.0~git20160910/SConstruct +@@ -429,7 +429,7 @@ env.Substfile('sunpinyin-2.0.pc.in', SUB + '@VERSION@': version, + '@CFLAGS@': reduce(lambda a, b: a + ' ' + b, + map(lambda x: '-I$${includedir}' + x[3:], +- allinc())), ++ sorted(allinc()))), + }) + + libname_default = '%ssunpinyin%s' % (env.subst('${SHLIBPREFIX}'), --- a/debian/patches/series 2017-04-12 19:35:48.310066731 +0100 --- b/debian/patches/series 2017-04-12 19:41:56.571588048 +0100 @@ -1 +1,2 @@ fix-data-dir.diff +reproducible-build.diff