Merge pull request #1390 from danielp96/bash-reproducibility

Bash reproducibility
This commit is contained in:
tlaurion 2023-04-28 13:42:41 -04:00 committed by GitHub
commit a7777a7dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@ bash_tar := bash-$(bash_version).tar.gz
bash_url := https://ftpmirror.gnu.org/bash/$(bash_tar)
bash_hash := 5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558
bash_configure := CFLAGS=-Os ./configure \
bash_configure := CFLAGS="-g0 -Os" LDFLAGS="-s" ./configure \
$(CROSS_TOOLS) \
--host $(target) \
--prefix="/usr" \

11
patches/bash-5.1.16.patch Normal file
View File

@ -0,0 +1,11 @@
--- clean/bash-5.1.16/Makefile.in 2020-12-16 16:13:10.000000000 -0600
+++ bash-5.1.16/Makefile.in 2023-04-25 14:16:38.849618679 -0600
@@ -626,7 +626,7 @@
@${MAKE} ${MFLAGS} tests TESTSCRIPT=run-gprof
version.h: $(SOURCES) config.h Makefile patchlevel.h
- $(SHELL) $(SUPPORT_SRC)mkversion.sh -b -S ${topdir} -s $(RELSTATUS) -d $(Version) -o newversion.h \
+ $(SHELL) $(SUPPORT_SRC)mkversion.sh -S ${topdir} -s $(RELSTATUS) -d $(Version) -o newversion.h \
&& mv newversion.h version.h
bashversion$(EXEEXT): buildversion.o $(SUPPORT_SRC)bashversion.c