From f23d40c39cc346833b4ac89c79aa5bf316c74bb3 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Jan 18 2018 19:27:18 +0000 Subject: Replace /usr/bin/python with /usr/bin/python3 in kvm_stat (#1456722) Since Fedora still has /usr/bin/python pointing at python2, switch the shebang to explicitly use Python 3 so we don't pull in another dependency. --- diff --git a/kernel-tools.spec b/kernel-tools.spec index 2f091de..792a98a 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -122,7 +122,6 @@ Obsoletes: cpufreq-utils < 1:009-0.6.p1 Obsoletes: cpufrequtils < 1:009-0.6.p1 Obsoletes: cpuspeed < 1:1.5-16 Requires: kernel-tools-libs = %{version}-%{release} -%global __requires_exclude ^%{_bindir}/python %description -n kernel-tools This package contains the tools/ directory from the kernel source and the supporting documentation. @@ -186,6 +185,9 @@ cd linux-%{kversion} # END OF PATCH APPLICATIONS +# Explicitly use Python 3 for kvm_stat +sed -i '1s=^#!/usr/bin/python=#!%{__python3}=' tools/kvm/kvm_stat/kvm_stat + ### ### build ###