!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

138 Members
29 Servers

Load older messages


SenderMessageTime
9 May 2026
@pyrox:pyrox.devdish [Fox/It/She]okay yeah, let's just not bother with dropping it since adding the option would trigger rebuilds fafaik19:32:14
@pyrox:pyrox.devdish [Fox/It/She] thanks for the clarification on its use @msgilligan 19:32:30
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @msgilligan:matrix.org

If someone wants to work to make the JDK toolchain binary free, the place to start might be with Maven. It is currently:

    sourceProvenance = with lib.sourceTypes; [
      binaryBytecode
      binaryNativeCode
    ];
working on this now, we have to bootstrap from ant -> maven 3.3.9(last version that can be built with ant) -> hopefully just the latest maven version
19:43:53
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️
In reply to @pyrox:pyrox.dev
okay yeah, let's just not bother with dropping it since adding the option would trigger rebuilds fafaik
I don't think adding the option with on by default should change it?
20:00:33
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️Can test when I'm not in the middle of moving though20:00:46
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @pyrox:pyrox.dev
working on this now, we have to bootstrap from ant -> maven 3.3.9(last version that can be built with ant) -> hopefully just the latest maven version
okay maven central seems to hate me so just never mind 🙃
20:30:46
@msgilligan:matrix.orgmsgilliganWhat happened?20:52:22
@pyrox:pyrox.devdish [Fox/It/She]when im trying to build a dependencies FOD for 3.3.9 (just as a starting point) it keeps failing to pull from central21:08:31
@pyrox:pyrox.devdish [Fox/It/She]I tried a few different things but can't figure out why it fails since I'm not a java dev normally lol21:08:52
@msgilligan:matrix.orgmsgilliganWhat kind of errors are you getting?21:11:04
11 May 2026
@jerith:matrix.orgMatt McHenry

https://github.com/NixOS/nixpkgs/pull/484741 rebuild-linux:1001-2500 🫠

yeah I was kinda floored by that too. :) But since temurin bootstraps OpenJDK, basically anything that uses Java is affected.

I took a look at a couple (gnome-shell and python-vlc) and both have plausible-seeming explanations (gnome-shell depends on libphonenumber, which apparently uses Java for some of its test cases; python-vlc depends on libbluray, and Java is part of the BluRay platform as I recall from some excited JavaOne announcement a couple decades ago :) ).

I could not find a plausible explanation for a third package I looked at, pylatex. But, I don't think there's a way around a mass-rebuild here.

20:55:51
13 May 2026
@msgilligan:matrix.orgmsgilligan

It looks like the jextract build has been broken on Darwin for almost a year. Here's a fix:

  • https://github.com/NixOS/nixpkgs/pull/519643
15:12:01
@jonhermansen:matrix.orgJon Hermansen joined the room.16:44:00
14 May 2026
@msgilligan:matrix.orgmsgilligan And once the above fix is merged, https://github.com/NixOS/nixpkgs/pull/519958 can be merged to remove jextract-21 which is obsolete and unmaintained. (cc: emily ) 00:23:40
@drupol:matrix.orgPol changed their display name from Pol to Pol (out, touching grass).07:38:38
@drupol:matrix.orgPol changed their display name from Pol (out, touching grass) to Pol.16:32:49
21 May 2026
@msgilligan:matrix.orgmsgilligan

In this comment on a PR to update maven, Benedikt Ritter (britter) says:

a ton of seemingly unrelated packages are being rebuilt, because igraph (a C library for analysis of networks) depends on Apache FOP (an XML formatter) which is built with maven. igraph only requires FOP for building it's documentation but this dependency still has rippling effects, e.g. the python packages now have a transitive dependency to maven because of that.

I've been doing some investigation and think I have a fix.

18:22:58
@msgilligan:matrix.orgmsgilligan

It turns out that igraph is simply copying its DocBook source to it's doc output and is not running either the html or pdf CMake targets that render the documentation. So I want to make a PR to do the following:

  1. Actually enable the rendering of the HTML documentation.
  2. Remove the dependency on FOP.

This should stop a lot of rebuilds (especially in Python packages) based on fop <- maven <- jdk.

18:26:19
@msgilligan:matrix.orgmsgilliganFor Nixpkgs, would it be best to make this one or two PRs?18:27:23
@msgilligan:matrix.orgmsgilligan Or one PR with two commits: one to remove FOP and the other to add the html target and some missing dependencies it actually needs? 18:29:43
@britter:yatrix.orgBenedikt Ritter (britter)I think this is a change to igraphs doc build with a nice side effect. So could be one PR.19:13:22
@britter:yatrix.orgBenedikt Ritter (britter)Thanks a lot for looking into this!19:13:29
@britter:yatrix.orgBenedikt Ritter (britter) We should review other downstream builds that look suspicious and try to remove ourselfs as much as possible, esp from "foundational" packages like igraph. 19:14:28
@msgilligan:matrix.orgmsgilliganHere it is: https://github.com/NixOS/nixpkgs/pull/52276219:14:44
@msgilligan:matrix.orgmsgilligan

It is two commits, and I have verified that the first one (removing fop) works independently, so it could be made into a separate PR if there is some objection to how the HTML docs are being generated, etc.

The removal of fop should make the pending Maven update less breaking and might be worth expediting.

19:21:55
22 May 2026
@chayleaf:matrix.pavluk.orgchayleaf changed their profile picture.08:42:54
@jonhermansen:matrix.orgJon Hermansen changed their display name from jonhermansen to Jon Hermansen.19:18:42
@msgilligan:matrix.orgmsgilligan The igraph PR has been merged. Can someone rebase maven: 3.9.12 -> 3.9.16? 19:58:58
@msgilligan:matrix.orgmsgilligan

The igraph update should reduce the number of package-build failures from 109 to about 40. And most (possibly even all) of the remaining failures are due to packages not having Stable Maven plugins as described in the Nixpkgs Manual:

Maven defines default versions for its core plugins, e.g. maven-compiler-plugin. If your project does not override these versions, an upgrade of Maven will change the version of the used plugins, and therefore the derivation and hash.

When maven is upgraded, mvnHash for the derivation must be updated as well: otherwise, the project will be built on the derivation of old plugins, and fail because the requested plugins are missing.

20:04:39
@msgilligan:matrix.orgmsgilligan

So to get an up-to-date Maven without breaking ~40 dependencies, for each dependency we need to either:

  • Add a pom.xml patch, like this merged fix for fop: https://github.com/NixOS/nixpkgs/pull/522916
  • Update the mavnHash, like in this unmerged commit for kotlin-interactive-shell: https://github.com/NixOS/nixpkgs/pull/522831/commits/7b6b4f8df72ba56b644e32c7719437e2ec6328e1
21:20:09

Show newer messages


Back to Room ListRoom Version: 6