From 92001925f9f3b1ad7631a3fb00f240060e976332 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 22 Jan 2016 15:19:08 -0700 Subject: [PATCH] Require libvirt devel package on Linux distros Also, drop the requirement for the system libvirt Python bindings. This effectively drops support for old distros like Ubuntu Precise. Signed-off-by: Zack Cerza --- bootstrap | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/bootstrap b/bootstrap index fc2d426127..02023f53d4 100755 --- a/bootstrap +++ b/bootstrap @@ -16,18 +16,7 @@ case "$(uname -s)" in Linux) case "$(lsb_release --id --short)" in Ubuntu|Debian) - # Note that we install the system version of python-libvirt here - # instead of relying on PyPI for that particular module. THe reason for - # this is that Ubuntu Precise ships libvirt 0.9.8, and PyPI's - # python-libvirt packages require libvirt >= 1.0.2. - # Some options for resolving this situation would be choosing some or - # all of the following: - # A) Removing support for Precise, - # B) Removing support for downburst, - # C) Adding "Precise" conditionals somewhere, eg. conditionalizing - # this bootstrap script to only use the python-libvirt package on - # Ubuntu Precise. - for package in qemu-utils python-dev libssl-dev python-pip python-virtualenv libev-dev python-libvirt libmysqlclient-dev libffi-dev libyaml-dev ; do + for package in qemu-utils python-dev libssl-dev python-pip python-virtualenv libev-dev libvirt-dev libmysqlclient-dev libffi-dev libyaml-dev ; do if [ "$(dpkg --status -- $package|sed -n 's/^Status: //p')" != "install ok installed" ]; then # add a space after old values missing="${missing:+$missing }$package" @@ -47,7 +36,7 @@ Linux) fi ;; Fedora) - for package in python-pip python-virtualenv libev-devel libvirt-python community-mysql-devel libffi-devel; do + for package in python-pip python-virtualenv libev-devel libvirt-devel community-mysql-devel libffi-devel; do if [ "$(rpm -q $package)" == "package $package is not installed" ]; then missing="${missing:+$missing }$package" fi @@ -66,7 +55,7 @@ Linux) fi ;; "openSUSE project"|"SUSE LINUX") - for package in python-pip python-devel python-virtualenv libev-devel libvirt-python libmysqlclient-devel libffi-devel; do + for package in python-pip python-devel python-virtualenv libev-devel libvirt-devel libmysqlclient-devel libffi-devel; do if [ "$(rpm -q $package)" == "package $package is not installed" ]; then if [ "$(rpm -q --whatprovides $package)" == "no package provides $package" ]; then missing="${missing:+$missing }$package" -- 2.39.5