Re: [Reproducible-builds] Bug#796275: hspell: please make the build reproducible

2015-08-20 Thread Reiner Herrmann
Sorry, there was a small error in the patch.
Updated/fixed patch is attached.
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 000..dd0b376
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,17 @@
+Index: hspell-1.2/mk_he_affix.c
+===
+--- hspell-1.2.orig/mk_he_affix.c
 hspell-1.2/mk_he_affix.c
+@@ -89,10 +89,8 @@ int main(int argc, char *argv[])
+ 
+   fprintf(afffp, "# This file was generated automatically from data prepared\n"
+  "# by the Hspell project (http://hspell.ivrix.org.il/).\n"
+- "# Hspell version %d.%d%s was used.\n"
+- "# The conversion was carried out in %s\n",
+- HSPELL_VERSION_MAJOR,HSPELL_VERSION_MINOR,HSPELL_VERSION_EXTRA,
+- __DATE__);
++ "# Hspell version %d.%d%s was used.\n",
++ HSPELL_VERSION_MAJOR,HSPELL_VERSION_MINOR,HSPELL_VERSION_EXTRA);
+   fprintf(afffp, "# Copyright 2004-2012, Nadav Har'El and Dan Kenigsberg\n");
+   fprintf(afffp, "# The dictionary (this file and the corresponding word list)\n"
+  "# is licensed under the GNU Affero General Public License\n"
diff --git a/debian/patches/series b/debian/patches/series
index 8c3ffbe..c454eeb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 manpages_minus.patch
 make-install.patch
 whatsnew-utf8.patch
+reproducible_build.patch


signature.asc
Description: OpenPGP digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

[Reproducible-builds] Bug#796275: hspell: please make the build reproducible

2015-08-20 Thread Reiner Herrmann
Source: hspell
Version: 1.2-2.1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that hspell could not be built reproducibly.
The current date is embedded into aff files generated by mk_he_affix.

The attached patch removes those timestamps as they provides no
useful information.

Regards,
 Reiner

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

diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 000..238a36d
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,15 @@
+Index: hspell-1.2/mk_he_affix.c
+===
+--- hspell-1.2.orig/mk_he_affix.c
 hspell-1.2/mk_he_affix.c
+@@ -90,9 +90,7 @@ int main(int argc, char *argv[])
+   fprintf(afffp, "# This file was generated automatically from data prepared\n"
+  "# by the Hspell project (http://hspell.ivrix.org.il/).\n"
+  "# Hspell version %d.%d%s was used.\n"
+- "# The conversion was carried out in %s\n",
+- HSPELL_VERSION_MAJOR,HSPELL_VERSION_MINOR,HSPELL_VERSION_EXTRA,
+- __DATE__);
++ HSPELL_VERSION_MAJOR,HSPELL_VERSION_MINOR,HSPELL_VERSION_EXTRA);
+   fprintf(afffp, "# Copyright 2004-2012, Nadav Har'El and Dan Kenigsberg\n");
+   fprintf(afffp, "# The dictionary (this file and the corresponding word list)\n"
+  "# is licensed under the GNU Affero General Public License\n"
diff --git a/debian/patches/series b/debian/patches/series
index 8c3ffbe..c454eeb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 manpages_minus.patch
 make-install.patch
 whatsnew-utf8.patch
+reproducible_build.patch


signature.asc
Description: OpenPGP digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds