From 0810ed8a15cce0bacf56390206e515edef13a84e Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 12 Dec 2023 21:36:53 +0100 Subject: [PATCH] make perl's heredoc matching more generic to get rid of bogus reqs; rel 6 from: https://github.com/rpm-software-management/rpm/pull/2813 --- perl-heredoc-matching.patch | 39 +++++++++++++++++++++++++++++++++++++ rpm.spec | 4 +++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 perl-heredoc-matching.patch diff --git a/perl-heredoc-matching.patch b/perl-heredoc-matching.patch new file mode 100644 index 0000000..8ad0160 --- /dev/null +++ b/perl-heredoc-matching.patch @@ -0,0 +1,39 @@ +From 73419594af15e94e77bae413d9754d3775cf0280 Mon Sep 17 00:00:00 2001 +From: Jan Palus +Date: Tue, 12 Dec 2023 19:45:54 +0100 +Subject: [PATCH] perl.req: make heredoc block matching more generic + +match any <) { + +- # skip the "= <<" block ++ # skip the heredoc block + +- if (m/^\s*(?:my\s*)?\$(?:.*)\s*=\s*<<\s*(["'`])(.+?)\1/ || +- m/^\s*(?:my\s*)?\$(.*)\s*=\s*<<(\w+)\s*;/) { ++ if (m/^[^'"#]+[\s,=(]<<\s*(["'`])(.+?)\1/ || ++ m/^[^'"#]+[\s,=(](<<)(\w+)\s*;/) { + $tag = $2; + while () { + chomp; diff --git a/rpm.spec b/rpm.spec index a986e76..a618e84 100644 --- a/rpm.spec +++ b/rpm.spec @@ -34,7 +34,7 @@ Summary(ru.UTF-8): Менеджер пакетов от RPM Summary(uk.UTF-8): Менеджер пакетів від RPM Name: rpm Version: 4.17.1.1 -Release: 5 +Release: 6 Epoch: 1 License: GPL v2 / LGPL v2.1 Group: Base @@ -95,6 +95,7 @@ Patch36: build-locale.patch Patch37: no-exe-for-elf-req.patch Patch38: gem-in-package-builddir.patch Patch39: sqlite-log-crash.patch +Patch40: perl-heredoc-matching.patch URL: https://rpm.org/ BuildRequires: acl-devel %{?with_audit:BuildRequires: audit-libs-devel} @@ -675,6 +676,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze %patch37 -p1 %patch38 -p1 %patch39 -p1 +%patch40 -p1 %{__rm} po/*.gmo -- 2.44.0