[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 10035ba 1/2: Revert "Install 'perf'"
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 10035ba 1/2: Revert "Install 'perf'" |
Date: |
Sun, 27 Sep 2020 14:39:30 -0400 (EDT) |
branch: master
commit 10035ba0d424114e2b0571f4eb5cf7ee37098920
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Revert "Install 'perf'"
This reverts commit 34fb78dfb7d611c60d87323b92ae1d1986f292b4.
It is generally impossible to install 'perf' in a chroot. The package
name is specific to the (host) kernel version, but that exact package
is unlikely to be available for the chroot, which would generally use
a different release's packages. Building from source might work, but
the apt-get idea in this commit generally won't.
---
lmi_setup_20.sh | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/lmi_setup_20.sh b/lmi_setup_20.sh
index 2b30ca4..a896705 100755
--- a/lmi_setup_20.sh
+++ b/lmi_setup_20.sh
@@ -75,15 +75,6 @@ sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /etc/skel/.bash_logout
# of scripts installs a debian chroot on any host system, and builds
# only in that chroot.
-# Versioning copied from /bin/perf
-perf_version="$(uname -r)"
-perf_version="${perf_version%%-*}"
-case "$perf_version" in
- *.*.*)
- perf_version="${perf_version%.*}"
- ;;
-esac
-
logdir=/srv/cache_for_lmi/logs
mkdir -p "${logdir}"
apt-get update
@@ -103,7 +94,6 @@ apt-get --assume-yes install \
libtool \
libxml2-utils \
libxslt1-dev \
- linux-perf-"${perf_version}" \
make \
patch \
pkg-config \