All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/coreutils: Prevent overwriting of fakedate
@ 2021-08-27 21:14 Conrad Ratschan via buildroot
  2021-08-28 11:47 ` Arnout Vandecappelle
  2021-09-07 12:40 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Conrad Ratschan via buildroot @ 2021-08-27 21:14 UTC (permalink / raw)
  To: buildroot; +Cc: conrad.ratschan

When BR2_REPRODUCIBLE is set and host-coreutils needs to be built, the
fakedate script installed to `host/bin/date` will be overwritten by
host-coreutils. Disable installing the `date` binary in host-coreutils
when BR2_REPRODUCIBLE is set.

Signed-off-by: Conrad Ratschan <conrad.ratschan@collins.com>
---
 package/coreutils/coreutils.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 65234a113e..1bdfe2f9cf 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -164,5 +164,10 @@ HOST_COREUTILS_CONF_OPTS = \
 	--without-gmp \
 	--enable-install-program=ln,realpath
 
+# Avoid overwriting fakedate when creating a reproducible build
+ifeq ($(BR2_REPRODUCIBLE),y)
+HOST_COREUTILS_CONF_OPTS += --enable-no-install-program=date
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.17.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-09-07 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 21:14 [Buildroot] [PATCH 1/1] package/coreutils: Prevent overwriting of fakedate Conrad Ratschan via buildroot
2021-08-28 11:47 ` Arnout Vandecappelle
2021-08-28 12:22   ` Yann E. MORIN
2021-09-07 12:40 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.