xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/rpm/files/0001-perl-disable-auto-reqs.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunperl: disable auto requires
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunWhen generating automatic requirements, it's possible for perl scripts to
4*4882a593Smuzhiyundeclare 'optional' dependencies.  These seem to often be incorrect and will
5*4882a593Smuzhiyuncause installation failures in OE.  Instead of fixing the perl scripts, it
6*4882a593Smuzhiyunwas decided it is better to simply disable the automatic dependency
7*4882a593Smuzhiyungeneration.  This matches the behavior from the previous RPM5 implementation.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunUpstream-Status: Inappropriate [OE specific configuration]
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSigned-off-by: Mark Hatle <mark.hatle@windriver.com>
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunIndex: git/fileattrs/perl.attr
14*4882a593Smuzhiyun===================================================================
15*4882a593Smuzhiyun--- git.orig/fileattrs/perl.attr
16*4882a593Smuzhiyun+++ git/fileattrs/perl.attr
17*4882a593Smuzhiyun@@ -1,3 +1,3 @@
18*4882a593Smuzhiyun-%__perl_requires	%{_rpmconfigdir}/perl.req
19*4882a593Smuzhiyun+#__perl_requires	%{_rpmconfigdir}/perl.req
20*4882a593Smuzhiyun %__perl_magic		^.*[Pp]erl .*$
21*4882a593Smuzhiyun %__perl_flags		exeonly
22*4882a593SmuzhiyunIndex: git/fileattrs/perllib.attr
23*4882a593Smuzhiyun===================================================================
24*4882a593Smuzhiyun--- git.orig/fileattrs/perllib.attr
25*4882a593Smuzhiyun+++ git/fileattrs/perllib.attr
26*4882a593Smuzhiyun@@ -1,5 +1,5 @@
27*4882a593Smuzhiyun %__perllib_provides	%{_rpmconfigdir}/perl.prov
28*4882a593Smuzhiyun-%__perllib_requires	%{_rpmconfigdir}/perl.req
29*4882a593Smuzhiyun+#__perllib_requires	%{_rpmconfigdir}/perl.req
30*4882a593Smuzhiyun %__perllib_magic	^Perl[[:digit:]] module source.*
31*4882a593Smuzhiyun %__perllib_path		\\.pm$
32*4882a593Smuzhiyun %__perllib_flags	magic_and_path
33