mirror of https://github.com/dynup/kpatch
Fix epel ccache installation
ccache version in epel updates from time to time so instead of using a direct link install epel repo and install ccache without specifying the version. Suggested-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
34a45ba847
commit
c1d5cc47d7
|
@ -80,7 +80,9 @@ sudo debuginfo-install kernel-${UNAME%.*}
|
||||||
sudo yum install gcc-plugin-devel
|
sudo yum install gcc-plugin-devel
|
||||||
|
|
||||||
# optional, but highly recommended
|
# optional, but highly recommended
|
||||||
sudo yum install https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ccache-3.3.4-1.el7.x86_64.rpm
|
sudo yum install "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
|
||||||
|
sudo yum install ccache
|
||||||
|
sudo yum remove -y epel-release # If you no longer want epel repos
|
||||||
ccache --max-size=5G
|
ccache --max-size=5G
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,9 @@ kpatch_rhel_dependencies()
|
||||||
[ "${arch}" == "x86_64" ] && sudo yum install -y pesign
|
[ "${arch}" == "x86_64" ] && sudo yum install -y pesign
|
||||||
[ "${arch}" == "ppc64le" ] && sudo yum install -y gcc-plugin-devel
|
[ "${arch}" == "ppc64le" ] && sudo yum install -y gcc-plugin-devel
|
||||||
|
|
||||||
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/7/${arch}/Packages/c/ccache-3.3.4-1.el7.${arch}.rpm"
|
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
|
||||||
|
sudo yum install -y ccache
|
||||||
|
sudo yum remove -y epel-release
|
||||||
}
|
}
|
||||||
|
|
||||||
kpatch_centos_dependencies()
|
kpatch_centos_dependencies()
|
||||||
|
@ -84,7 +86,9 @@ kpatch_centos_dependencies()
|
||||||
sudo yum-builddep -y "kernel-${kernel_version%.*}"
|
sudo yum-builddep -y "kernel-${kernel_version%.*}"
|
||||||
sudo debuginfo-install -y "kernel-${kernel_version%.*}"
|
sudo debuginfo-install -y "kernel-${kernel_version%.*}"
|
||||||
|
|
||||||
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/7/${arch}/Packages/c/ccache-3.3.4-1.el7.${arch}.rpm"
|
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
|
||||||
|
sudo yum install -y ccache
|
||||||
|
sudo yum remove -y epel-release
|
||||||
}
|
}
|
||||||
|
|
||||||
kpatch_dependencies()
|
kpatch_dependencies()
|
||||||
|
|
Loading…
Reference in New Issue