!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

122 Members
27 Servers

Load older messages


SenderMessageTime
8 Dec 2024
@chayleaf:matrix.pavluk.orgchayleafi guess you could make an argument for building the ones with native code from source, but it's gonna require looots of effort07:20:11
@chayleaf:matrix.pavluk.orgchayleafanyway, thete are some examples in-tree of gradle packages fetching deps for multiple platforms07:21:07
@chayleaf:matrix.pavluk.orgchayleafusually it involves running gradle multiple times with different args or env vars07:21:26
@chayleaf:matrix.pavluk.orgchayleafworst case you can write a grep+sed mess to extract urls from the source files and then download them with curl07:22:37
@chayleaf:matrix.pavluk.orgchayleaf* worst case you can write a grep+sed mess to extract urls from the source files and then fetch them with curl so they end up in the cache07:23:13
@tomodachi94:matrix.orgTomodachi94 (they/them)protobuf-java is... a massive headache. Bazel keeps trying to download protobuf-rust things (but I'm not trying to build the Rust stuff??)22:10:57
@tomodachi94:matrix.orgTomodachi94 (they/them)* protobuf-java from source is... a massive headache. Bazel keeps trying to download protobuf-rust things (but I'm not trying to build the Rust stuff??)22:11:05
@glepage:matrix.orgGaétan Lepage
In reply to @tomodachi94:matrix.org
protobuf-java from source is... a massive headache. Bazel keeps trying to download protobuf-rust things (but I'm not trying to build the Rust stuff??)

Haha bazel bazel bazel... We have (almost) given up building some packages from source due to bazel becoming more and more annoying:

  • python3Packages.protobuf
  • python3Packages.tensorflow
  • python3Packages.jaxlib
22:15:31
@tomodachi94:matrix.orgTomodachi94 (they/them)Bazel is just... so cursed, though I imagine part of my problem is that I don't have the mental model of how Bazel works22:17:03
@tomodachi94:matrix.orgTomodachi94 (they/them)
Bazel is just... so cursed
Source: one package completely replaces the root BUILD.bazel
22:17:34
@tomodachi94:matrix.orgTomodachi94 (they/them)
Bazel is just... so cursed
Source: one package completely replaces the root BUILD.bazel entirely
22:17:47
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@tomodachi94:matrix.org
Bazel is just... so cursed
Source: one package completely replaces the root BUILD.bazel entirely
(it's envoy if you're curious)
22:21:43
@tomodachi94:matrix.orgTomodachi94 (they/them)
In reply to@glepage:matrix.org

Haha bazel bazel bazel... We have (almost) given up building some packages from source due to bazel becoming more and more annoying:

  • python3Packages.protobuf
  • python3Packages.tensorflow
  • python3Packages.jaxlib
I'll take a look at a few of these.... I can't find any from-source Java packages that use Bazel, probably for good reasons
22:22:18
@tomodachi94:matrix.orgTomodachi94 (they/them)* I'll take a look at a few of these.... I can't find any from-source Java packages that use Bazel, probably for good reasons 🙃22:22:29
@tomodachi94:matrix.orgTomodachi94 (they/them)buildBazelPackage is also undocumented, I'm going to file an issue about that22:24:17
@tomodachi94:matrix.orgTomodachi94 (they/them)Oh there is one already... from 2022: https://github.com/NixOS/nixpkgs/issues/15739822:28:45
@tomodachi94:matrix.orgTomodachi94 (they/them)Taking a stab at documenting Bazel so I can understand it a little better22:51:32
@tomodachi94:matrix.orgTomodachi94 (they/them)* Taking a stab at documenting buildBazelPackage so I can understand it a little better22:51:41
@tomodachi94:matrix.orgTomodachi94 (they/them)(It would be nice to migrate some of these builders to hooks, but that would take a long time)22:58:18
@tomodachi94:matrix.orgTomodachi94 (they/them)Started at https://github.com/NixOS/nixpkgs/pull/36340023:17:06
9 Dec 2024
@tomodachi94:matrix.orgTomodachi94 (they/them)* (It would be nice to migrate some of these builders to hooks, but migrating all of them would take a long time)02:38:29
@embarased_rate:matrix.org@embarased_rate:matrix.org joined the room.09:00:02
@embarased_rate:matrix.org@embarased_rate:matrix.org left the room.09:00:15
11 Dec 2024
@tomodachi94:matrix.orgTomodachi94 (they/them)Currently blocked on building Ant from source by https://github.com/NixOS/nixpkgs/pull/36309804:08:42
@tomodachi94:matrix.orgTomodachi94 (they/them)(We'll need this and junit_4 if we want something completely from source)04:09:13
@tomodachi94:matrix.orgTomodachi94 (they/them)* (We'll need this and junit_4 if we want something completely from source, where "completely" means all direct dependencies)04:09:57
16 Dec 2024
@fliegendewurst:matrix.orgFliegendeWurst

openjfx fails to build on staging

/build/source/modules/javafx.graphics/src/main/native-font/freetype.c:523:33: error: initialization of 'jbyte *' {aka 'signed char *'} from incompatible pointer type 'jfloat *' {aka 'float *'} [-Wincompatible-pointer-types]
  523 |         jbyte* newPointCoords = (jfloat*)realloc(info->pointCoords, info->lenCoords * sizeof(jfloat));
      |                                 ^
/build/source/modules/javafx.graphics/src/main/native-font/freetype.c:525:27: error: assignment to 'jfloat *' {aka 'float *'} from incompatible pointer type 'jbyte *' {aka 'signed char *'} [-Wincompatible-pointer-types]
  525 |         info->pointCoords = newPointCoords;
      |                           ^
> Task :graphics:ccLinuxFontFreetype FAILED
11:45:39
@fliegendewurst:matrix.orgFliegendeWurstand I don't know where I can pass "-Wno-error=incompatible-pointer-types" to fix it11:46:02
@ksonj:matrix.orgksonj left the room.15:00:46
@infinidoge:inx.moeInfinidoge 🏳️‍⚧️CFLAGS maybe?15:25:27

Show newer messages


Back to Room ListRoom Version: 6