Skip to content

workaround(coin-or-Cbc): Disable HiGHS support#16626

Merged
christopherco merged 1 commit intotomls/base/mainfrom
chrco/fix-coin-or-Cbc
Apr 13, 2026
Merged

workaround(coin-or-Cbc): Disable HiGHS support#16626
christopherco merged 1 commit intotomls/base/mainfrom
chrco/fix-coin-or-Cbc

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

@christopherco christopherco commented Apr 13, 2026

coin-or-HiGHS is not available in Azure Linux. HiGHS is an optional LP solver backend; Cbc's primary solver (Clp) is unaffected. Comment out the BuildRequires and configure flags for HiGHS. Re-enable if coin-or-HiGHS is added to the distro.

@christopherco christopherco marked this pull request as ready for review April 13, 2026 00:04
Copilot AI review requested due to automatic review settings April 13, 2026 00:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an Azure Linux-specific workaround for coin-or-Cbc to build without the optional HiGHS backend (since coin-or-HiGHS isn’t available), while keeping the primary solver (Clp) unaffected.

Changes:

  • Moved coin-or-Cbc to a dedicated *.comp.toml file to apply overlays.
  • Added overlays to disable the HiGHS BuildRequires and remove HiGHS-related %build configure flags.
  • Removed the now-duplicated coin-or-Cbc entry from base/comps/components.toml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
base/comps/components.toml Removes the inline coin-or-Cbc table so the dedicated component file is the single source of truth.
base/comps/coin-or-Cbc/coin-or-Cbc.comp.toml Introduces overlays intended to disable HiGHS support in the upstream spec.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread base/comps/coin-or-Cbc/coin-or-Cbc.comp.toml Outdated
Comment thread base/comps/coin-or-Cbc/coin-or-Cbc.comp.toml Outdated
Comment thread base/comps/coin-or-Cbc/coin-or-Cbc.comp.toml Outdated
@christopherco christopherco force-pushed the chrco/fix-coin-or-Cbc branch from 4ec66ac to b262a08 Compare April 13, 2026 00:10
@christopherco christopherco marked this pull request as draft April 13, 2026 00:21
@christopherco christopherco force-pushed the chrco/fix-coin-or-Cbc branch from b262a08 to 718f0a3 Compare April 13, 2026 00:25
@christopherco
Copy link
Copy Markdown
Collaborator Author

christopherco commented Apr 13, 2026

Note: I went this direction instead of replacing the %ifnarch %{ix86} lines since I do expect upstream Fedora to mutate %ifnarch sooner than the actual configure lines that I'm regexing out here. If we want the other method, it's here in draft PR -> #16628

@christopherco christopherco marked this pull request as ready for review April 13, 2026 00:27
@christopherco christopherco requested a review from Copilot April 13, 2026 00:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread base/comps/coin-or-Cbc/coin-or-Cbc.comp.toml Outdated
coin-or-HiGHS is not available in Azure Linux. HiGHS is an optional LP
solver backend; Cbc's primary solver (Clp) is unaffected. Comment out
the BuildRequires and configure flags for HiGHS. Re-enable if
coin-or-HiGHS is added to the distro.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +13 to +17
[[components.coin-or-Cbc.overlays]]
description = "Remove HiGHS --with-highs-incdir configure flag"
type = "spec-search-replace"
section = "%build"
regex = ' --with-highs-incdir=%\{_includedir\}/highs \\'
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The two spec-search-replace overlays replace the HiGHS configure-option lines with a standalone line-continuation (\). That leaves “empty” continuation lines in the %configure invocation, which is harder to reason about and can be brittle if the surrounding %configure formatting changes.

Since the upstream spec already isolates all HiGHS logic under %ifnarch %{ix86} (only two occurrences, both for HiGHS), consider making the workaround more robust by disabling that conditional block entirely (e.g., replace %ifnarch %{ix86} with an always-false %if 0) or by replacing the whole option line with an empty string (so the option line disappears rather than becoming a bare continuation).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already considered. See my comment here #16626 (comment)

@christopherco christopherco merged commit ea7d16e into tomls/base/main Apr 13, 2026
9 checks passed
@christopherco christopherco deleted the chrco/fix-coin-or-Cbc branch April 13, 2026 04:09
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.

3 participants