Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] [PATCH] [RFC] drbd: do not record build details
@ 2017-07-17 19:49 Bernhard M. Wiedemann
  2017-07-18  7:25 ` Roland Kammerer
  0 siblings, 1 reply; 4+ messages in thread
From: Bernhard M. Wiedemann @ 2017-07-17 19:49 UTC (permalink / raw)
  To: drbd-dev

such as user, hostname and build date
to allow reproducible builds

See https://reproducible-builds.org/ for why this matters.

---
Note: There are plenty alternatives to this patch
but this one was the easiest to write for me
to have a fully reproducible build
and is meant as a base for discussing how to fix this part.
E.g. it could involve a [ -z "${SOURCE_DATE_EPOCH" ] || ...
---
 drbd/Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drbd/Kbuild b/drbd/Kbuild
index 2d1b4d0..08def4e 100644
--- a/drbd/Kbuild
+++ b/drbd/Kbuild
@@ -134,5 +134,5 @@ $(obj)/drbd_buildtag.c: $(filter-out drbd_buildtag.o,$(drbd-y))
 		echo >&2 "Your DRBD source tree is broken. Unpack again.";      \
 		exit 1;								\
 	fi ;									\
-	echo -e "\t\t\" build by $$USER@$$HOSTNAME, `date "+%F %T"`\";\n}";	\
+	echo -e "\t\t\" reproducible build\";\n}";	\
 	mv -f $@.new $@
-- 
2.12.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-18  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 19:49 [Drbd-dev] [PATCH] [RFC] drbd: do not record build details Bernhard M. Wiedemann
2017-07-18  7:25 ` Roland Kammerer
2017-07-18  8:08   ` Bernhard M. Wiedemann
2017-07-18  8:21     ` Roland Kammerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox