bash: Change the VER parameter to also include the patch number

Message ID 20261028204700.2431586-1-adolf.belka@ipfire.org
State New
Headers
Series bash: Change the VER parameter to also include the patch number |

Commit Message

Adolf Belka 28 Oct 2026, 8:46 p.m. UTC
- There was a separate VER and PATCHVER number and when building only the VER part was
   shown, 5.3 in the bash case.
- With this change 5.3.20 is now shown, combining the package and patch version
- The other changes are to use the appropriate parts of the new VER parameter THISAPP
   and the application of the patches.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/bash | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
  

Patch

diff --git a/lfs/bash b/lfs/bash
index 245aaa791..41350da37 100644
--- a/lfs/bash
+++ b/lfs/bash
@@ -24,10 +24,9 @@ 
 
 include Config
 
-VER        = 5.3
-PATCHVER   = 20
+VER        = 5.3.20
 
-THISAPP    = bash-$(VER)
+THISAPP    = bash-$(basename $(VER))
 DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
@@ -94,9 +93,9 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash/bash-4.0-profile-1.patch
 	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash/bash-3.2-ssh_source_bash.patch
 
-ifneq "$(PATCHVER)" "0"
-	for i in $$(seq 1 $(PATCHVER)); do \
-		cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/bash/bash$(subst .,,$(VER))-$$(printf "%03d" "$${i}") || exit 1; \
+ifneq ($(suffix $(VER)),.0)
+	for i in $$(seq 1 $(patsubst .%,%,$(suffix $(VER)))); do \
+		cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/bash/bash$(subst .,,$(basename $(VER)))-$$(printf "%03d" "$${i}") || exit 1; \
 	done
 endif