Commit a7e3073
committed
Patch numbering
We've established the habit of numbering patches the following way:
0-499: All patches that are unconditionally applied
500-1000: Patches applied under certain conditions (e.g. only on RHEL8)
1500-1599: Patches for LLVM 15
1600-1699: Patches for LLVM 16
1700-1799: Patches for LLVM 17
...
2000-2099: Patches for LLVM 20
The idea behind this is that the last range of patch numbers (e.g. 2000-2099) allow
us to "deprecate" a patch instead of deleting it right away.
Suppose llvm upstream in git is at version 20 and there's a patch living
in some PR that has not been merged yet. You can copy that patch and put it
in a line like:
Patch2011: upstream.patch
As time goes by, llvm moves on to LLVM 21 and meanwhile the patch has landed.
There's no need for you to remove the "Patch2011:" line. In fact, we encourage you
to not remove it for some time. For compat libraries and compat packages we might
still need this patch and so we're applying it automatically for you in those
situations. Remember that a compat library is always at least one major version
behind the latest packaged LLVM version.
I've restored a patch for an older version of LLVM:
We needed to move the
`0001-Always-build-shared-libs-for-LLD.patch`
from the `0-499` range to the `19xx` (current release) and `20xx`
(snapshots) range. In addition the old version of the patch was restored
with the following command and added to the `18xx` range:
```
$ git show
0656f30:0001-Always-build-shared-libs-for-LLD.patch
> 0001-18-Always-build-shared-libs-for-LLD.patch
```
This was needed because the `bundle_compat_lib` (RHEL only) build
condition needs the old version of the patch.1 parent f0d7b28 commit a7e3073
3 files changed
+81
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
209 | 234 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 235 | + | |
| 236 | + | |
214 | 237 | | |
215 | 238 | | |
216 | 239 | | |
217 | | - | |
218 | | - | |
| 240 | + | |
| 241 | + | |
219 | 242 | | |
220 | 243 | | |
221 | 244 | | |
222 | 245 | | |
223 | | - | |
| 246 | + | |
224 | 247 | | |
225 | 248 | | |
226 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
227 | 252 | | |
228 | 253 | | |
229 | 254 | | |
230 | 255 | | |
231 | 256 | | |
232 | | - | |
| 257 | + | |
233 | 258 | | |
234 | | - | |
| 259 | + | |
235 | 260 | | |
236 | 261 | | |
237 | 262 | | |
238 | | - | |
| 263 | + | |
239 | 264 | | |
240 | 265 | | |
241 | 266 | | |
| |||
724 | 749 | | |
725 | 750 | | |
726 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
727 | 760 | | |
728 | 761 | | |
729 | 762 | | |
| |||
733 | 766 | | |
734 | 767 | | |
735 | 768 | | |
736 | | - | |
| 769 | + | |
737 | 770 | | |
738 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
739 | 775 | | |
740 | 776 | | |
741 | | - | |
| 777 | + | |
742 | 778 | | |
743 | 779 | | |
744 | | - | |
| 780 | + | |
745 | 781 | | |
746 | 782 | | |
747 | 783 | | |
| |||
1374 | 1410 | | |
1375 | 1411 | | |
1376 | 1412 | | |
1377 | | - | |
| 1413 | + | |
1378 | 1414 | | |
1379 | 1415 | | |
1380 | 1416 | | |
| |||
0 commit comments