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: - adjust perl and python detection rules for libmagic change (#772699)
Date: Mon, 23 Nov 2026 09:27:30 GMT	[thread overview]
Message-ID: <179542605058.1.6797775456559123419.rpms-rpm-c3ac54c9d5e3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : c3ac54c9d5e3a2393d976c2dcd6771f476620f7a
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2012-01-10T10:55:04+02:00
Stats  : +41/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/c3ac54c9d5e3a2393d976c2dcd6771f476620f7a?branch=pmatilai-v6

Log:
- adjust perl and python detection rules for libmagic change (#772699)

---
diff --git a/rpm-4.9.1.2-perl-python-attr.patch b/rpm-4.9.1.2-perl-python-attr.patch
new file mode 100644
index 0000000..b0221cb
--- /dev/null
+++ b/rpm-4.9.1.2-perl-python-attr.patch
@@ -0,0 +1,35 @@
+commit 9ddcc23d2b7ecaf5336530dbe37195b0057d0396
+Author: Ville Skyttä <ville.skytta@iki.fi>
+Date:   Tue Jan 10 10:48:13 2012 +0200
+
+    Adapt perl and python fileattrs to file 5.10 magics
+    
+    - file 5.10 has changed magics at least for perl and python scripts, samples:
+    
+      5.09: a /usr/bin/perl -w script, ASCII text executable, with very long lines
+      5.10: Perl script, ASCII text executable, with very long lines
+    
+      5.09: a /usr/bin/python script, ASCII text executable
+      5.10: Python script, ASCII text executable
+    
+    Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
+
+diff --git a/fileattrs/perl.attr b/fileattrs/perl.attr
+index 23b873f..0daef58 100644
+--- a/fileattrs/perl.attr
++++ b/fileattrs/perl.attr
+@@ -1,3 +1,3 @@
+ %__perl_requires	%{_rpmconfigdir}/perl.req
+-%__perl_magic		^.*perl .*$
++%__perl_magic		^.*[Pp]erl .*$
+ %__perl_flags		exeonly
+diff --git a/fileattrs/python.attr b/fileattrs/python.attr
+index 5b48f75..4eaad76 100644
+--- a/fileattrs/python.attr
++++ b/fileattrs/python.attr
+@@ -1,4 +1,4 @@
+ %__python_provides	%{_rpmconfigdir}/pythondeps.sh --provides
+ %__python_requires	%{_rpmconfigdir}/pythondeps.sh --requires
+ %__python_path	^((/usr/lib(64)?/python[[:digit:]]\\.[[:digit:]]/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]\\.[[:digit:]]))$
+-%__python_magic		^python.*(executable|byte-compiled)$
++%__python_magic		^[Pp]ython.*(executable|byte-compiled)$

diff --git a/rpm.spec b/rpm.spec
index a318598..c71697d 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}.}9%{?dist}
+Release: %{?snapver:0.%{snapver}.}10%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.9.x/%{name}-%{srcver}.tar.bz2
@@ -44,6 +44,7 @@ Patch5: rpm-4.9.0-armhfp.patch
 # Patches already in upstream
 Patch100: rpm-4.9.x-fontattr.patch
 Patch101: rpm-4.9.x-elfattr.patch
+Patch102: rpm-4.9.1.2-perl-python-attr.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -223,6 +224,7 @@ packages on a system.
 
 %patch100 -p1 -b .fontattr
 %patch101 -p1 -b .elfattr
+%patch102 -p1 -b .perl-python-attr
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -451,6 +453,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Tue Jan 10 2012 Panu Matilainen <pmatilai@redhat.com> - 4.9.1.2-10
+- adjust perl and python detection rules for libmagic change (#772699)
+
 * Mon Jan 09 2012 Jindrich Novy <jnovy@redhat.com> - 4.9.1.2-9
 - recognize perl script as perl code (#772632)
 

                 reply	other threads:[~2026-11-23  9:27 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=179542605058.1.6797775456559123419.rpms-rpm-c3ac54c9d5e3@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