Source: xchat
Version: 2.8.8-7.3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps randomness
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that xchat could not be built reproducibly.

The attached patch removes extra timestamps from the build system and
strip Build ID from the produced executable. Once applied, xchat can be
built reproducibly in our current experimental framework.

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

Regards,
Valentin
diff -ru xchat-2.8.8.orig/debian/control xchat-2.8.8/debian/control
--- xchat-2.8.8.orig/debian/control	2015-08-04 18:38:25.271425177 +0000
+++ xchat-2.8.8/debian/control	2015-08-04 19:20:18.931512526 +0000
@@ -4,7 +4,7 @@
 Maintainer: Davide Puricelli (evo) <e...@debian.org>
 Uploaders: Bart Martens <ba...@debian.org>
 Standards-Version: 3.8.4.0
-Build-Depends: debhelper (>= 5), bison, libssl-dev, libglib2.0-dev, libgtk2.0-dev (>= 2.0.6), libperl-dev, gettext (>= 0.10.37), libtool, zlib1g-dev, perl (>= 5.8), python-dev, tcl-dev, autotools-dev, libdbus-glib-1-dev, libgtkspell-dev, gconf2, dpkg-dev (>= 1.13.19), libsexy-dev, chrpath, imagemagick, autoconf
+Build-Depends: debhelper (>= 5), bison, libssl-dev, libglib2.0-dev, libgtk2.0-dev (>= 2.0.6), libperl-dev, gettext (>= 0.10.37), libtool, zlib1g-dev, perl (>= 5.8), python-dev, tcl-dev, autotools-dev, libdbus-glib-1-dev, libgtkspell-dev, gconf2, dpkg-dev (>= 1.13.19), libsexy-dev, chrpath, imagemagick, autoconf, dh-strip-nondeterminism
 Homepage: http://www.xchat.org/
 
 Package: xchat
diff -ru xchat-2.8.8.orig/debian/rules xchat-2.8.8/debian/rules
--- xchat-2.8.8.orig/debian/rules	2015-08-04 18:38:25.271425177 +0000
+++ xchat-2.8.8/debian/rules	2015-08-04 19:29:11.975531049 +0000
@@ -89,6 +89,7 @@
 	dh_link -pxchat
 ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
 	dh_strip -pxchat
+	dh_strip_nondeterminism -pxchat
 endif	
 	dh_compress -pxchat
 	dh_fixperms -pxchat
diff -ru xchat-2.8.8.orig/src/fe-gtk/about.c xchat-2.8.8/src/fe-gtk/about.c
--- xchat-2.8.8.orig/src/fe-gtk/about.c	2015-08-04 18:38:25.267425176 +0000
+++ xchat-2.8.8/src/fe-gtk/about.c	2015-08-04 19:28:08.000000000 +0000
@@ -55,7 +55,6 @@
 
 	(snprintf) (buf, sizeof (buf),
 				 "An IRC Client for UNIX.\n\n"
-				 "This binary was compiled on "__DATE__"\n"
 				 "Using GTK %d.%d.%d X %d\n"
 				 "Running on %s",
 				 gtk_major_version, gtk_minor_version, gtk_micro_version,
@@ -126,7 +125,7 @@
 #else
 				"<b>Renderer</b>: %s\n"
 #endif
-				"<b>Compiled</b>: "__DATE__"\n\n"
+				"\n"
 				"<small>\302\251 1998-2010 Peter \305\275elezn\303\275 &lt;z...@xchat.org></small>",
 					_("A multiplatform IRC Client"),
 					get_cpu_str(),
diff -ru xchat-2.8.8.orig/src/fe-text/fe-text.c xchat-2.8.8/src/fe-text/fe-text.c
--- xchat-2.8.8.orig/src/fe-text/fe-text.c	2015-08-04 18:38:25.267425176 +0000
+++ xchat-2.8.8/src/fe-text/fe-text.c	2015-08-04 19:28:08.000000000 +0000
@@ -103,7 +103,6 @@
 				"\n"
 				" \017xchat \00310"PACKAGE_VERSION"\n"
 				" \017Running on \00310%s \017glib \00310%d.%d.%d\n"
-				" \017This binary compiled \00310"__DATE__"\017\n",
 				get_cpu_str(),
 				glib_major_version, glib_minor_version, glib_micro_version);
 	fe_print_text (sess, buf, 0);
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to