From 4e098983a16452524f316597854b63fb786115fa Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 2 Dec 2015 17:40:09 +1100 Subject: [PATCH] Preinstall redhat-rpm-config for Fedora As described in the comments, there is a depdency bug which means some python module builds fail without the config provided by this package. Pre-install it before we start installing things. Change-Id: I3c8615f17e47956f258fee10caa9a57c99c719b8 --- install_puppet.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install_puppet.sh b/install_puppet.sh index bf236cab0d..af887675e1 100755 --- a/install_puppet.sh +++ b/install_puppet.sh @@ -68,7 +68,16 @@ function setup_puppet_fedora { # NOTE: we preinstall lsb_release to ensure facter sets # lsbdistcodename - yum install -y redhat-lsb-core git puppet + # + # Fedora declares some global hardening flags, which distutils + # pick up when building python modules. redhat-rpm-config + # provides the required config options. Really this should be a + # dependency of python-devel (fix in the works, see + # https://bugzilla.redhat.com/show_bug.cgi?id=1217376) and can be + # removed when that is sorted out. + + yum install -y redhat-lsb-core git puppet \ + redhat-rpm-config mkdir -p /etc/puppet/modules/