Skip to content

Commit

Permalink
scripts/specialize-patch: Improve RHEL support
Browse files Browse the repository at this point in the history
Unbreak nightly build for RHEL 8.9 and 9.3
  • Loading branch information
lnocturno committed Jan 10, 2024
1 parent b569392 commit 7baf286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/specialize-patch
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ function evaluate(stmnt, pattern, arg, op, result) {
"RHEL_RELEASE_CODE -0 < 7 * 256 + 5)", stmnt)

gsub("defined\\(IB_CM_LISTEN_TAKES_THIRD_ARG\\)",
"(LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0))", stmnt)
"(LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0) \\&\\& " \
"!(RHEL_MAJOR -0 == 8 \\&\\& RHEL_MINOR -0 >= 9 || " \
"RHEL_MAJOR -0 == 9 \\&\\& RHEL_MINOR -0 >= 3))", stmnt)

gsub("IB_CLIENT_ADD_ONE_RETURNS_INT",
"(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0) || " \
Expand Down

0 comments on commit 7baf286

Please sign in to comment.