Most Patches only patch a single file. But one can also record the differences between two sets of files by the diff
utility.
More than one file to be patched at once in subfolders of the .rpm file? correct?
No.
-
Do not go the RPM-Patch route: It is outdated (but still supported and works well) and you have to manually create a JSON file for an RPM Patch. It is only required for really complex Patches (none of your changes falls into this category, AFAICS) and allows you to additionally execute shell scripts (the usual RPM scriptlets), which a Patch in Patchmanager’s Web Catalog cannot.
-
Well, you do need to read the documentation thoroughly, i.e. the whole section “Information for Patch developers”. Actually I think you are a good tester if something is missing or unclear, hence please provide feedback if you think so.
The core statement is:Usually, you can generate such patch file using the following command, with the directories
original
andpatched
containing the original and modified files:diff -ur original/ patched/ > unified_diff.patch
BTW, I also wrote a glossary which resides in Patchmanager’s wiki, because many terms used in the context of Patchmanager are ambiguous and / or confusingly similar.
Here the section for words starting with “P
”.
Before and after the old and the new line there is code snippet that is not changed but stays at it is. Does Patchmanager search for the whole given pattern for the case that line numbers may change?
Yes, though not Patchmanager proper, but the diff
utility it uses.
Are all these patches written by a human coder or are they generated automatically with some development environment or similar?
See above and RTFM: The diff
utility does that.
btw, I failed to create a GitHub account. They don’t accept my email address and system said that ‘address could not be verified’.
Are you sure that GitHub’s verification email was not filtered out (or sorted away) by some mechanism you employed? As a first measure I would take a look in the email spam folder.