Fix missing libffi-devel for python-glanceclient

python-glanceclient is failing to install on rhel6 with a dependency
chain from pip as

  cryptography>=0.2.1 (from pyOpenSSL>=0.11->python-glanceclient==0.12.0.56.gb8a850c)

cryptography requires libffi-devel to build.  I'm not sure what
changed, but remove it from "testonly" so it is always installed.

However, RHEL6 includes this in the optional repo, so we enable this
repo in the fixup script.

Change-Id: I9da0e91b75f41578861ee9685b8c7e91dd12dae7
This commit is contained in:
Ian Wienand 2014-02-24 14:24:13 +11:00
parent f1eb0475d9
commit 4f1fee6eae
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
gcc
libffi-dev # testonly
libffi-dev
libmysqlclient-dev # testonly
libpq-dev # testonly
libssl-dev # testonly

View File

@ -1,5 +1,5 @@
gcc
libffi-devel # testonly
libffi-devel
libxml2-devel # testonly
libxslt-devel # testonly
mysql-devel # testonly

View File

@ -98,6 +98,10 @@ if [[ $DISTRO =~ (rhel6) ]]; then
sudo setenforce 0
fi
# make sure we have the "optional" repo enabled; it provides some
# packages like libffi-devel for example
sudo yum-config-manager --enable rhel-6-server-optional-rpms
# If the ``dbus`` package was installed by DevStack dependencies the
# uuid may not be generated because the service was never started (PR#598200),
# causing Nova to stop later on complaining that ``/var/lib/dbus/machine-id``