Skip to content

Fix duplicate 0067 patch numbering after the 26.3 merges - #879

Merged
electronicboy merged 1 commit into
masterfrom
fix-26-3-patch-numbering
Sep 9, 2026
Merged

Fix duplicate 0067 patch numbering after the 26.3 merges#879
electronicboy merged 1 commit into
masterfrom
fix-26-3-patch-numbering

Conversation

@electronicboy

Copy link
Copy Markdown
Member

./waterfall patch is currently broken on master.

Three patches ended up numbered 0067, two of which are the same temporary protocol patch:

0067-Temp-26.3-pre-2-protocol-support.patch
0067-Temp-26.3-pre-3-protocol-support.patch
0067-Test-that-framed-packets-are-always-direct.patch
0068-Cipher-into-a-direct-buffer-in-JavaCipher.patch

#877 added 0067-Test-… and 0068-Cipher-…. #876 then added 0067-Temp-26.3-pre-2-…, generated against a base that predated it. #878 was meant to rename that file to pre-3, but with the base drifted it merged as an add, so the pre-2 file stayed behind.

applyPatches.sh globs BungeeCord-Patches/*.patch, so both Temp patches get applied in lexicographic order. The second is not an increment on the first — it is the same patch regenerated — so it conflicts:

Applying: Temp: 26.3-pre-2 protocol support
Applying: Temp: 26.3-pre-3 protocol support
CONFLICT (content): Merge conflict in .../protocol/ProtocolConstants.java
CONFLICT (content): Merge conflict in .../protocol/Protocol.java
error: Failed to merge in the changes.

This drops the superseded pre-2 file and renumbers pre-3 to 0069 so it sits after #877's two patches.

The patch content is byte for byte identical to what #878 merged — I diffed the two ignoring the From/index headers and the trailing version line. Only the number and the parent it was generated against change.

Testing

./waterfall patch applies cleanly from scratch, and the full build and test suite pass.

Master ended up with three patches numbered 0067 and both halves of the same
temporary protocol patch. #877 added 0067-Test-that-framed-packets-are-always-
direct and 0068-Cipher-into-a-direct-buffer-in-JavaCipher, then #876 added
0067-Temp-26.3-pre-2-protocol-support against an older base, and #878 was meant
to rename that to pre-3 but landed as an add, leaving the pre-2 file behind.

applyPatches.sh globs the directory, so the two Temp patches both applied in
lexicographic order and the second conflicted with the first:

    Applying: Temp: 26.3-pre-3 protocol support
    CONFLICT (content): Merge conflict in ProtocolConstants.java
    CONFLICT (content): Merge conflict in Protocol.java

Drop the superseded pre-2 file and renumber pre-3 to 0069 so it sits after
#877's patches. The patch content is byte for byte what #878 merged; only the
number and the parent it was generated against change.
@electronicboy
electronicboy merged commit 09239d2 into master Sep 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant