Red Hat Bugzilla – Bug 1269920
Last modified: 2015-10-12 12:13:59 EDT
Description of problem:
Neither the utility nor the manpage for kpatch-build can be found
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. (in a VM) RHEL7 install procedure per https://github.com/dynup/kpatch
2. sudo yum provides */*kpatch-build*
Loaded plugins: auto-update-debuginfo, langpacks, product-id, subscription-manager
No matches found
Usable kpatch installation
kpatch itself is present, though I don't know if the above sequence installed
it or my original system installation:
[jgh@rhel7 kpatch]$ which kpatch
There is only a kpatch package for RHEL7, not a kpatch-build package. There is currently no package in RHEL7 that includes the build-side utilities for kpatch. The kpatch package only includes the apply-side utilities (i.e. the kpatch command).
In order to run kpatch-build:
1) Clone the github repo
git clone https://github.com/dynup/kpatch.git
2) Follow the README for "Install the dependencies for the "kpatch-build" command" in the RHEL7 section
3) cd kpatch-build/ then invoke the kpatch-build script from there.
Those instructions do not appear to be sufficient:
[jgh@rhel7 kpatch]$ kpatch-build ss.patch
ERROR: can't find supporting tools.
For added amusement, the manpage for kpatch references one for kpatch-build.
Did you do "make" and "make install" first?
The missing kpatch-build RPM is by design. kpatch-build is dangerous and should be used with care. It isn't intended to be used by RHEL customers. Any live patching done by customers should only be done with patch modules which have been built and signed internally at Red Hat.