• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to create patch against 2.7.x code

Scheduled Pinned Locked Moved Development
5 Posts 4 Posters 436 Views
Loading More Posts
  • 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
    thermo
    last edited by Aug 7, 2024, 11:29 AM

    So I have a patch which was developed against master branch on github. The patch fails to apply on a 2.7.2 install due to the changes since.
    Is there an easy way to obtain a patch for 2.7.2, how do others handle this situation since there isn't a 2.7.2 branch on github (that I could see).

    1 Reply Last reply Reply Quote 0
    • B
      bmeeks
      last edited by bmeeks Aug 7, 2024, 2:45 PM Aug 7, 2024, 2:42 PM

      You will need to checkout the RELENG_2_7_2 branch and apply your patch to that.

      GitHub branches prefixed with RELENG_ are the release or production branches. The master branch is the current development branch.

      You can choose the branch in the web view of GitHub as shown below:

      GitHub_RELENG_branches.png

      You can also choose the proper branch within git on your builder/development machine using this command:

      git checkout RELENG_2_7_2
      
      T 1 Reply Last reply Aug 7, 2024, 2:45 PM Reply Quote 1
      • T
        thermo @bmeeks
        last edited by Aug 7, 2024, 2:45 PM

        @bmeeks Thanks, yes I've seen it now. I have no idea where or what I was looking at last night.

        1 Reply Last reply Reply Quote 0
        • V
          Viper_Rus
          last edited by Oct 24, 2024, 10:56 PM

          Hello. Please tell me if there is a simple method to get this functionality https://redmine.pfsense.org/issues/855
          on 2.7.2?

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Oct 27, 2024, 11:10 PM

            @Viper_Rus said in How to create patch against 2.7.x code:

            https://redmine.pfsense.org/issues/855

            You can apply the change referenced in the bug via a system patch: 30d46b63834444e9a7a4af310a5d8aaf94baf01a

            But you also need this previous changeset: 4bbbcc368bf1da815025fa51268d5de96fa73220

            YMMV! But if you do have issues you can just revert the patches.

            Steve

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              [[user:consent.lead]]
              [[user:consent.not_received]]