- adjust perl and python detection rules for libmagic change (#772699)
This commit is contained in:
parent
156379cf0b
commit
c3ac54c9d5
35
rpm-4.9.1.2-perl-python-attr.patch
Normal file
35
rpm-4.9.1.2-perl-python-attr.patch
Normal file
@ -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)$
|
7
rpm.spec
7
rpm.spec
@ -21,7 +21,7 @@
|
|||||||
Summary: The RPM package management system
|
Summary: The RPM package management system
|
||||||
Name: rpm
|
Name: rpm
|
||||||
Version: %{rpmver}
|
Version: %{rpmver}
|
||||||
Release: %{?snapver:0.%{snapver}.}9%{?dist}
|
Release: %{?snapver:0.%{snapver}.}10%{?dist}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.rpm.org/
|
Url: http://www.rpm.org/
|
||||||
Source0: http://rpm.org/releases/rpm-4.9.x/%{name}-%{srcver}.tar.bz2
|
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
|
# Patches already in upstream
|
||||||
Patch100: rpm-4.9.x-fontattr.patch
|
Patch100: rpm-4.9.x-fontattr.patch
|
||||||
Patch101: rpm-4.9.x-elfattr.patch
|
Patch101: rpm-4.9.x-elfattr.patch
|
||||||
|
Patch102: rpm-4.9.1.2-perl-python-attr.patch
|
||||||
|
|
||||||
# These are not yet upstream
|
# These are not yet upstream
|
||||||
Patch301: rpm-4.6.0-niagara.patch
|
Patch301: rpm-4.6.0-niagara.patch
|
||||||
@ -223,6 +224,7 @@ packages on a system.
|
|||||||
|
|
||||||
%patch100 -p1 -b .fontattr
|
%patch100 -p1 -b .fontattr
|
||||||
%patch101 -p1 -b .elfattr
|
%patch101 -p1 -b .elfattr
|
||||||
|
%patch102 -p1 -b .perl-python-attr
|
||||||
|
|
||||||
%patch301 -p1 -b .niagara
|
%patch301 -p1 -b .niagara
|
||||||
%patch302 -p1 -b .geode
|
%patch302 -p1 -b .geode
|
||||||
@ -451,6 +453,9 @@ exit 0
|
|||||||
%doc COPYING doc/librpm/html/*
|
%doc COPYING doc/librpm/html/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jan 09 2012 Jindrich Novy <jnovy@redhat.com> - 4.9.1.2-9
|
||||||
- recognize perl script as perl code (#772632)
|
- recognize perl script as perl code (#772632)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user