[scl.org] perl dependency generation on CentOS 7

Jitka Plesnikova jplesnik at redhat.com
Mon Aug 4 07:35:23 UTC 2014


On 08/01/2014 10:03 PM, Malcolm Studd wrote:
> On 08/01/2014 03:41 PM, Orion Poplawski wrote:
>> On 08/01/2014 10:30 AM, Malcolm Studd wrote:
>>> 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.
>>
>> By chance do you have %__perl_provides being defined in multiple rpm
>> macro files (i.e. multiple perl*-devel packages installed)?
>>
>>
>
> I see two files in /etc/rpm:
> /etc/rpm/macros.perl:%global __perl_provides /usr/lib/rpm/perl.prov
> /etc/rpm/macros.perl518-config:%__perl_provides
> /usr/lib/rpm/perl.perl518-prov
>
> No files in /usr/lib/rpm.
>
> The macros.perl file comes from perl-macros-5.16.3-283.el7.x86_64. If I
> `echo %__perl_provides` in the %setup section, it prints
> /usr/lib/rpm/perl.perl518-prov, so it looks like the right setup is
> being picked up.
>
> I've uninstall perl-macros and started the build to see if that helps at
> all.
>
> Thank you.
>
> Malcolm
> www.recognia.com<http://www.recognia.com/>
>

Hi,

the macros for perl should be a different at CentOS 7.

Something like this

%scl_package_override() %{expand: \
%global __perl %_scl_root/usr/bin/perl \
%global __perl_requires /usr/lib/rpm/perl.req.stack \
%global __perl_provides /usr/lib/rpm/perl.prov.stack \
%global __perllib_requires /usr/lib/rpm/perl.req.stack \
%global __perllib_provides /usr/lib/rpm/perl.prov.stack \
}

It overrides definition specified at /usr/lib/rpm/fileattrs/perl*attr
(for more info http://www.rpm.org/wiki/PackagerDocs/DependencyGenerator)

Regards,
Jitka






More information about the SCLorg mailing list