Skip to content

[GLPK] Rebuild with riscv64-linux-gnu support#13754

Merged
ViralBShah merged 3 commits into
JuliaPackaging:masterfrom
s-celles:glpk-rebuild-riscv64
May 18, 2026
Merged

[GLPK] Rebuild with riscv64-linux-gnu support#13754
ViralBShah merged 3 commits into
JuliaPackaging:masterfrom
s-celles:glpk-rebuild-riscv64

Conversation

@s-celles
Copy link
Copy Markdown
Contributor

@s-celles s-celles commented May 18, 2026

Goal

Publish a riscv64-linux-gnu artifact for GLPK_jll. The most recent release GLPK-v5.0.1+1 does not include one, even though the recipe declares supported_platforms(; experimental=true) (which lists riscv64). The build silently failed on that platform in the previous CI run.

Why

Downstream packages depending on GLPK_jll are forced to filter out riscv64 (e.g. Dependency("GLPK_jll"; platforms=filter(p -> arch(p) != "riscv64", platforms))). With a riscv64 artifact in place, that filter can be removed.

Related #13717

Changes

  • Call update_configure_scripts after autoreconf -vi — GLPK 5.0's bundled config.sub (2020) does not recognise the riscv64 host triplet (Invalid configuration 'riscv64-linux-gnu': machine 'riscv64' not recognized).
  • Bump GMP_jll compat from v"6.2.0" (positional, resolves to 6.2.0+8 which has no riscv64 artifact) to compat="6.3.0", the first GMP_jll release that ships riscv64-linux-gnu artifacts. GMP_jll 6.3.0 still has julia = "1.6.0-1" in the General registry, so julia_compat="1.6" is preserved.
  • Bump # Build trigger: 12 to publish a new release.

Local validation

Cross-built locally on x86_64-linux-musl host:

[ Info: SHA256 of GLPK.v5.0.1.riscv64-linux-gnu.tar.gz: 20fe8291934a2886641e0acfda70d1477a46b8a78aa55fa616eedabc2ad9c10a
[ Info: Timings: setup: 26.17s, build: 47.81s, audit: 12.34s, packaging: 4.69s

Audit confirms libglpk.so.40.3.1 links against libgmp.so.10.

AI generated initial PR

- Call update_configure_scripts so the bundled config.sub recognises
  the riscv64 host triplet (GLPK 5.0's config.sub predates riscv64).
- Bump GMP_jll compat to 6.3.0, the first release publishing
  riscv64-linux-gnu artifacts (still Julia 1.6+ in the General registry).
- Bump Build trigger from 1 to 2 to publish a new GLPK_jll release.

Locally cross-built GLPK.v5.0.1.riscv64-linux-gnu.tar.gz successfully
with libglpk.so.40.3.1 linking against libgmp.so.10.
@ViralBShah
Copy link
Copy Markdown
Member

My understanding is that we can't change dependency versions without changing the version number of this package itself.

Is there a new upstream version of GLPK? If so, bumping to that will also make it easy to bump the GMP.

Comment thread G/GLPK/build_tarballs.jl Outdated
ViralBShah and others added 2 commits May 18, 2026 11:21
Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
Copy link
Copy Markdown
Contributor

@odow odow left a comment

Choose a reason for hiding this comment

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

I've bumped the version. There has not been an upstream release since 2020.

@ViralBShah ViralBShah merged commit bfbb142 into JuliaPackaging:master May 18, 2026
22 checks passed
s-celles added a commit to s-celles/Yggdrasil that referenced this pull request May 19, 2026
GLPK_jll now ships riscv64-linux-gnu artifacts (JuliaPackaging#13754),
so drop the platform filter and conditional and bump compat to 5.0.2.
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.

4 participants