Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to apply patch to source files?
QtWS25 Last Chance

How to apply patch to source files?

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 387 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Taytoo
      wrote on last edited by
      #5

      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.

      1. 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.
      2. Type command "git apply <patch-filename> -v" (-v is just so you can see the output)

      That's it!

      1 Reply Last reply
      1
      • jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Using patch command.
        On Linux see "man patch" for details (or https://www.man7.org/linux/man-pages/man1/patch.1.html).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        T 1 Reply Last reply
        0
        • jsulmJ jsulm

          Using patch command.
          On Linux see "man patch" for details (or https://www.man7.org/linux/man-pages/man1/patch.1.html).

          T Offline
          T Offline
          Taytoo
          wrote on last edited by
          #3

          @jsulm I'm on Windows and it doesn't have patch command.

          1 Reply Last reply
          0
          • jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            https://gnuwin32.sourceforge.net/packages/patch.htm

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            3
            • T Offline
              T Offline
              Taytoo
              wrote on last edited by
              #5

              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.

              1. 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.
              2. Type command "git apply <patch-filename> -v" (-v is just so you can see the output)

              That's it!

              1 Reply Last reply
              1
              • T Taytoo has marked this topic as solved on

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved