Source: nano Version: 2.2.6-3 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps
Hi! While working on the “reproducible builds” effort [1], we have noticed that nano could not be built reproducibly. The build date and time are currently recorded in order to be displayed in the online help. We believe this information to be of little use in the context of Debian, when similar information are available through the package data and metadata. The attached patch simply removes the build date from the online help. Once applied, nano can be built reproducibly using the current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Lunar .''`. lu...@debian.org : :Ⓐ : # apt-get install anarchism `. `'` `-
diff -Nru nano-2.2.6/debian/changelog nano-2.2.6/debian/changelog --- nano-2.2.6/debian/changelog 2014-07-16 18:54:22.000000000 +0200 +++ nano-2.2.6/debian/changelog 2015-01-01 23:21:05.000000000 +0100 @@ -1,3 +1,10 @@ +nano (2.2.6-3.0~reproducible1) UNRELEASED; urgency=low + + * Remove build date from online help to make the package build + reproducibly. + + -- Jérémy Bobbio <lu...@debian.org> Thu, 01 Jan 2015 22:20:19 +0000 + nano (2.2.6-3) unstable; urgency=medium * The "Gürtel" release. diff -Nru nano-2.2.6/debian/patches/remove_build_date_from_help.patch nano-2.2.6/debian/patches/remove_build_date_from_help.patch --- nano-2.2.6/debian/patches/remove_build_date_from_help.patch 1970-01-01 01:00:00.000000000 +0100 +++ nano-2.2.6/debian/patches/remove_build_date_from_help.patch 2015-01-01 23:20:14.000000000 +0100 @@ -0,0 +1,19 @@ +Description: Remove build date from online help + Build date and time are of little use in the context of Debian a + one can look at the package data and metadata to figure it out. + But recording such information prevents the package from being + built reproducibly. Let's just get rid of them. +Author: Jérémy Bobbio <lu...@debian.org> + +--- nano-2.2.6.orig/src/nano.c ++++ nano-2.2.6/src/nano.c +@@ -935,8 +935,7 @@ void usage(void) + * it was compiled with. */ + void version(void) + { +- printf(_(" GNU nano version %s (compiled %s, %s)\n"), VERSION, +- __TIME__, __DATE__); ++ printf(_(" GNU nano version %s\n"), VERSION); + printf(" (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,\n"); + printf(" 2008, 2009 Free Software Foundation, Inc.\n"); + printf( diff -Nru nano-2.2.6/debian/patches/series nano-2.2.6/debian/patches/series --- nano-2.2.6/debian/patches/series 2014-07-16 18:16:22.000000000 +0200 +++ nano-2.2.6/debian/patches/series 2015-01-01 23:18:36.000000000 +0100 @@ -3,3 +3,4 @@ 614817_sources.list_tabs.patch highlight_sources.list.d.patch manpage_escaping.patch +remove_build_date_from_help.patch
signature.asc
Description: Digital signature