public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH] bash: Change the VER parameter to also include the patch number
Date: Wed, 28 Oct 2026 21:46:59 +0100	[thread overview]
Message-ID: <20261028204700.2431586-1-adolf.belka@ipfire.org> (raw)

- 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



             reply	other threads:[~2026-10-28 20:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 20:46 Adolf Belka [this message]
2026-10-28 20:47 ` [PATCH] readline: " Adolf Belka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261028204700.2431586-1-adolf.belka@ipfire.org \
    --to=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox