[packages/bash] - use autopatch for applying patchlevel source patches
baggins
baggins at pld-linux.org
Sat Oct 11 14:31:05 CEST 2025
commit 607035b7d731a0e89fdc0848ead149d9267fd0e8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Oct 11 16:30:35 2025 +0200
- use autopatch for applying patchlevel source patches
bash.spec | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/bash.spec b/bash.spec
index 4b5724a..6752a0a 100644
--- a/bash.spec
+++ b/bash.spec
@@ -8,6 +8,7 @@
%define ver 5.2
%define patchlevel 37
+%define min_patch_nr 1000
%define rel 1
%define min_readline 8.2
Summary: GNU Bourne Again Shell (bash)
@@ -38,7 +39,7 @@ Patch8: %{name}-sighup.patch
Patch9: %{name}-backup_history.patch
Patch10: %{name}-act_like_sh.patch
Patch11: %{name}-elinks_cont.patch
-%patchset_source -f https://ftp.gnu.org/gnu/bash/bash-5.2-patches/bash52-%03g 1 %{patchlevel}
+%patchset_source -f https://ftp.gnu.org/gnu/bash/bash-5.2-patches/bash52-%03g -b %{min_patch_nr} 1 %{patchlevel}
URL: http://www.gnu.org/software/bash/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
@@ -197,7 +198,7 @@ Pliki nagłówkowe do tworzenia wtyczek basha.
%prep
%setup -q -n %{name}-%{ver} -a5
# official patches
-%{?patchlevel:%patchset_patch 1 %{patchlevel}}
+%{?patchlevel:%autopatch -v -p0 -m %{min_patch_nr}}
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bash.git/commitdiff/607035b7d731a0e89fdc0848ead149d9267fd0e8
More information about the pld-cvs-commit
mailing list