Browse code

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

Ian Wienand authored on 2014/02/24 12:24:13
Showing 3 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 gcc
2
-libffi-dev          # testonly
2
+libffi-dev
3 3
 libmysqlclient-dev  # testonly
4 4
 libpq-dev           # testonly
5 5
 libssl-dev          # testonly
... ...
@@ -1,5 +1,5 @@
1 1
 gcc
2
-libffi-devel        # testonly
2
+libffi-devel
3 3
 libxml2-devel       # testonly
4 4
 libxslt-devel       # testonly
5 5
 mysql-devel         # testonly
... ...
@@ -98,6 +98,10 @@ if [[ $DISTRO =~ (rhel6) ]]; then
98 98
         sudo setenforce 0
99 99
     fi
100 100
 
101
+    # make sure we have the "optional" repo enabled; it provides some
102
+    # packages like libffi-devel for example
103
+    sudo yum-config-manager --enable rhel-6-server-optional-rpms
104
+
101 105
     # If the ``dbus`` package was installed by DevStack dependencies the
102 106
     # uuid may not be generated because the service was never started (PR#598200),
103 107
     # causing Nova to stop later on complaining that ``/var/lib/dbus/machine-id``