<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 January 2013 05:09, Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list <span dir="ltr"><<a href="mailto:rhelv6-list@redhat.com" target="_blank">rhelv6-list@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Sat, Jan 26, 2013 at 12:43 AM, Red Hat Enterprise Linux 6<br>
(Santiago) discussion mailing-list wrote:<br>
> Hello,<br>
><br>
> I have built an RPM of perl-5.6.12 from source.<br>
><br>
> When I try to install this RPM it throws following dependency issues,<br>
><br>
> # rpm -ivh /home/nirmal/rpmbuild/RPMS/x86_64/perl-5.16.2-1.el6.x86_64.rpm<br>
> error: Failed dependencies:<br>
>     perl(FCGI) is needed by perl-5.16.2-1.el6.x86_64<br>
>     perl(Mac::BuildTools) is needed by perl-5.16.2-1.el6.x86_64<br>
>     perl(Mac::InternetConfig) is needed by perl-5.16.2-1.el6.x86_64<br>
>     perl(Your::Module::Here) is needed by perl-5.16.2-1.el6.x86_64<br>
>     perl(unicore::Name) is needed by perl-5.16.2-1.el6.x86_64<br>
><br>
> I can not find RPMs of these Perl modules anywhere.<br>
><br>
> Is there a way in a .spec file where I can specify not to build these<br>
> modules or ignore the modules?<br>
><br>
> Let me know if you need my .spec file to review.<br>
><br>
<br>
</div>I have not here on hand the official Red Hat public source rpm repo<br>
link, but CentOS ones should be the same as of their binary<br>
compatibility:<br>
For example you can extact from this src.rpm the corresponding .spec file for<br>
6.2<br>
<a href="http://vault.centos.org/6.2/os/Source/SPackages/perl-5.10.1-119.el6_1.1.src.rpm" target="_blank">http://vault.centos.org/6.2/os/Source/SPackages/perl-5.10.1-119.el6_1.1.src.rpm</a><br>
<br>
6.3<br>
<a href="http://vault.centos.org/6.3/os/Source/SPackages/perl-5.10.1-127.el6.src.rpm" target="_blank">http://vault.centos.org/6.3/os/Source/SPackages/perl-5.10.1-127.el6.src.rpm</a><br>
<br>
Other ones can eventually give you the RHEL links.<br>
Gianluca<br></blockquote><div><br></div><div>Thanks for pointing me to the .spec file.<br><br></div><div>I recreated my .spec file from old perl version which you mentioned.<br><br></div><div>The trick is to use filter-requires.sh script in .spec file to exclude the modules in question.<br>

<br>---<br></div><div> #!/bin/sh<br><br># The original script name has been passed as the first argument:<br>"$@" |<br>  awk '<br>    $0 != "perl(FCGI)" &&<br>    $0 != "perl(Your::Module::Here)" &&<br>

    $0 != "perl(unicore::Name)" &&<br>    $0 != "perl(Tk)" &&<br>    $0 !~ /^perl\(Tk::/ &&<br>    $0 !~ /^perl\(Mac::/<br>      '<br><br># We used to filter also these:<br>

#    NDBM perl(v5.6.0) perl(Tie::RangeHash)<br># but they don't seem to be present anymore.<br>--<br><br></div><div>Thanks,<br></div></div>-- <br>Nirmal D Pathak.<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Let me help my fellow beings; that is all I seek.<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</div></div>