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

Orion Poplawski orion at cora.nwra.com
Tue Jul 15 22:06:36 UTC 2014


On 07/15/2014 03:55 PM, Alan Robertson wrote:
> OK.  It was pointed out to me off-list that I was comparing the wrong thing.
> I should have been looking at python27-python.  Here's what that package shows:
>
> bash-4.1# *rpm -q --provides python27-python*
> python27-python-abi = 2.7
> python27-python(abi) = 2.7
> python27-Distutils
> python27-python2 = 2.7.5
> python27-python-sqlite = 2.3.2
> python27-python-ctypes = 1.0.1
> python27-python-hashlib = 20081120
> python27-python-uuid = 1.31
> python27-python-argparse = 2.7.5-7.el6.centos.alt
> python27-python = 2.7.5-7.el6.centos.alt
> python27-python(x86-64) = 2.7.5-7.el6.centos.alt
> bash-4.1#
>
> Either I'm failing to do something to appease the automagical python-version
> detection (which I have no idea how it figures that out), or the property
> names in python27-python should not have the "python27-" prefix.
>
> Anyone know which it is - and how to deal with it?
>
> It seems to me like the attributes of the provides should not be prefixed by
> python27.  But I'm new to this SCL stuff...

FWIW - they "python(abi) = ##" requires is added by /usr/lib/rpm/pythondeps.sh 
as part of the standard rpm dependency generation.  So yes, for this to work 
with the scl, either the scl needs to provide "python(abi) = 2.7" or you will 
need to disable the automatic requires generation or filter out the 
python(abi) line.

We're all new to this SCL stuff.... :)


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com




More information about the SCLorg mailing list