[scl.org] perl dependency generation on CentOS 7

Malcolm Studd mstudd at recognia.com
Fri Aug 1 16:30:35 UTC 2014


I'm having trouble building a perl 5.18/5.20 SCL on CentOS 7. I already
built a perl 5.18 SCL on CentOS 6 based on the perl516 SCL, and it
worked no problem. Moving to CentOS 7, though, all the requires/provides
are "perl" instead of "perl518-perl"

I followed SCL documentation[1] for creating sofware collections and
adjusted some things in the perl518.spec to more closely match. There is
a /etc/rpm/macros.perl518-config with
   %scl perl518
   %__perl %_scl_root/usr/bin/perl
   %__perl_provides /usr/lib/rpm/perl.perl518-prov
   %__perl_requires /usr/lib/rpm/perl.perl518-req
in it. While %__perl_provides seems to be set when building perl.spec,
it doesn't seem to be used, though it looks like the example in the
docs[2]. Setting %_use_internal_dependency_generator 0 or 1 seems to
have no effect.

I added some manual filtering like shown for pkgconfig:
    %__filter_from_req | /usr/bin/sed -e 's|^perl$|perl518-perl|g'
    %__filter_from_req | /usr/bin/sed -e 's|^perl |perl518-perl |g'
    %__filter_from_req | /usr/bin/sed -e 's| perl(| perl518-perl(|g'
    %__filter_from_req | /usr/bin/sed -e 's|^perl(|perl518-perl(|g'
    %__filter_from_prov | /usr/bin/sed -e 's| perl | perl518-perl |g'
    %__filter_from_prov | /usr/bin/sed -e 's| perl(| perl518-perl(|g'
    %__filter_from_prov | /usr/bin/sed -e 's|^perl(|perl518-perl(|g'
This gets most dependencies, except for:
    perl >= 0:5.000
    perl >= 1:5.010_000
    perl >= 1:5.010001
    perl518-perl >= 0:5.006
    perl518-perl >= 0:5.009001

Anyone have any idea what's going wrong?

Spec files attached for any clues in there.



Recognia – World Leaders in Technical Analysis [VIDEO]<http://www.recognia.com/movie>



This message may contain confidential and proprietary information of Recognia Inc. and is intended only for the designated recipient(s). If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.

To stop receiving communication from Recognia simply click on the email address below:
unsubscribe at recognia.com<mailto:unsubscribe at recognia.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl518.spec
Type: text/x-rpm-spec
Size: 5187 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20140801/859927bd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl.spec
Type: text/x-rpm-spec
Size: 145983 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20140801/859927bd/attachment-0001.bin>

More information about the SCLorg mailing list