You can create another patch on top of the first, which will track the changes required to modify the tree from “” command at any time, and the topmost applied patch will be updated.
If the newer version of the package still has the bug, you must extract your fix from the older source tree and apply it against the newer version.
This is a tedious task, and it's easy to make mistakes.
Probably the most visible is that a user of an open source software project will contribute a bug fix or new feature to the project's maintainers in the form of a patch.
Distributors of operating systems that include open source software often need to make changes to the packages they distribute so that they will build properly in their environments.
Each hunk starts with a header; this identifies the range of line numbers within the file that the hunk should modify.