public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - only consider files with .pm suffix as perl modules (#927211)
Date: Mon, 23 Nov 2026 09:28:13 GMT [thread overview]
Message-ID: <179542609310.1.2890079225398177249.rpms-rpm-1cefad535cc6@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 1cefad535cc6e605253a14935a901dd100367e83
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2013-05-22T08:48:55+03:00
Stats : +27/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/1cefad535cc6e605253a14935a901dd100367e83?branch=pmatilai-v6
Log:
- only consider files with .pm suffix as perl modules (#927211)
---
diff --git a/rpm-4.11.x-perllib-attr.patch b/rpm-4.11.x-perllib-attr.patch
new file mode 100644
index 0000000..f2071ab
--- /dev/null
+++ b/rpm-4.11.x-perllib-attr.patch
@@ -0,0 +1,20 @@
+commit 9b734cee5dc9805a6f8d24c3f30ed82a7aef5673
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date: Wed May 22 08:38:53 2013 +0300
+
+ Only consider files with .pm suffix as perl modules (RhBug:927211)
+
+ - Newer file is more eager to flag files as Perl module source,
+ causing false provides to be generated. Require both magic
+ and path to match for perllib classification to reduce the pain.
+
+diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr
+index 4e54225..fcad480 100644
+--- a/fileattrs/perllib.attr
++++ b/fileattrs/perllib.attr
+@@ -1,3 +1,5 @@
+ %__perllib_provides %{_rpmconfigdir}/perl.prov
+ %__perllib_requires %{_rpmconfigdir}/perl.req
+ %__perllib_magic ^Perl[[:digit:]] module source.*
++%__perllib_path \\.pm$
++%__perllib_flags magic_and_path
diff --git a/rpm.spec b/rpm.spec
index d623712..64ff0bc 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}5%{?dist}
+Release: %{?snapver:0.%{snapver}.}6%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -51,6 +51,8 @@ Patch100: 0001-Finish-lua-5.2-support-trac-865.patch
Patch101: rpm-4.11.x-cursor-failchk.patch
# Filter soname dependencies by name
Patch102: rpm-4.11.x-filter-soname-deps.patch
+# Stricter perllib classification
+Patch103: rpm-4.11.x-perllib-attr.patch
# These are not yet upstream
Patch301: rpm-4.6.0-niagara.patch
@@ -232,6 +234,7 @@ packages on a system.
%patch100 -p1 -b .lua-5.2
%patch101 -p1 -b .cursor-failchk
%patch102 -p1 -b .filter-soname-deps
+%patch103 -p1 -b .perllib-attr
%patch301 -p1 -b .niagara
%patch302 -p1 -b .geode
@@ -465,6 +468,9 @@ exit 0
%doc COPYING doc/librpm/html/*
%changelog
+* Wed May 22 2013 Panu Matilainen <pmatilai@redhat.com> - - 4.11.0.1-6
+- only consider files with .pm suffix as perl modules (#927211)
+
* Fri May 17 2013 Panu Matilainen <pmatilai@redhat.com> - - 4.11.0.1-5
- filter out non-library soname dependencies
reply other threads:[~2026-11-23 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179542609310.1.2890079225398177249.rpms-rpm-1cefad535cc6@fedoraproject.org \
--to=pmatilai@redhat.com \
--cc=git-commits@fedoraproject.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