From f91d6d21ba64906aa2d8b0ba67f60333908e710f Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 1 May 2013 13:26:01 +1000 Subject: [PATCH] Pre-install hgtools for RHEL6 See the inline comment; pre-installing this package works around [1] [1] https://bugzilla.redhat.com/show_bug.cgi?id=924038 Change-Id: Id021b44ac9d8aa28286828ccfd6515b7850bad16 --- stack.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stack.sh b/stack.sh index d534b87ddb..47fccd83a4 100755 --- a/stack.sh +++ b/stack.sh @@ -579,6 +579,17 @@ if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then # Nova stopping later on complaining that # '/var/lib/dbus/machine-id' doesn't exist. sudo service messagebus restart + + # In setup.py, a "setup_requires" package is supposed to + # transient. However there is a bug with rhel6 distribute where + # setup_requires packages can register entry points that aren't + # cleared out properly after the setup-phase; the end result is + # installation failures (bz#924038). Thus we pre-install the + # problem package here; this way the setup_requires dependency is + # already satisfied and it will not need to be installed + # transiently, meaning we avoid the issue of it not being cleaned + # out properly. Note we do this before the track-depends below. + pip_install hgtools fi TRACK_DEPENDS=${TRACK_DEPENDS:-False}