2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-22 00:49:31 +00:00

fix(perl): use explicit -P patch form for EL8/EL9 rpm compatibility

perl-HTTP-Async and perl-Net-HTTPS-NB used the bare-number "%patch 0" form,
which only rpm >= 4.18 (EL10) understands. On EL8 (rpm 4.14) and EL9 (rpm 4.16)
the SRPM build fails with "%patch without corresponding Patch: tag", so neither
perl-HTTP-Async 0.30-3 nor perl-Net-HTTPS-NB 0.14-3 could be rebuilt for rh8/rh9
and the 2.17 -> 2.18 upgrade reported "nothing provides" for both.

Use the portable "%patch -P 0" form so the patch applies on EL8/EL9/EL10.
This commit is contained in:
Daniel Hilst
2026-06-25 15:42:03 -03:00
parent e65c33cbcd
commit bc674182b9
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ using 'select' lists.
%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch 0 -p1
# Use the explicit -P form so the patch applies on EL8 (rpm 4.14) and EL9
# (rpm 4.16) as well as EL10 (rpm 4.19). The bare-number "%patch 0" form is
# only understood by rpm >= 4.18 and fails older rpm with
# "%patch without corresponding Patch: tag".
%patch -P 0 -p1
%build
CFLAGS="$RPM_OPT_FLAGS $CFLAGS" %__perl Makefile.PL
+5 -1
View File
@@ -37,7 +37,11 @@ addition allows non-blocking connect.
%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch 0 -p1
# Use the explicit -P form so the patch applies on EL8 (rpm 4.14) and EL9
# (rpm 4.16) as well as EL10 (rpm 4.19). The bare-number "%patch 0" form is
# only understood by rpm >= 4.18 and fails older rpm with
# "%patch without corresponding Patch: tag".
%patch -P 0 -p1
%build
%__perl Makefile.PL