How to apply patch to source files?
Solved
Installation and Deployment
-
wrote on 19 Jul 2024, 07:38 last edited by
Received the email about HTTP2 related security patch. I build Qt 5.15.17 from sources and use Visual Studio. How do I apply the patch to the source files?
-
wrote on 20 Jul 2024, 21:37 last edited by
Solution: If you have git installed, its actually very easy using the git cli. Qt sources don't even need to be added to version control for this.
- Open Terminal and Go to the Qt module the patch is for. E.g. the recent HTTP related patch is for QtBase, so go to that folder qtbase.
- Type command "git apply <patch-filename> -v" (-v is just so you can see the output)
That's it!
-
Using patch command.
On Linux see "man patch" for details (or https://www.man7.org/linux/man-pages/man1/patch.1.html). -
Using patch command.
On Linux see "man patch" for details (or https://www.man7.org/linux/man-pages/man1/patch.1.html). -
-
wrote on 20 Jul 2024, 21:37 last edited by
Solution: If you have git installed, its actually very easy using the git cli. Qt sources don't even need to be added to version control for this.
- Open Terminal and Go to the Qt module the patch is for. E.g. the recent HTTP related patch is for QtBase, so go to that folder qtbase.
- Type command "git apply <patch-filename> -v" (-v is just so you can see the output)
That's it!
-
5/5