Source: yasm
Version: 1.3.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
Hi!
While working on the “reproducible builds” effort [1], we have noticed
that yasm could not be built reproducibly.
The attached patch removes the build date from the version strings.
Once applied, yasm can be built reproducibly in our current experimental
framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
--
Lunar.''`.
lu...@debian.org: :Ⓐ : # apt-get install anarchism
`. `'`
`-
diff -Nru yasm-1.3.0/debian/changelog yasm-1.3.0/debian/changelog
--- yasm-1.3.0/debian/changelog 2015-05-03 21:00:33.0 +
+++ yasm-1.3.0/debian/changelog 2015-05-06 14:02:59.0 +
@@ -1,3 +1,11 @@
+yasm (1.3.0-2.0~reproducible1) UNRELEASED; urgency=low
+
+ * Make the package build reproducible:
+- 110_remove_build_date.diff: remove compilation date from
+ version strings.
+
+ -- Jérémy Bobbio lu...@debian.org Wed, 06 May 2015 14:00:31 +
+
yasm (1.3.0-2) unstable; urgency=medium
* 100_ytasm_parsing_error.diff: fix more bugs in argument parsing.
diff -Nru yasm-1.3.0/debian/patches/110_remove_build_date.diff yasm-1.3.0/debian/patches/110_remove_build_date.diff
--- yasm-1.3.0/debian/patches/110_remove_build_date.diff 1970-01-01 00:00:00.0 +
+++ yasm-1.3.0/debian/patches/110_remove_build_date.diff 2015-05-06 14:04:29.0 +
@@ -0,0 +1,37 @@
+Description: Remove build date from version strings
+ In order to make the package build reproducibly, we remove the compilation
+ date from the version strings. At least in the context of Debian we know
+ the exact source code and we record the build environment. Both are more
+ meaningful information.
+Author: Jérémy Bobbio lu...@debian.org
+
+--- yasm-1.3.0.orig/frontends/tasm/tasm.c
yasm-1.3.0/frontends/tasm/tasm.c
+@@ -228,7 +228,6 @@ static opt_option options[] =
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+-Compiled on __DATE__ .,
+ Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.,
+ Run yasm --license for licensing overview and summary.
+ };
+--- yasm-1.3.0.orig/frontends/vsyasm/vsyasm.c
yasm-1.3.0/frontends/vsyasm/vsyasm.c
+@@ -220,7 +220,6 @@ static opt_option options[] =
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+-Compiled on __DATE__ .,
+ Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.,
+ Run yasm --license for licensing overview and summary.
+ };
+--- yasm-1.3.0.orig/frontends/yasm/yasm.c
yasm-1.3.0/frontends/yasm/yasm.c
+@@ -217,7 +217,6 @@ static opt_option options[] =
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+-Compiled on __DATE__ .,
+ Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.,
+ Run yasm --license for licensing overview and summary.
+ };
diff -Nru yasm-1.3.0/debian/patches/series yasm-1.3.0/debian/patches/series
--- yasm-1.3.0/debian/patches/series 2015-05-03 19:58:07.0 +
+++ yasm-1.3.0/debian/patches/series 2015-05-06 14:03:09.0 +
@@ -1 +1,2 @@
100_ytasm_parsing_error.diff
+110_remove_build_date.diff
signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds