package/coreutils: Prevent overwriting of fakedate
PATCH 1/1 package/coreutils: Prevent overwriting of fakedate
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.
--- package/coreutils/coreutils.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/coreutils/coreutils.mk +5 -0
@@ -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))
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 15 lines · Conrad Ratschan via buildroot
When
BR2_REPRODUCIBLEis set and host-coreutils needs to be built, the fakedate script installed tohost/bin/datewill be overwritten by host-coreutils. Disable installing thedatebinary in host-coreutils whenBR2_REPRODUCIBLEis set.Signed-off-by Conrad Ratschan <[email protected]>--- package/coreutils/coreutils.mk | 5 +++++ 1 file changed, 5 insertions(+)package/coreutils/coreutils.mk +0
-0
package/coreutils/coreutils.mk HOST_COREUTILS_CONF_OPTS = \ · line 165
Quoted 2 lines
package/coreutils/coreutils.mk +0
-0@@ -164,5 +164,10 @@ HOST_COREUTILS_CONF_OPTS = \ --without-gmp \ --enable-install-program=ln,realpath
We were supposed already to only install ln and realpath, so this issue
shouldn't have happened to begin with. Could you investigate in a bit more detail why this --enable-install-program doesn't seem to do the trick?
package/coreutils/coreutils.mk HOST_COREUTILS_CONF_OPTS = \ · line 168
Quoted 3 lines
package/coreutils/coreutils.mk +2
-0+# Avoid overwriting fakedate when creating a reproducible build +ifeq ($(BR2_REPRODUCIBLE),y)
If there really is no way to get enable-install-program to work correctly, then
we should probably not make this conditional on BR2_REPRODUCIBLE anyway.
Regards,
Arnout
package/coreutils/coreutils.mk HOST_COREUTILS_CONF_OPTS = \
Quoted 6 lines
package/coreutils/coreutils.mk +3
-0+HOST_COREUTILS_CONF_OPTS += --enable-no-install-program=date +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
Yann E. MORIN
AppliedArnout, All,
On 2021-08-28 13:47 +0200, Arnout Vandecappelle spake thusly:
Quoted 11 lines · Conrad Ratschan via buildroot
Quoted 10 lines
When
BR2_REPRODUCIBLEis set and host-coreutils needs to be built, the fakedate script installed tohost/bin/datewill be overwritten by host-coreutils. Disable installing thedatebinary in host-coreutils whenBR2_REPRODUCIBLEis set.Signed-off-by Conrad Ratschan <[email protected]>--- package/coreutils/coreutils.mk | 5 +++++ 1 file changed, 5 insertions(+)
Quoted 10 lines
package/coreutils/coreutils.mk HOST_COREUTILS_CONF_OPTS = \ · line 165
Quoted 7 lines
package/coreutils/coreutils.mk +0
-0@@ -164,5 +164,10 @@ HOST_COREUTILS_CONF_OPTS = \ --without-gmp \ --enable-install-program=ln,realpathWe were supposed already to only install ln and realpath, so this issue
shouldn't have happened to begin with. Could you investigate in a bit more detail why this --enable-install-program doesn't seem to do the trick?
See the comment just above the HOST_COREUTILS_CONF_OPTS:
# A lot of other programs still get installed, however, but disabling # them does not gain much at build time, and is a loooong list that is # difficult to maintain...
Quoted 4 lines
package/coreutils/coreutils.mk HOST_COREUTILS_CONF_OPTS = \ · line 168
Quoted 2 lines
package/coreutils/coreutils.mk +2
-0+# Avoid overwriting fakedate when creating a reproducible build +ifeq ($(BR2_REPRODUCIBLE),y)If there really is no way to get enable-install-program to work correctly, then
we should probably not make this conditional onBR2_REPRODUCIBLEanyway.
Yes, we should really just disable it unconditionally...
So, I extended the commit log, the comment to explain all that, and uncoditionally disabled installing date.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Conrad" == Conrad Ratschan via buildroot <[email protected]> writes:
When
BR2_REPRODUCIBLEis set and host-coreutils needs to be built, the fakedate script installed tohost/bin/datewill be overwritten by host-coreutils. Disable installing thedatebinary in host-coreutils whenBR2_REPRODUCIBLEis set.Signed-off-by Conrad Ratschan <[email protected]>
Committed to 2021.02.x and 2021.05.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot