[scl.org] Question about generating RPMs that depend on SCLs (like python27)

Alan Robertson alanr at unix.sh
Tue Jul 15 20:09:15 UTC 2014


It's an install dependency issue - it builds just fine.  But attaching 
it is a good thought.  Thanks!

The message below comes up when I try and install the RPM which I 
successfully built:

*Error: Package: assimilation-cma-0.1.4-0.30.x86_64 
(/assimilation-cma-0.1.4-0.30.x86_64)**
**           Requires: python(abi) = 2.7**
**           Installed: python-2.6.6-52.el6.x86_64 (@Updates/$releasever)**
**               python(abi) = 2.6**
**           Available: python-2.6.6-51.el6.x86_64 (base)**
**               python(abi) = 2.6*

The machine I tried to install it on *has* python27 installed on it.  
So, it looks to me more like the python27 package doesn't provide 
"python(abi) = 2.7"

This particular python27 package comes from CentOS.


On 07/15/2014 12:08 PM, Honza Horak wrote:
> On 07/15/2014 07:14 PM, Alan Robertson wrote:
>> So, my tool does not conflict with anything that RH or anyone else
>> provides -- so it doesn't need to be an SCL package.  It just *depends*
>> on an SCL package.  My code is perfectly happy to issue the scl commands
>> when it needs to (it knows when it needs to).  No one has to issue any
>> scl commands to run my code.
>>
>> Both of those links seem to be oriented towards creating an SCL
>> package.  Did I miss something?
>
> It could help if you provided the spec file. From the description so 
> far it looks like you does not enable python27 collection in the 
> %build and %install section, so the build and install scriptlets have 
> not properly set environment. But I may be wrong.
>
> HTH,
> Honza
>
>>      Thanks!
>>
>>
>> On 07/15/2014 10:03 AM, Petr Kovar wrote:
>>> Hi,
>>>
>>> On Tue, 15 Jul 2014 10:52:43 -0500
>>> Eugene Vilensky <evilensky at gmail.com> wrote:
>>>
>>>> On Mon, Jul 14, 2014 at 4:06 PM, Alan Robertson <alanr at unix.sh> wrote:
>>>>
>>>>> I'm creating an RPM (and spec file) that needs Python 2.7 (the 
>>>>> python27
>>>>> scl).  When I generate it for RHEL6/CentOS6, I the RPM I create has
>>>>> some
>>>>> automatically generated dependencies which python27 does not seem to
>>>>> fulfill...
>>>>
>>>> ​Hi Alan,
>>>>
>>>> I'm only beginning to look into doing this for myself, but this 
>>>> might be
>>>> how your spec might need to be modified to be SCL aware?:
>>>>
>>>> https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/1/html/Software_Collections_Guide/sect-Converting_a_Conventional_Spec_File.html 
>>>>
>>>>
>>> A newer version of the doc is here:
>>>
>>> https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/2/html/Software_Collections_Guide/sect-Converting_a_Conventional_Spec_File.html 
>>>
>>>
>>>
>>> This link might also be of help:
>>>
>>> https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/2/html/Software_Collections_Guide/sect-Extending_the_python27_and_python33_Software_Collections.html 
>>>
>>>
>>>>>> HTH,
>>> pk
>>>
>>> _______________________________________________
>>> SCLorg mailing list
>>> SCLorg at redhat.com
>>> https://www.redhat.com/mailman/listinfo/sclorg
>>
>>
>


-- 
     Alan Robertson <alanr at unix.sh> - @OSSAlanR

"Openness is the foundation and preservative of friendship...  Let me claim from you at all times your undisguised opinions." - William Wilberforce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/sclorg/attachments/20140715/c746c238/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assimilation-cma.spec
Type: text/x-rpm-spec
Size: 15311 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/sclorg/attachments/20140715/c746c238/attachment.bin>


More information about the SCLorg mailing list