public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] bash: Change the VER parameter to also include the patch number
@ 2026-10-28 20:46 Adolf Belka
  2026-10-28 20:47 ` [PATCH] readline: " Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2026-10-28 20:46 UTC (permalink / raw)
  To: development; +Cc: Adolf Belka

- 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(-)

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
 
-- 
2.56.0



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

end of thread, other threads:[~2026-10-28 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 20:46 [PATCH] bash: Change the VER parameter to also include the patch number Adolf Belka
2026-10-28 20:47 ` [PATCH] readline: " Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox