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?
Forum Updated to NodeBB v4.3 + New Features

How to apply patch to source files?

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 470 Views 1 Watching
  • 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 19 Jul 2024, 07:38 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 20 Jul 2024, 21:37 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
      • J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 19 Jul 2024, 07:44 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 19 Jul 2024, 08:07
        0
        • J jsulm
          19 Jul 2024, 07:44

          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 19 Jul 2024, 08:07 last edited by
          #3

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 19 Jul 2024, 08:16 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 20 Jul 2024, 21:37 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 20 Jul 2024, 21:37

              1/5

              19 Jul 2024, 07:38

              • Login

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