[rhelv6-list] [Solved] Perl-5.6.12 RPM Dependency
Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
rhelv6-list at redhat.com
Mon Jan 28 21:21:02 UTC 2013
On 26 January 2013 05:09, Red Hat Enterprise Linux 6 (Santiago) discussion
mailing-list <rhelv6-list at redhat.com> wrote:
> On Sat, Jan 26, 2013 at 12:43 AM, Red Hat Enterprise Linux 6
> (Santiago) discussion mailing-list wrote:
> > Hello,
> >
> > I have built an RPM of perl-5.6.12 from source.
> >
> > When I try to install this RPM it throws following dependency issues,
> >
> > # rpm -ivh /home/nirmal/rpmbuild/RPMS/x86_64/perl-5.16.2-1.el6.x86_64.rpm
> > error: Failed dependencies:
> > perl(FCGI) is needed by perl-5.16.2-1.el6.x86_64
> > perl(Mac::BuildTools) is needed by perl-5.16.2-1.el6.x86_64
> > perl(Mac::InternetConfig) is needed by perl-5.16.2-1.el6.x86_64
> > perl(Your::Module::Here) is needed by perl-5.16.2-1.el6.x86_64
> > perl(unicore::Name) is needed by perl-5.16.2-1.el6.x86_64
> >
> > I can not find RPMs of these Perl modules anywhere.
> >
> > Is there a way in a .spec file where I can specify not to build these
> > modules or ignore the modules?
> >
> > Let me know if you need my .spec file to review.
> >
>
> I have not here on hand the official Red Hat public source rpm repo
> link, but CentOS ones should be the same as of their binary
> compatibility:
> For example you can extact from this src.rpm the corresponding .spec file
> for
> 6.2
>
> http://vault.centos.org/6.2/os/Source/SPackages/perl-5.10.1-119.el6_1.1.src.rpm
>
> 6.3
> http://vault.centos.org/6.3/os/Source/SPackages/perl-5.10.1-127.el6.src.rpm
>
> Other ones can eventually give you the RHEL links.
> Gianluca
>
Thanks for pointing me to the .spec file.
I recreated my .spec file from old perl version which you mentioned.
The trick is to use filter-requires.sh script in .spec file to exclude the
modules in question.
---
#!/bin/sh
# The original script name has been passed as the first argument:
"$@" |
awk '
$0 != "perl(FCGI)" &&
$0 != "perl(Your::Module::Here)" &&
$0 != "perl(unicore::Name)" &&
$0 != "perl(Tk)" &&
$0 !~ /^perl\(Tk::/ &&
$0 !~ /^perl\(Mac::/
'
# We used to filter also these:
# NDBM perl(v5.6.0) perl(Tie::RangeHash)
# but they don't seem to be present anymore.
--
Thanks,
--
Nirmal D Pathak.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let me help my fellow beings; that is all I seek.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20130128/86371df3/attachment.htm>
More information about the rhelv6-list
mailing list