patches/bash-5.1.16.patch: Do not increment build number

Bash uses .build to keep count of the build number, which conflicts
with heads build system usage of .build to keep track of built modules.

If .build already exists when bash/configure is run it will increment by 1
the build number. This is configurable on the call to the support script
support/mkversion.sh, which is called from the bash/Makefile.

Patching the Makefile template used during bash configuration allows
disabling the build number increment.

Signed-off-by: Daniel Pineda <daniel.pineda@puri.sm>
This commit is contained in:
Daniel Pineda 2023-04-25 14:32:25 -06:00
parent 31e122443c
commit 1aa216773a
No known key found for this signature in database
GPG Key ID: 902C199C68C4B327

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